Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,18 @@ jobs:
# macos-14 for M1 runners
os: [ubuntu-22.04, windows-2022, macos-14]
features: [all, default]
rust-version:
- stable
# 1.85 is the MSRV
- "1.85"
include:
- features: all
feature_flags: --all-features
steps:
- uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust-version }}
- name: Report cargo version
run: cargo --version
- name: Report rustc version
Expand All @@ -75,4 +82,7 @@ jobs:
- name: Build
run: cargo build ${{ matrix.feature_flags }} --locked --all-targets --verbose
- name: Run tests
run: cargo test ${{ matrix.feature_flags }} --locked --all-targets --verbose
run: cargo test ${{ matrix.feature_flags }} --locked --all-targets --verbose -- --exact --skip fail
- name: Run trybuild tests
run: cargo test ${{ matrix.feature_flags }} --locked --all-targets --verbose -- --exact fail

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ default-members = ["dropshot", "dropshot_endpoint" ]

resolver = "2"

[workspace.package]
edition = "2024"
rust-version = "1.85"

[workspace.lints.clippy]
# Clippy's style nits are useful, but not worth keeping in CI.
style = { level = "allow", priority = -1 }
Expand Down
3 changes: 2 additions & 1 deletion dropshot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name = "dropshot"
description = "expose REST APIs from a Rust program"
version = "0.17.0"
authors = ["David Pacheco <dap@oxidecomputer.com>"]
edition = "2021"
edition.workspace = true
rust-version.workspace = true
license = "Apache-2.0"
repository = "https://github.com/oxidecomputer/dropshot/"
readme = "README-crates.io.md"
Expand Down
3 changes: 2 additions & 1 deletion dropshot_endpoint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name = "dropshot_endpoint"
description = "macro used by dropshot consumers for registering handlers"
version = "0.17.0"
authors = ["Adam H. Leventhal <ahl@oxide.computer>"]
edition = "2021"
edition.workspace = true
rust-version.workspace = true
license = "Apache-2.0"
repository = "https://github.com/oxidecomputer/dropshot/"

Expand Down
1 change: 0 additions & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
max_width = 80
use_small_heuristics = "max"
edition = "2024"
style_edition = "2024"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't realize this was inferred from edition if not present.
Nice.