parent
6a8b23eb19
commit
28a2c57ec0
@ -1,13 +1,21 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "chacha20"
|
name = "chacha20"
|
||||||
description = "chacha20_poly1305 encryption tool"
|
description = "chacha20_poly1305 encryption tool"
|
||||||
version = "1.0.2"
|
version = "1.1.0"
|
||||||
authors = ["Avril <flanchan@cumallover.me>"]
|
authors = ["Avril <flanchan@cumallover.me>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
license = "gpl-3.0-or-later"
|
license = "gpl-3.0-or-later"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
|
||||||
|
# Explicitly clear buffers and cache after use
|
||||||
|
explicit_clear = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
base64 = "0.13"
|
base64 = "0.13"
|
||||||
getrandom = "0.2"
|
getrandom = "0.2"
|
||||||
openssl = "0.10"
|
openssl = "0.10"
|
||||||
smallvec = {version = "1.6", features=["union"]}
|
smallvec = {version = "1.6", features=["union"]}
|
||||||
|
|
||||||
|
[build-dependencies]
|
||||||
|
rustc_version = "0.2"
|
||||||
|
@ -0,0 +1,24 @@
|
|||||||
|
|
||||||
|
extern crate rustc_version;
|
||||||
|
use rustc_version::{version, version_meta, Channel};
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
// Assert we haven't travelled back in time
|
||||||
|
assert!(version().unwrap().major >= 1);
|
||||||
|
|
||||||
|
// Set cfg flags depending on release channel
|
||||||
|
match version_meta().unwrap().channel {
|
||||||
|
Channel::Stable => {
|
||||||
|
println!("cargo:rustc-cfg=stable");
|
||||||
|
}
|
||||||
|
Channel::Beta => {
|
||||||
|
println!("cargo:rustc-cfg=beta");
|
||||||
|
}
|
||||||
|
Channel::Nightly => {
|
||||||
|
println!("cargo:rustc-cfg=nightly");
|
||||||
|
}
|
||||||
|
Channel::Dev => {
|
||||||
|
println!("cargo:rustc-cfg=dev");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue