Struct cargo_auto_lib::CargoToml
source ·
pub struct CargoToml {
cargo_toml_workspace_maybe: Manifest,
_cargo_toml_main: Manifest,
package: Package,
}
Expand description
Read data from Cargo.toml Read data from Cargo.toml
Fields§
§cargo_toml_workspace_maybe:
Manifest
the first Cargo.toml is maybe a workspace. It has a different structure.
_cargo_toml_main: Manifest
the main Cargo.toml is different for single project or for workspace for workspace is the first main
member
package:
Package
the package is read from the main Cargo.toml
Trait Implementations§
impl CargoTomlPublicApiMethods for CargoToml
fn package_name(&self) -> String
Cargo.toml package name
fn package_version(&self) -> String
Cargo.toml package version
Cargo.toml package authors as string
Cargo.toml package authors as string without emails
fn package_repository(&self) -> Option<String>
Cargo.toml package repository
fn package_description(&self) -> Option<String>
Cargo.toml package repository
fn package_homepage(&self) -> String
Cargo.toml package homepage
fn github_owner(&self) -> Option<String>
GitHub owner from package_repository
fn package_keywords(&self) -> Vec<String>
Cargo.toml package keywords
Auto Trait Implementations§
impl RefUnwindSafe for CargoToml
impl Send for CargoToml
impl Sync for CargoToml
impl Unpin for CargoToml
impl UnwindSafe for CargoToml
Blanket Implementations§
impl<T> BorrowMut<T> for T
where T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read
more