Struct readme_sync::Manifest[][src]

pub struct Manifest {
    pub package: ManifestPackage,
    pub lib: Option<ManifestLibTarget>,
    pub bin: Option<Vec<ManifestBinTarget>>,
    pub features: Option<HashMap<String, HashSet<String>>>,
    pub dependencies: Option<HashMap<String, ManifestDependency>>,
    pub docs_meta: Option<ManifestDocsRsMetadata>,
}
Expand description

Package manifest.

It includes only fields that are necessary for locating and parsing readme and library documentation.

See https://doc.rust-lang.org/cargo/reference/manifest.html for more details.

Fields

package: ManifestPackage

Defines a package.

lib: Option<ManifestLibTarget>

Library target settings.

bin: Option<Vec<ManifestBinTarget>>

Binary target settings.

features: Option<HashMap<String, HashSet<String>>>

Conditional compilation features.

dependencies: Option<HashMap<String, ManifestDependency>>

Package library dependencies.

docs_meta: Option<ManifestDocsRsMetadata>

Metadata that customize docs.rs builds.

Implementations

Creates simple manifest from package name and version.

Creates manifest from Cargo.toml file contents.

Reads manifest from a specified file path.

Reads manifest from the Cargo.toml file in the specified package path.

Returns package relative readme path.

Returns package relative default readme path.

Returns true if the package’s library is documented by default.

See https://doc.rust-lang.org/cargo/commands/cargo-doc.html for more details.

Returns package relative library file path.

See https://doc.rust-lang.org/cargo/commands/cargo-doc.html for more details.

Returns package relative default binary file path.

See https://doc.rust-lang.org/cargo/commands/cargo-doc.html for more details.

Returns package relative binary file path by the specified binary target name.

See https://doc.rust-lang.org/cargo/commands/cargo-doc.html for more details.

Returns package default library or binary target.

See https://doc.rust-lang.org/cargo/commands/cargo-doc.html for more details.

Returns package target used for docs.rs builds.

See https://docs.rs/about/metadata for more details.

Returns a default package features.

Returns all package features.

Returns package features used for docs.rs builds.

See https://docs.rs/about/metadata for more details.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.