pub struct CrateConfig {
pub name: String,
pub sources: Vec<PathBuf>,
pub version_from: String,
pub core_import: Option<String>,
pub workspace_root: Option<PathBuf>,
pub skip_core_import: bool,
pub features: Vec<String>,
pub path_mappings: HashMap<String, String>,
}Fields§
§name: String§sources: Vec<PathBuf>§version_from: String§core_import: Option<String>§workspace_root: Option<PathBuf>Optional workspace root path for resolving pub use re-exports from sibling crates.
skip_core_import: boolWhen true, skip adding use {core_import}; to generated bindings.
features: Vec<String>Cargo features that are enabled in binding crates.
Fields gated by #[cfg(feature = "...")] matching these features
are treated as always-present (cfg stripped from the IR).
path_mappings: HashMap<String, String>Maps extracted rust_path prefixes to actual import paths in binding crates. Example: { “spikard” = “spikard_http” } rewrites “spikard::ServerConfig” to “spikard_http::ServerConfig”
Trait Implementations§
Source§impl Clone for CrateConfig
impl Clone for CrateConfig
Source§fn clone(&self) -> CrateConfig
fn clone(&self) -> CrateConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CrateConfig
impl Debug for CrateConfig
Source§impl<'de> Deserialize<'de> for CrateConfig
impl<'de> Deserialize<'de> for CrateConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CrateConfig
impl RefUnwindSafe for CrateConfig
impl Send for CrateConfig
impl Sync for CrateConfig
impl Unpin for CrateConfig
impl UnsafeUnpin for CrateConfig
impl UnwindSafe for CrateConfig
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