Skip to content

Commit 7a1a529

Browse files
committed
Renamed the 'utilities' feature to 'utils' and removed it from the default build. Added some CI checks.
1 parent e705c0e commit 7a1a529

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

.github/workflows/rust.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# It does the following:
44
# - Format check of the sources using nightly
55
# - Build check using the current stable compiler and the MSRV version.
6+
# - Check library, utils, and examples
67
# - Clippy check using the MSRV compiler
78
#
89
# Note that the current MSRV predates the new cargo resolver, v3, so we go
@@ -59,9 +60,17 @@ jobs:
5960
echo 'resolver.incompatible-rust-versions = "fallback"' > $HOME/.cargo/config.toml
6061
cargo +stable update
6162
62-
- name: Build check
63-
run: |
64-
cargo +${{ matrix.rust }} check --verbose
63+
- name: Library build check
64+
run: cargo +${{ matrix.rust }} check
65+
66+
- name: Features build check
67+
run: cargo +${{ matrix.rust }} check --features=utils
68+
69+
- name: Examples build check
70+
run: cargo +${{ matrix.rust }} check --examples
71+
72+
- name: Doc generation
73+
run: cargo +${{ matrix.rust }} doc --no-deps
6574

6675
# - name: Run tests
6776
# run: cargo +${{ matrix.rust }} test --verbose

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
88
### (Unreleased)
99

1010
- Updated the Github Actions CI to resolve the dependencies for the MSRV with cargo resolver v3.
11+
- Renamed the 'utilities' feature to 'utils' and removed it from the default build
1112
- Bumped dependencies
1213
- clap v4.4
1314
- thiserror v2.0

Cargo.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Linux Industrial I/O (IIO) Support
1414
"""
1515

1616
[features]
17-
default = ["utilities", "libiio_v0_25"]
18-
utilities = ["clap"]
17+
default = ["libiio_v0_25"]
18+
utils = ["clap"]
1919
libiio_v0_25 = ["libiio-sys/libiio_v0_25"]
2020
libiio_v0_24 = ["libiio-sys/libiio_v0_24"]
2121
libiio_v0_23 = ["libiio-sys/libiio_v0_23"]
@@ -35,13 +35,12 @@ clap = { version = "4.4", features = ["cargo"] }
3535
ctrlc = "3.4"
3636
anyhow = "1.0"
3737

38-
3938
# ----- Utilities -----
4039

4140
[[bin]]
4241
name = "riio_info"
43-
required-features = ["utilities"]
42+
required-features = ["utils"]
4443

4544
[[bin]]
4645
name = "riio_stop_all"
47-
required-features = ["utilities"]
46+
required-features = ["utils"]

0 commit comments

Comments
 (0)