pub struct CrateData { /* fields omitted */ }
Store for metadata learned about a crate
Reads all metadata for the crate whose manifest is inside the directory
specified by path
.
Read the manifest_path
file and deserializes it using the toml Deserializer.
Returns a Result containing ManifestAndUnsedKeys
which contains CargoManifest
and a BTreeSet<String>
containing the unused keys from the parsed file.
Will return Err if the file (manifest_path) couldn't be read or
if deserialize to CargoManifest
fails.
Iterating through all the passed unused_keys
and output
a warning for each unknown key.
Get the configured profile.
Check that the crate the given path is properly configured.
Get the crate name for the crate at the given path.
Get the license for the crate at the given path.
Returns the path to this project's target directory where artifacts are
located after a cargo build.
Returns the path to this project's root cargo workspace directory
Generate a package.json file inside in ./pkg
.
π¬ This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
π¬ This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
π¬ This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
π¬ This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
π¬ This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static