Added umd switch

This commit is contained in:
Sharad Chand
2018-04-04 20:06:53 +05:45
parent 9723fdd69b
commit 3a83b02de0
2 changed files with 15 additions and 5 deletions

View File

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