mirror of
https://github.com/openharmony/third_party_rust_bindgen.git
synced 2026-08-27 05:31:15 -04:00
e8f278ed11
* custom derives after DeriveInfo * Introduce `TypeKind` instead of `CompKind` * Add tests * Emit CLI flags for callbacks * update changelog * run rustfmt * fix tests * fix features Co-authored-by: Christian Poveda <christian.poveda@ferrous-systems.com>
15 lines
496 B
C
15 lines
496 B
C
// bindgen-flags: --default-enum-style rust --default-non-copy-union-style manually_drop --no-default=".*" --no-hash=".*" --no-partialeq=".*" --no-debug=".*" --no-copy=".*" --with-derive-custom="foo_[^e].*=Clone" --with-derive-custom-struct="foo.*=Default" --with-derive-custom-enum="foo.*=Copy" --with-derive-custom-union="foo.*=Copy"
|
|
struct foo_struct {
|
|
int inner;
|
|
};
|
|
enum foo_enum {
|
|
inner = 0
|
|
};
|
|
union foo_union {
|
|
int fst;
|
|
float snd;
|
|
};
|
|
struct non_matching {
|
|
int inner;
|
|
};
|