Commit 537350ad8b66d5533ff1606fa40f11e2d7d89bd4

constantoine 2022-08-09T11:06:25

Prepare for release and update Workflow Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>

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