diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2016-12-12 16:11:43 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2016-12-13 14:33:01 +0100 |
commit | 883ff74e5f20b68b41f322daa582d9208eece65a (patch) | |
tree | 10f0c8aa40dad4a9b48d8a705761074fff9036d3 /libbindgen/src/lib.rs | |
parent | 5d9c48e59b49135db1ecfd4ff8c3dbab8ed05086 (diff) |
Add support for constructors, and integration tests.
Diffstat (limited to 'libbindgen/src/lib.rs')
-rw-r--r-- | libbindgen/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libbindgen/src/lib.rs b/libbindgen/src/lib.rs index 29580f36..2ff61f90 100644 --- a/libbindgen/src/lib.rs +++ b/libbindgen/src/lib.rs @@ -108,6 +108,8 @@ pub struct CodegenConfig { pub vars: bool, /// Whether to generate methods. pub methods: bool, + /// Whether to generate constructors. + pub constructors: bool, } impl CodegenConfig { @@ -118,6 +120,7 @@ impl CodegenConfig { types: true, vars: true, methods: true, + constructors: true, } } @@ -128,6 +131,7 @@ impl CodegenConfig { types: false, vars: false, methods: false, + constructors: false, } } } |