Use env!("CARGO_PKG_VERSION") instead of hardcoding version when possible
See https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-crates
This commit is contained in:
@@ -9,7 +9,7 @@ use std::time::SystemTime;
|
||||
use activity_pub::ap_accept_header;
|
||||
use activity_pub::sign::Signer;
|
||||
|
||||
const USER_AGENT: &'static str = "Plume/0.2.0";
|
||||
const USER_AGENT: &'static str = concat!("Plume/", env!("CARGO_PKG_VERSION"));
|
||||
|
||||
header! {
|
||||
(Signature, "Signature") => [String]
|
||||
|
||||
Reference in New Issue
Block a user