Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Commit

Permalink
fix: manually derive clone, copy, and debug attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Wodann committed Nov 1, 2019
1 parent 709318f commit 5db0081
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions include/mun_abi.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* GUIDs are generated by taking the MD5 hash of a type's name.
*
* <div rustbindgen derive="PartialEq"></div>
* <div rustbindgen derive="Clone" derive="Copy" derive="Debug" derive="PartialEq"></div>
*/
typedef struct
{
Expand All @@ -20,6 +20,8 @@ typedef struct
* Represents the type declaration for a value type.
*
* TODO: add support for structs, polymorphism, enumerations, type parameters, generic type definitions, and constructed generic types.
*
* <div rustbindgen derive="Debug"></div>
*/
typedef struct
{
Expand All @@ -45,7 +47,7 @@ typedef uint8_t MunPrivacy_t;
/**
* Represents a function signature.
*
* <div rustbindgen derive="Clone"></div>
* <div rustbindgen derive="Clone" derive="Debug"></div>
*/
typedef struct
{
Expand All @@ -66,7 +68,7 @@ typedef struct
*
* `fn_ptr` can be used to call the declared function.
*
* <div rustbindgen derive="Clone"></div>
* <div rustbindgen derive="Clone" derive="Debug"></div>
*/
typedef struct
{
Expand All @@ -78,6 +80,8 @@ typedef struct

/**
* Represents a module declaration.
*
* <div rustbindgen derive="Debug"></div>
*/
typedef struct
{
Expand All @@ -94,6 +98,7 @@ typedef struct
*
* Function signatures and pointers are stored separately for cache efficiency.
*
* <div rustbindgen derive="Debug"></div>
*/
typedef struct
{
Expand All @@ -107,6 +112,8 @@ typedef struct

/**
* Represents an assembly declaration.
*
* <div rustbindgen derive="Debug"></div>
*/
typedef struct
{
Expand Down

0 comments on commit 5db0081

Please sign in to comment.