Struct cbindgen::Cargo [] [src]

pub struct Cargo { /* fields omitted */ }

A collection of metadata for a library from cargo.

Methods

impl Cargo
[src]

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.

Finds the package reference for a dependency of a crate using Cargo.lock.

Finds the directory for a specified package reference.

Finds src/lib.rs for a specified package reference.

Trait Implementations

impl Clone for Cargo
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Cargo
[src]

Formats the value using the given formatter.