Prepare for release and update Workflow

Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
This commit is contained in:
constantoine 2022-08-09 11:06:25 +02:00
parent 994efb7214
commit 537350ad8b
No known key found for this signature in database
GPG Key ID: 0FA097951CF65367
2 changed files with 16 additions and 4 deletions

View File

@ -20,9 +20,21 @@ jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - name: All features
- name: Test uses: actions/checkout@v2
run: cargo test --all-features 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: coverage:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -1,6 +1,6 @@
[package] [package]
name = "totp-rs" name = "totp-rs"
version = "2.0.1" version = "3.0.0"
authors = ["Cleo Rebert <cleo.rebert@gmail.com>"] authors = ["Cleo Rebert <cleo.rebert@gmail.com>"]
edition = "2021" edition = "2021"
readme = "README.md" readme = "README.md"
@ -33,4 +33,4 @@ constant_time_eq = "~0.2.1"
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.13", optional = true }
rand = { version = "~0.8.5", optional = true } rand = { version = "~0.8.5", features = ["std_rng", "std"], optional = true, default-features = false }