This commit is contained in:
Alex Crichton
2018-04-13 07:34:27 -07:00
3 changed files with 116 additions and 71 deletions

View File

@ -17,6 +17,7 @@ pub struct Bindgen {
path: Option<PathBuf>,
nodejs: bool,
browser: bool,
no_modules: bool,
debug: bool,
typescript: bool,
demangle: bool,
@ -37,6 +38,7 @@ impl Bindgen {
path: None,
nodejs: false,
browser: false,
no_modules: false,
debug: false,
typescript: false,
demangle: true,
@ -58,6 +60,11 @@ impl Bindgen {
self
}
pub fn no_modules(&mut self, no_modules: bool) -> &mut Bindgen {
self.no_modules = no_modules;
self
}
pub fn debug(&mut self, debug: bool) -> &mut Bindgen {
self.debug = debug;
self