Struct readme_sync::Manifest [−][src]
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
impl Manifest
[src]
pub fn from_name_and_version(name: String, version: String) -> Self
[src]
Creates simple manifest from package name and version.
pub fn from_cargo_toml_content(content: &str) -> Result<Self, TomlParseError>
[src]
Creates manifest from Cargo.toml
file contents.
pub fn from_cargo_toml_path(path: &Path) -> Result<Self, TomlReadError>
[src]
Reads manifest from a specified file path.
pub fn from_package_path(path: &Path) -> Result<Self, TomlReadError>
[src]
Reads manifest from the Cargo.toml
file in the specified package path.
pub fn relative_readme_path(&self, root: &Path) -> Option<&Path>
[src]
Returns package relative readme path.
pub fn default_readme_filename(root: &Path) -> Option<&'static Path>
[src]
Returns package relative default readme path.
pub fn is_lib_documented_by_default(&self) -> bool
[src]
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.
pub fn relative_lib_path(&self) -> &Path
[src]
Returns package relative library file path.
See https://doc.rust-lang.org/cargo/commands/cargo-doc.html for more details.
pub fn default_relative_bin_path(&self) -> &'static Path
[src]
Returns package relative default binary file path.
See https://doc.rust-lang.org/cargo/commands/cargo-doc.html for more details.
pub fn relative_bin_path(&self, name: &str) -> Result<PathBuf, BinPathError>
[src]
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.
pub fn default_relative_target_path(&self) -> &Path
[src]
Returns package default library or binary target.
See https://doc.rust-lang.org/cargo/commands/cargo-doc.html for more details.
pub fn docs_rs_default_target(&self) -> &str
[src]
Returns package target used for docs.rs builds.
See https://docs.rs/about/metadata for more details.
pub fn default_features(&self) -> HashSet<&str>
[src]
Returns a default package features.
pub fn all_features(&self) -> HashSet<&str>
[src]
Returns all package features.
pub fn docs_rs_features(&self) -> HashSet<&str>
[src]
Returns package features used for docs.rs builds.
See https://docs.rs/about/metadata for more details.
Trait Implementations
impl Clone for Manifest
[src]
impl Debug for Manifest
[src]
impl<'de> Deserialize<'de> for Manifest
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Manifest
[src]
impl PartialEq<Manifest> for Manifest
[src]
impl StructuralEq for Manifest
[src]
impl StructuralPartialEq for Manifest
[src]
Auto Trait Implementations
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnwindSafe for Manifest
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,