APIs for links and references in the ATmosphere

env for secret

+2 -2
+1 -1
who-am-i/Cargo.toml
··· 11 11 axum = "0.8.4" 12 12 axum-extra = { version = "0.10.1", features = ["cookie-signed", "typed-header"] } 13 13 axum-template = { version = "3.0.0", features = ["handlebars"] } 14 - clap = { version = "4.5.40", features = ["derive"] } 14 + clap = { version = "4.5.40", features = ["derive", "env"] } 15 15 ctrlc = "3.4.7" 16 16 dashmap = "6.1.0" 17 17 handlebars = { version = "6.3.2", features = ["dir_source"] }
+1 -1
who-am-i/src/main.rs
··· 11 11 /// must have at least 512 bits (64 bytes) of randomness 12 12 /// 13 13 /// eg: `cat /dev/urandom | head -c 64 | base64` 14 - #[arg(long)] 14 + #[arg(long, env)] 15 15 app_secret: String, 16 16 /// Enable dev mode 17 17 ///