Update to 1.0 Signed-off-by: constantoine <cleo.rebert@gmail.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
diff --git a/Cargo.toml b/Cargo.toml
index 1c545de..9473725 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "totp-rs"
-version = "0.7.4"
+version = "1.0.0"
authors = ["Cleo Rebert <cleo.rebert@gmail.com>"]
edition = "2021"
readme = "README.md"
@@ -21,9 +21,9 @@ serde_support = ["serde"]
[dependencies]
serde = { version = "1.0", features = ["derive"], optional = true }
-sha2 = "~0.10.1"
+sha2 = "~0.10.2"
sha-1 = "~0.10.0"
-hmac = "~0.12.0"
+hmac = "~0.12.1"
base32 = "~0.4"
qrcode = { version = "~0.12", optional = true }
image = { version = "~0.23.14", optional = true}
diff --git a/README.md b/README.md
index e782d28..a461319 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ With optional feature "serde_support", library-defined types will be Deserialize
Add it to your `Cargo.toml`:
```toml
[dependencies]
-totp-rs = "~0.7"
+totp-rs = "~1.0"
```
You can then do something like:
```Rust
@@ -45,7 +45,7 @@ println!("{}", token);
Add it to your `Cargo.toml`:
```toml
[dependencies.totp-rs]
-version = "~0.7"
+version = "~1.0"
features = ["qr"]
```
You can then do something like:
@@ -67,6 +67,6 @@ println!("{}", code);
Add it to your `Cargo.toml`:
```toml
[dependencies.totp-rs]
-version = "~0.7"
+version = "~1.0"
features = ["serde_support"]
```