Commit b58a666af9fd258272008fdb0db910ee3daf5a99

Cléo REBERT 2022-12-29T14:16:19

Bump version to 4.0 Signed-off-by: Cléo REBERT <cleo.rebert-ext@treezor.com>

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 <cleo.rebert@gmail.com>"]
+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: