pub struct Config {
pub bin: Option<bool>,
pub bin_name: String,
pub semver_suffix: bool,
pub overlay: Option<PathBuf>,
pub excludes: Option<Vec<String>>,
pub allow_prerelease_deps: bool,
pub summary: String,
pub uploaders: Option<Vec<String>>,
pub source: Option<SourceOverride>,
pub packages: Option<HashMap<String, PackageOverride>>,
}
Fields§
§bin: Option<bool>
§bin_name: String
§semver_suffix: bool
§overlay: Option<PathBuf>
§excludes: Option<Vec<String>>
§allow_prerelease_deps: bool
§summary: String
§uploaders: Option<Vec<String>>
§source: Option<SourceOverride>
§packages: Option<HashMap<String, PackageOverride>>
Implementations§
source§impl Config
impl Config
pub fn build_bin_package(&self) -> bool
pub fn overlay_dir(&self, config_path: Option<&Path>) -> Option<PathBuf>
pub fn is_source_present(&self) -> bool
pub fn is_packages_present(&self) -> bool
pub fn orig_tar_excludes(&self) -> Option<&Vec<String>>
pub fn policy_version(&self) -> Option<&str>
pub fn homepage(&self) -> Option<&str>
pub fn build_depends(&self) -> Option<&Vec<String>>
pub fn uploaders(&self) -> Option<&Vec<String>>
pub fn build_depends_excludes(&self) -> Option<&Vec<String>>
pub fn section(&self) -> Option<&str>
pub fn package_section(&self, pkgname: &str) -> Option<&str>
pub fn package_summary(&self, pkgname: &str) -> Option<(&str, &str)>
pub fn package_depends(&self, pkgname: &str) -> Option<&Vec<String>>
pub fn package_depends_for_feature<'a>(
&'a self,
feature: &'a str,
f_depends: Vec<&'a str>
) -> impl Iterator<Item = &str> + 'a
pub fn vcs_git(&self) -> Option<&str>
pub fn vcs_browser(&self) -> Option<&str>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Configwhere
Config: Default,
impl<'de> Deserialize<'de> for Configwhere
Config: Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more