pub struct Profile {Show 14 fields
pub app: &'static str,
pub sdk_package: &'static str,
pub sdk_crate: &'static str,
pub sdk_version: &'static str,
pub sdk_files: &'static [(&'static str, &'static str)],
pub abi_version: u32,
pub symbols: [&'static str; 3],
pub trust_domain: &'static [u8],
pub lineup_domain: &'static [u8],
pub crate_prefix: &'static str,
pub codegen: u32,
pub cargo_env: &'static str,
pub cargo_hint: &'static str,
pub math_help: &'static str,
}Expand description
Everything that names the application or its SDK. Hashes, generated code, symbol names and messages all come from here, so an application keeps its formats by passing its own.
Fields§
§app: &'static strThe application, in messages and generated-code comments (“not a Weirdnet plugin”).
sdk_package: &'static strThe SDK’s package and crate names (weirdnet-plugin, weirdnet_plugin).
sdk_crate: &'static str§sdk_version: &'static str§sdk_files: &'static [(&'static str, &'static str)]The SDK crate’s files (path, contents), written next to builds.
abi_version: u32The ABI version plugins must report.
symbols: [&'static str; 3]The three exported symbols (abi, info, run).
trust_domain: &'static [u8]Domain separators of the trust and line-up hashes (end them with a NUL).
lineup_domain: &'static [u8]§crate_prefix: &'static strGenerated crates are named {crate_prefix}{build key}.
codegen: u32Bumped when generated code changes (invalidates cached builds).
cargo_env: &'static strThe variable that names cargo (else cargo on the PATH).
cargo_hint: &'static strAfter “… compile to plugins with cargo (X not found). “ when there is none.
math_help: &'static strAfter “unknown function f” in math sources.