Struct cbindgen::Cargo
[−]
[src]
pub struct Cargo { /* fields omitted */ }
A collection of metadata for a library from cargo.
Methods
impl Cargo
[src]
fn load(
crate_dir: &Path,
binding_crate_name: Option<&str>,
use_cargo_lock: bool
) -> Result<Cargo, String>
[src]
crate_dir: &Path,
binding_crate_name: Option<&str>,
use_cargo_lock: bool
) -> Result<Cargo, String>
Gather metadata from cargo for a specific library and binding crate name. If dependency finding isn't needed then Cargo.lock files don't need to be parsed.
Trait Implementations
impl Clone for Cargo
[src]
fn clone(&self) -> Cargo
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more