Skip to content

Commit

Permalink
Update MSRV to 1.72 and add CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-garcia committed Feb 6, 2024
1 parent bf02c3b commit 3928963
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 15 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/rust-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,25 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

msrv:
name: Check Rust minimum supported version
runs-on: ubuntu-22.04

steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Install rust
uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248 # stable
with:
toolchain: 1.72.0

- name: Cache cargo registry
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3

- name: Test
run: cargo check --all-features

wasm:
name: WASM

Expand Down
2 changes: 1 addition & 1 deletion crates/bitwarden-c/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "bitwarden-c"
version = "0.1.0"
edition = "2021"
rust-version = "1.57"
rust-version = "1.72"

[lib]
crate-type = ["lib", "staticlib", "cdylib"]
Expand Down
2 changes: 1 addition & 1 deletion crates/bitwarden-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "bitwarden-cli"
version = "0.1.0"
edition = "2021"
rust-version = "1.57"
rust-version = "1.72"

[dependencies]
clap = { version = "4.4.18", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/bitwarden-crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Internal crate for the bitwarden crate. Do not use.
"""
keywords = ["bitwarden"]
edition = "2021"
rust-version = "1.57"
rust-version = "1.72"

[features]
default = []
Expand Down
2 changes: 1 addition & 1 deletion crates/bitwarden-generators/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Internal crate for the bitwarden crate. Do not use.
"""
keywords = ["bitwarden"]
edition = "2021"
rust-version = "1.57"
rust-version = "1.72"

[features]
mobile = ["uniffi"] # Mobile-specific features
Expand Down
2 changes: 1 addition & 1 deletion crates/bitwarden-json/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ JSON bindings for the Bitwarden Secret Manager SDK
keywords = ["bitwarden", "secrets manager"]
categories = ["api-bindings"]
edition = "2021"
rust-version = "1.57"
rust-version = "1.72"

[features]
internal = ["bitwarden/internal"] # Internal testing methods
Expand Down
2 changes: 1 addition & 1 deletion crates/bitwarden-napi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ N-API bindings for the Bitwarden Secrets Manager SDK
"""
keywords = ["bitwarden", "secrets manager"]
edition = "2021"
rust-version = "1.57"
rust-version = "1.72"

[lib]
crate-type = ["cdylib", "rlib"]
Expand Down
2 changes: 1 addition & 1 deletion crates/bitwarden-py/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "bitwarden-py"
version = "0.1.0"
edition = "2021"
rust-version = "1.57"
rust-version = "1.72"

[lib]
name = "bitwarden_py"
Expand Down
2 changes: 1 addition & 1 deletion crates/bitwarden-uniffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "bitwarden-uniffi"
version = "0.1.0"
edition = "2021"
rust-version = "1.57"
rust-version = "1.72"

[features]
docs = ["dep:schemars"] # Docs
Expand Down
2 changes: 1 addition & 1 deletion crates/bitwarden-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "bitwarden-wasm"
version = "0.1.0"
edition = "2021"
rust-version = "1.57"
rust-version = "1.72"

[lib]
crate-type = ["cdylib"]
Expand Down
2 changes: 1 addition & 1 deletion crates/bitwarden/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Bitwarden Secrets Manager SDK
"""
keywords = ["bitwarden", "secrets-manager"]
edition = "2021"
rust-version = "1.57"
rust-version = "1.72"

[features]
default = ["secrets"]
Expand Down
2 changes: 1 addition & 1 deletion crates/bitwarden/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ bitwarden = { "*", features = ["secrets"] }

## Minimum Supported Rust Version

Rust **1.57** or higher.
Rust **1.72** or higher.

## Example

Expand Down
2 changes: 1 addition & 1 deletion crates/bw/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "bw"
version = "0.0.2"
edition = "2021"
rust-version = "1.60"
rust-version = "1.72"
authors = ["Bitwarden Inc"]
license-file = "LICENSE"
repository = "https://github.com/bitwarden/sdk"
Expand Down
2 changes: 1 addition & 1 deletion crates/bws/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "bws"
version = "0.4.0"
edition = "2021"
rust-version = "1.60"
rust-version = "1.72"
authors = ["Bitwarden Inc"]
license-file = "LICENSE"
repository = "https://github.com/bitwarden/sdk"
Expand Down
2 changes: 1 addition & 1 deletion crates/sdk-schemas/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "sdk-schemas"
version = "0.1.0"
edition = "2021"
rust-version = "1.57"
rust-version = "1.72"

[features]
internal = [
Expand Down
2 changes: 1 addition & 1 deletion crates/uniffi-bindgen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "uniffi-bindgen"
version = "0.1.0"
edition = "2021"
rust-version = "1.57"
rust-version = "1.72"

[[bin]]
# This can be whatever name makes sense for your project, but the rest of this tutorial assumes uniffi-bindgen.
Expand Down

0 comments on commit 3928963

Please sign in to comment.