Struct wasm_pack::manifest::CrateData[][src]

pub struct CrateData { /* fields omitted */ }
Expand description

Store for metadata learned about a crate

Implementations

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.

Errors

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 prefix for output file names

Get the license for the crate at the given path.

Get the license file path 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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.