Struct fcplug_build::Config
source · pub struct Config {
pub idl_file: PathBuf,
pub target_crate_dir: Option<PathBuf>,
pub go_root_path: Option<PathBuf>,
pub go_mod_parent: &'static str,
pub use_goffi_cdylib: bool,
pub add_clib_to_git: bool,
}
Fields§
§idl_file: PathBuf
§target_crate_dir: Option<PathBuf>
Target crate directory for code generation
go_root_path: Option<PathBuf>
go command dir, default to find from $GOROOT > $PATH
go_mod_parent: &'static str
§use_goffi_cdylib: bool
If use_goffi_cdylib is true, go will be compiled into a c dynamic library.
add_clib_to_git: bool
If add_clib_to_git is true, the c lib files will be automatically added to the git version management list.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more