1use std::path::PathBuf;
2
3#[derive(Default)]
5pub struct Config {
6 pub(crate) export_bindings_on_build: Option<PathBuf>,
7 pub(crate) bindings_header: Option<&'static str>,
8}
9
10impl Config {
11 pub fn new() -> Self {
12 Default::default()
13 }
14
15 pub fn export_ts_bindings<TPath>(mut self, export_path: TPath) -> Self
18 where
19 PathBuf: From<TPath>,
20 {
21 self.export_bindings_on_build = Some(PathBuf::from(export_path));
22 self
23 }
24
25 pub fn set_ts_bindings_header(mut self, custom: &'static str) -> Self {
28 self.bindings_header = Some(custom);
29 self
30 }
31}