Bump version to 4.0

Signed-off-by: Cléo REBERT <cleo.rebert-ext@treezor.com>
This commit is contained in:
Cléo REBERT 2022-12-29 14:16:19 +01:00
parent cf017a9b67
commit b58a666af9
No known key found for this signature in database
GPG Key ID: 0FA097951CF65367
2 changed files with 9 additions and 9 deletions

View File

@ -1,7 +1,8 @@
[package] [package]
name = "totp-rs" name = "totp-rs"
version = "3.1.0" version = "4.0.0"
authors = ["Cleo Rebert <cleo.rebert@gmail.com>"] authors = ["Cleo Rebert <cleo.rebert@gmail.com>"]
rust-version = "1.59"
edition = "2021" edition = "2021"
readme = "README.md" readme = "README.md"
license = "MIT" license = "MIT"
@ -20,7 +21,6 @@ otpauth = ["url", "urlencoding"]
qr = ["qrcodegen", "image", "base64", "otpauth"] qr = ["qrcodegen", "image", "base64", "otpauth"]
serde_support = ["serde"] serde_support = ["serde"]
gen_secret = ["rand"] gen_secret = ["rand"]
zeroize = ["dep:zeroize"]
[dependencies] [dependencies]
serde = { version = "1.0", features = ["derive"], optional = true } serde = { version = "1.0", features = ["derive"], optional = true }
@ -30,9 +30,9 @@ hmac = "~0.12.1"
base32 = "~0.4" base32 = "~0.4"
urlencoding = { version = "^2.1.0", optional = true} urlencoding = { version = "^2.1.0", optional = true}
url = { version = "^2.2.2", 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 } qrcodegen = { version = "~1.8", optional = true }
image = { version = "~0.24.2", features = ["png"], optional = true, default-features = false} 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 } rand = { version = "~0.8.5", features = ["std_rng", "std"], optional = true, default-features = false }
zeroize = { version = "1.5.7", features = ["alloc", "derive"], optional = true } zeroize = { version = "1.5.7", features = ["alloc", "derive"], optional = true }

View File

@ -48,7 +48,7 @@ Is equivalent to
Add it to your `Cargo.toml`: Add it to your `Cargo.toml`:
```toml ```toml
[dependencies] [dependencies]
totp-rs = "^3.0" totp-rs = "^4.0"
``` ```
You can then do something like: You can then do something like:
```Rust ```Rust
@ -89,7 +89,7 @@ fn main() {
Add it to your `Cargo.toml`: Add it to your `Cargo.toml`:
```toml ```toml
[dependencies.totp-rs] [dependencies.totp-rs]
version = "^3.0" version = "^4.0"
features = ["qr"] features = ["qr"]
``` ```
You can then do something like: You can then do something like:
@ -116,7 +116,7 @@ fn main() {
Add it to your `Cargo.toml`: Add it to your `Cargo.toml`:
```toml ```toml
[dependencies.totp-rs] [dependencies.totp-rs]
version = "^3.0" version = "^4.0"
features = ["serde_support"] features = ["serde_support"]
``` ```
@ -125,7 +125,7 @@ features = ["serde_support"]
Add it to your `Cargo.toml`: Add it to your `Cargo.toml`:
```toml ```toml
[dependencies.totp-rs] [dependencies.totp-rs]
version = "^3.0" version = "^4.0"
features = ["otpauth"] features = ["otpauth"]
``` ```
You can then do something like: You can then do something like:
@ -144,7 +144,7 @@ fn main() {
Add it to your `Cargo.toml`: Add it to your `Cargo.toml`:
```toml ```toml
[dependencies.totp-rs] [dependencies.totp-rs]
version = "^3.0" version = "^4.0"
features = ["gen_secret"] features = ["gen_secret"]
``` ```
You can then do something like: You can then do something like: