anodizer_core/config/binstall.rs
1use schemars::JsonSchema;
2use serde::{Deserialize, Serialize};
3
4// ---------------------------------------------------------------------------
5// BinstallConfig
6// ---------------------------------------------------------------------------
7
8#[derive(Debug, Clone, Serialize, Deserialize, Default, JsonSchema)]
9#[serde(default)]
10pub struct BinstallConfig {
11 /// When true, generate a .cargo/config.toml binstall section for cargo-binstall.
12 pub enabled: Option<bool>,
13 /// Custom download URL template for cargo-binstall (supports templates).
14 pub pkg_url: Option<String>,
15 /// Directory within the archive where binaries are located.
16 pub bin_dir: Option<String>,
17 /// Package format hint for cargo-binstall: tgz, tar.gz, tar.xz, zip, bin, etc.
18 pub pkg_fmt: Option<String>,
19}