Prepare for release and update Workflow Signed-off-by: constantoine <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
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index be67e20..bd8f9d0 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -20,9 +20,21 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - name: Test
+ - name: All features
+ uses: actions/checkout@v2
run: cargo test --all-features
+ - name: No feature
+ uses: actions/checkout@v2
+ run: cargo test
+ - name: otpauth feature
+ uses: actions/checkout@v2
+ run: cargo test --features=otpauth
+ - name: gen_secret feature
+ uses: actions/checkout@v2
+ run: cargo test --features=gen_secret
+ - name: otpauth+gensecret feature
+ uses: actions/checkout@v2
+ run: cargo test --features=gen_secret,otpauth
coverage:
runs-on: ubuntu-latest
diff --git a/Cargo.toml b/Cargo.toml
index c8ace63..0600991 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "totp-rs"
-version = "2.0.1"
+version = "3.0.0"
authors = ["Cleo Rebert <cleo.rebert@gmail.com>"]
edition = "2021"
readme = "README.md"
@@ -33,4 +33,4 @@ constant_time_eq = "~0.2.1"
qrcodegen = { version = "~1.8", optional = true }
image = { version = "~0.24.2", features = ["png"], optional = true, default-features = false}
base64 = { version = "~0.13", optional = true }
-rand = { version = "~0.8.5", optional = true }
\ No newline at end of file
+rand = { version = "~0.8.5", features = ["std_rng", "std"], optional = true, default-features = false }
\ No newline at end of file