From b58a666af9fd258272008fdb0db910ee3daf5a99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9o=20REBERT?= Date: Thu, 29 Dec 2022 14:16:19 +0100 Subject: [PATCH] Bump version to 4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cléo REBERT --- Cargo.toml | 8 ++++---- README.md | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 235d25b..ddef606 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,8 @@ [package] name = "totp-rs" -version = "3.1.0" +version = "4.0.0" authors = ["Cleo Rebert "] +rust-version = "1.59" edition = "2021" readme = "README.md" license = "MIT" @@ -20,7 +21,6 @@ otpauth = ["url", "urlencoding"] qr = ["qrcodegen", "image", "base64", "otpauth"] serde_support = ["serde"] gen_secret = ["rand"] -zeroize = ["dep:zeroize"] [dependencies] serde = { version = "1.0", features = ["derive"], optional = true } @@ -30,9 +30,9 @@ hmac = "~0.12.1" base32 = "~0.4" urlencoding = { version = "^2.1.0", optional = true} url = { version = "^2.2.2", optional = true } -constant_time_eq = "~0.2.1" +constant_time_eq = "0.2.4" qrcodegen = { version = "~1.8", optional = true } image = { version = "~0.24.2", features = ["png"], optional = true, default-features = false} -base64 = { version = "~0.13", optional = true } +base64 = { version = "~0.20", optional = true } rand = { version = "~0.8.5", features = ["std_rng", "std"], optional = true, default-features = false } zeroize = { version = "1.5.7", features = ["alloc", "derive"], optional = true } \ No newline at end of file diff --git a/README.md b/README.md index 7aea502..b1393c4 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ Is equivalent to Add it to your `Cargo.toml`: ```toml [dependencies] -totp-rs = "^3.0" +totp-rs = "^4.0" ``` You can then do something like: ```Rust @@ -89,7 +89,7 @@ fn main() { Add it to your `Cargo.toml`: ```toml [dependencies.totp-rs] -version = "^3.0" +version = "^4.0" features = ["qr"] ``` You can then do something like: @@ -116,7 +116,7 @@ fn main() { Add it to your `Cargo.toml`: ```toml [dependencies.totp-rs] -version = "^3.0" +version = "^4.0" features = ["serde_support"] ``` @@ -125,7 +125,7 @@ features = ["serde_support"] Add it to your `Cargo.toml`: ```toml [dependencies.totp-rs] -version = "^3.0" +version = "^4.0" features = ["otpauth"] ``` You can then do something like: @@ -144,7 +144,7 @@ fn main() { Add it to your `Cargo.toml`: ```toml [dependencies.totp-rs] -version = "^3.0" +version = "^4.0" features = ["gen_secret"] ``` You can then do something like: