Skip to content

Commit 85e329a

Browse files
committed
ci: Fail build on warnings
1 parent af7cbf3 commit 85e329a

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
5252

5353
- name: Build
54-
run: cargo build --all --verbose
54+
run: cargo build --all --verbose --features strict
5555
- name: Tests
5656
run: cargo test --all --verbose
5757

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ rust-version = "1.78.0"
1616

1717
[features]
1818
std = []
19+
strict = [] # For CI builds, fails on warnings
1920

2021
[dependencies]
2122
can-dbc = "6.0.0"

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
//! ```
2525
2626
#![deny(missing_docs)]
27+
#![cfg_attr(feature = "strict", deny(warnings))]
2728
#![deny(clippy::arithmetic_side_effects)]
2829

2930
use anyhow::{anyhow, ensure, Context, Result};

0 commit comments

Comments
 (0)