-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to Rust version 2021 and bumb MSRV to 1.63 (#52)
* update rust version and MSRV * update changelog * Update and fix CI * reduce MSRV to 1.63 * remove bors, update dev deps and ci versions * Update CHANGELOG.md
- Loading branch information
Showing
5 changed files
with
74 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,79 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: # Need to run on pull-requests, otherwise PRs from forks don't run | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
static_analysis: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: Swatinem/[email protected] | ||
- uses: dprint/[email protected] | ||
- run: cargo clippy --workspace --all-targets -- -D warnings | ||
- uses: actions/checkout@v4 | ||
|
||
msrv: | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
components: clippy,rustfmt | ||
toolchain: stable | ||
|
||
- run: cargo fmt --all --check | ||
|
||
- run: cargo clippy --workspace --all-targets --all-features -- -D warnings | ||
|
||
mdtomlfmt: | ||
name: Generic format (md,toml) | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Run dprint | ||
run: | | ||
curl -fsSL https://dprint.dev/install.sh | sh | ||
/home/runner/.dprint/bin/dprint check | ||
build_msrv: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.63 | ||
|
||
- uses: Swatinem/[email protected] | ||
|
||
- run: cargo build --workspace --all-features | ||
|
||
build_features: | ||
name: Build with varying features | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: stable | ||
|
||
- name: Install Rust | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: 1.41 # MSRV | ||
override: true | ||
profile: minimal | ||
- run: cargo install cargo-hack | ||
|
||
- uses: Swatinem/rust-cache@v2.2.0 | ||
- uses: Swatinem/rust-cache@v2.7.0 | ||
|
||
- run: cargo build | ||
- run: cargo hack build --workspace --each-feature | ||
|
||
test: | ||
strategy: | ||
matrix: | ||
rust: [ | ||
stable, | ||
nightly | ||
] | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust ${{ matrix.rust }} | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
override: true | ||
profile: minimal | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: stable | ||
|
||
- uses: Swatinem/rust-cache@v2.2.0 | ||
- uses: Swatinem/rust-cache@v2.7.0 | ||
|
||
- run: cargo test | ||
- run: cargo test --workspace --all-features |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
[package] | ||
name = "monero-epee-bin-serde" | ||
version = "1.0.1" | ||
authors = [ "CoBloX Team <[email protected]>" ] | ||
authors = ["Monero Rust Contributors", "CoBloX Team <[email protected]>"] | ||
documentation = "https://docs.rs/monero-epee-bin-serde" | ||
edition = "2018" | ||
edition = "2021" | ||
license = "MIT OR Apache-2.0" | ||
repository = "https://github.com/comit-network/monero-epee-bin-serde" | ||
repository = "https://github.com/monero-rs/monero-epee-bin-serde" | ||
rust-version = "1.63.0" | ||
description = "A serde format for the binary encoding defined within the epee helper library of Monero." | ||
|
||
[dependencies] | ||
|
@@ -14,7 +15,7 @@ serde = "1" | |
|
||
[dev-dependencies] | ||
hex = "0.4" | ||
hex-literal = "0.3" | ||
monero = "0.18" | ||
serde = { version = "1", features = [ "derive" ] } | ||
serde_with = "1" | ||
hex-literal = "0.4" | ||
monero = "0.19" | ||
serde = { version = "1", features = ["derive"] } | ||
serde_with = "3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,13 @@ | ||
{ | ||
"$schema": "https://dprint.dev/schemas/v0.json", | ||
"projectType": "openSource", | ||
"incremental": true, | ||
"json": { | ||
}, | ||
"markdown": { | ||
}, | ||
"rustfmt": { | ||
"toml": { | ||
}, | ||
"includes": ["**/*.{json,md,rs,toml}"], | ||
"excludes": [ | ||
"**/*-lock.json", | ||
"**/target" | ||
], | ||
"includes": ["**/*.{md,toml}"], | ||
"excludes": ["target"], | ||
"plugins": [ | ||
"https://plugins.dprint.dev/json-0.10.2.wasm", | ||
"https://plugins.dprint.dev/markdown-0.7.1.wasm", | ||
"https://plugins.dprint.dev/rustfmt-0.3.0.wasm", | ||
"https://github.com/thomaseizinger/dprint-plugin-cargo-toml/releases/download/0.1.0/cargo-toml-0.1.0.wasm" | ||
"https://plugins.dprint.dev/markdown-0.13.3.wasm", | ||
"https://plugins.dprint.dev/toml-0.5.4.wasm" | ||
] | ||
} | ||
} |