Bump version to 4.0 Signed-off-by: Cléo REBERT <cleo.rebert-ext@treezor.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
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: