Compare commits

...

2 commits

Author SHA1 Message Date
fe98c451f0 Use name for confid 2023-06-24 15:54:01 -04:00
53bbc022a3 Optimize for filesize in release mode 2023-06-24 15:52:32 -04:00
2 changed files with 8 additions and 3 deletions

View file

@ -7,7 +7,11 @@ crate-type = ["lib"]
[[bin]]
name = "xpkey"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.release]
strip = true
opt-level = "z"
lto = true
codegen-units = 1
[dependencies]
anyhow = "1.0.71"

View file

@ -32,7 +32,8 @@ enum Commands {
/// Validate a product key
Validate(ValidateArgs),
/// Generate a phone activation Confirmation ID from an Installation ID
Confid(ConfirmationIdArgs),
#[command(name = "confid")]
ConfirmationId(ConfirmationIdArgs),
}
#[derive(Args, Clone, Debug)]
@ -115,7 +116,7 @@ fn main() -> Result<()> {
args.verbose,
)?;
}
Commands::Confid(confirmation_id_args) => {
Commands::ConfirmationId(confirmation_id_args) => {
confirmation_id(&confirmation_id_args.instid)?;
}
}