Skip to content

Commit 566d76c

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

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.github/workflows/rust.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,13 @@ jobs:
6161
6262
- name: Build check
6363
run: |
64-
cargo +${{ matrix.rust }} check --verbose
64+
cargo +${{ matrix.rust }} check
65+
cargo +${{ matrix.rust }} check --features=utils
66+
cargo +${{ matrix.rust }} check --examples
67+
68+
- name: Doc generation
69+
run: |
70+
cargo +${{ matrix.rust }} doc --no-deps
6571
6672
# - name: Run tests
6773
# 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)