mod package_config#

module package_config#

Layered TOML configuration for public package-profile definitions.

Variables

const PROFILE_CONFIG_SCHEMA_VERSION: u32#

Functions

fn apply_profile_layers(plan: &mut PackagePlan, layers: &[ProfileConfigLayer]) -> Result<(), ProfileConfigError>#

Enums

enum ProfileConfigError#
UnsupportedSchema(u32)#
Toml(toml::de::Error)#
Io(String, std::io::Error)#
EmptyProfileName#
MissingParent#
profile: String#
parent: String#
DefaultProfileCount(usize)#

Structs and Unions

struct ProfileConfigLayer#
schema_version: u32#
profiles: Vec<ProfilePatch>#

Implementations

impl ProfileConfigLayer#

Functions

fn from_path(path: &Path) -> Result<Self, ProfileConfigError>#
fn from_toml_str(input: &str) -> Result<Self, ProfileConfigError>#
struct ProfilePatch#
name: String#
inherits: Option<String>#
default: Option<bool>#
versionsuffix: Option<Vec<String>>#
features: BTreeMap<String, bool>#
parameters: BTreeMap<String, String>#
toolchain_options: BTreeMap<String, bool>#
config_options: Option<Vec<String>>#
verification_commands: Option<Vec<VerificationCommand>>#