Manos Pitsidianakis
cff16ac802
scmi: enable workspace-wide lints
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-08-04 12:30:43 +02:00
Manos Pitsidianakis
05b8f3ff06
rng: enable workspace-wide lints
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-08-04 12:30:43 +02:00
Manos Pitsidianakis
522edf798e
input: enable workspace-wide lints
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-08-04 12:30:43 +02:00
Manos Pitsidianakis
0915bba494
i2c: enable workspace-wide lints
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-08-04 12:30:43 +02:00
Manos Pitsidianakis
96cda16c85
vsock: enable workspace-wide lints
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-08-04 12:30:43 +02:00
Manos Pitsidianakis
c0e29d0124
template: enable workspace-wide lints
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-08-04 12:30:43 +02:00
Manos Pitsidianakis
f12689417e
console: enable workspace-wide lints
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-08-04 12:30:43 +02:00
Manos Pitsidianakis
4597304b85
Add workspace-wide lints
...
Crates need to opt-in by setting:
[lints]
workspace = true
In their Cargo.toml file.
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-08-04 12:30:43 +02:00
Manos Pitsidianakis
735bbdbb21
input: replace fallible integer cast with try_into
...
casting usize as i32 might wrap around in 32-bit targets, we don't
target them, but clippy complains.
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-08-04 12:30:43 +02:00
Manos Pitsidianakis
019e02b0f2
Replace ptr casts with typed cast() method
...
Replace type inferred raw pointer casts with .cast() method calls to
make intent clearer.
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-08-04 12:30:43 +02:00
Manos Pitsidianakis
926ea9b1c8
Replace invalid dbg! use with log::debug!
...
dbg! does not use format specifiers and prints in stderr regardless of
log output. Use log::debug! instead.
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-08-04 12:30:43 +02:00
dependabot[bot]
1dc341508c
build(deps): bump rust-vmm-ci from af54708 to 659de9e
...
Bumps [rust-vmm-ci](https://github.com/rust-vmm/rust-vmm-ci ) from `af54708` to `659de9e`.
- [Commits](af54708293...659de9e3a1 )
---
updated-dependencies:
- dependency-name: rust-vmm-ci
dependency-version: 659de9e3a1c2fb91602938977857a0c03f70a090
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-08-04 10:31:17 +03:00
dependabot[bot]
5e74f370be
build(deps): bump the non-rust-vmm group across 2 directories with 14 updates
...
Bumps the non-rust-vmm group with 10 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [clap](https://github.com/clap-rs/clap ) | `4.5.40` | `4.5.42` |
| [rand](https://github.com/rust-random/rand ) | `0.9.1` | `0.9.2` |
| [rstest](https://github.com/la10736/rstest ) | `0.25.0` | `0.26.1` |
| [clap_mangen](https://github.com/clap-rs/clap ) | `0.2.27` | `0.2.29` |
| [toml](https://github.com/toml-rs/toml ) | `0.8.23` | `0.9.4` |
| [cc](https://github.com/rust-lang/cc-rs ) | `1.2.27` | `1.2.30` |
| [litrs](https://github.com/LukasKalbertodt/litrs ) | `0.4.1` | `0.4.2` |
| redox_syscall | `0.5.13` | `0.5.17` |
| [serde_json](https://github.com/serde-rs/json ) | `1.0.140` | `1.0.142` |
| [winnow](https://github.com/winnow-rs/winnow ) | `0.7.11` | `0.7.12` |
Bumps the non-rust-vmm group with 5 updates in the /staging directory:
| Package | From | To |
| --- | --- | --- |
| [clap](https://github.com/clap-rs/clap ) | `4.5.40` | `4.5.42` |
| [rand](https://github.com/rust-random/rand ) | `0.9.1` | `0.9.2` |
| [rstest](https://github.com/la10736/rstest ) | `0.25.0` | `0.26.1` |
| [rustix](https://github.com/bytecodealliance/rustix ) | `1.0.7` | `1.0.8` |
| [winnow](https://github.com/winnow-rs/winnow ) | `0.7.11` | `0.7.12` |
Updates `clap` from 4.5.40 to 4.5.42
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.40...clap_complete-v4.5.42 )
Updates `rand` from 0.9.1 to 0.9.2
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/compare/rand_core-0.9.1...rand_core-0.9.2 )
Updates `rstest` from 0.25.0 to 0.26.1
- [Release notes](https://github.com/la10736/rstest/releases )
- [Changelog](https://github.com/la10736/rstest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/la10736/rstest/compare/v0.25.0...v0.26.1 )
Updates `clap_mangen` from 0.2.27 to 0.2.29
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_mangen-v0.2.27...clap_mangen-v0.2.29 )
Updates `toml` from 0.8.23 to 0.9.4
- [Commits](https://github.com/toml-rs/toml/compare/toml-v0.8.23...toml-v0.9.4 )
Updates `cc` from 1.2.27 to 1.2.30
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.27...cc-v1.2.30 )
Updates `clap_builder` from 4.5.40 to 4.5.42
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.5.40...v4.5.42 )
Updates `clap_derive` from 4.5.40 to 4.5.41
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.5.40...v4.5.41 )
Updates `litrs` from 0.4.1 to 0.4.2
- [Release notes](https://github.com/LukasKalbertodt/litrs/releases )
- [Changelog](https://github.com/LukasKalbertodt/litrs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/LukasKalbertodt/litrs/compare/v0.4.1...v0.4.2 )
Updates `redox_syscall` from 0.5.13 to 0.5.17
Updates `rstest_macros` from 0.25.0 to 0.26.1
- [Release notes](https://github.com/la10736/rstest/releases )
- [Changelog](https://github.com/la10736/rstest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/la10736/rstest/compare/v0.25.0...v0.26.1 )
Updates `serde_json` from 1.0.140 to 1.0.142
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.140...v1.0.142 )
Updates `winnow` from 0.7.11 to 0.7.12
- [Changelog](https://github.com/winnow-rs/winnow/blob/main/CHANGELOG.md )
- [Commits](https://github.com/winnow-rs/winnow/compare/v0.7.11...v0.7.12 )
Updates `clap` from 4.5.40 to 4.5.42
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.40...clap_complete-v4.5.42 )
Updates `rand` from 0.9.1 to 0.9.2
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/compare/rand_core-0.9.1...rand_core-0.9.2 )
Updates `rstest` from 0.25.0 to 0.26.1
- [Release notes](https://github.com/la10736/rstest/releases )
- [Changelog](https://github.com/la10736/rstest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/la10736/rstest/compare/v0.25.0...v0.26.1 )
Updates `clap_builder` from 4.5.40 to 4.5.42
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.5.40...v4.5.42 )
Updates `clap_derive` from 4.5.40 to 4.5.41
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.5.40...v4.5.41 )
Updates `rstest_macros` from 0.25.0 to 0.26.1
- [Release notes](https://github.com/la10736/rstest/releases )
- [Changelog](https://github.com/la10736/rstest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/la10736/rstest/compare/v0.25.0...v0.26.1 )
Updates `rustix` from 1.0.7 to 1.0.8
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Changelog](https://github.com/bytecodealliance/rustix/blob/main/CHANGES.md )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v1.0.7...v1.0.8 )
Updates `winnow` from 0.7.11 to 0.7.12
- [Changelog](https://github.com/winnow-rs/winnow/blob/main/CHANGELOG.md )
- [Commits](https://github.com/winnow-rs/winnow/compare/v0.7.11...v0.7.12 )
---
updated-dependencies:
- dependency-name: clap
dependency-version: 4.5.42
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: non-rust-vmm
- dependency-name: rand
dependency-version: 0.9.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: non-rust-vmm
- dependency-name: rstest
dependency-version: 0.26.1
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: non-rust-vmm
- dependency-name: clap_mangen
dependency-version: 0.2.29
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: non-rust-vmm
- dependency-name: toml
dependency-version: 0.9.4
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: non-rust-vmm
- dependency-name: cc
dependency-version: 1.2.30
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: non-rust-vmm
- dependency-name: clap_builder
dependency-version: 4.5.42
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: non-rust-vmm
- dependency-name: clap_derive
dependency-version: 4.5.41
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: non-rust-vmm
- dependency-name: litrs
dependency-version: 0.4.2
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: non-rust-vmm
- dependency-name: redox_syscall
dependency-version: 0.5.17
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: non-rust-vmm
- dependency-name: rstest_macros
dependency-version: 0.26.1
dependency-type: indirect
update-type: version-update:semver-minor
dependency-group: non-rust-vmm
- dependency-name: serde_json
dependency-version: 1.0.142
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: non-rust-vmm
- dependency-name: winnow
dependency-version: 0.7.12
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: non-rust-vmm
- dependency-name: clap
dependency-version: 4.5.42
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: non-rust-vmm
- dependency-name: rand
dependency-version: 0.9.2
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: non-rust-vmm
- dependency-name: rstest
dependency-version: 0.26.1
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: non-rust-vmm
- dependency-name: clap_builder
dependency-version: 4.5.42
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: non-rust-vmm
- dependency-name: clap_derive
dependency-version: 4.5.41
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: non-rust-vmm
- dependency-name: rstest_macros
dependency-version: 0.26.1
dependency-type: indirect
update-type: version-update:semver-minor
dependency-group: non-rust-vmm
- dependency-name: rustix
dependency-version: 1.0.8
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: non-rust-vmm
- dependency-name: winnow
dependency-version: 0.7.12
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: non-rust-vmm
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-08-01 13:19:56 +02:00
dependabot[bot]
9f8ba88c19
build(deps): bump rust-vmm-ci from aa2f8a9 to af54708
...
Bumps [rust-vmm-ci](https://github.com/rust-vmm/rust-vmm-ci ) from `aa2f8a9` to `af54708`.
- [Commits](aa2f8a90e4...af54708293 )
---
updated-dependencies:
- dependency-name: rust-vmm-ci
dependency-version: af547082938b44b69b6f1bb44c1af8b405d7650c
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-07-18 13:02:46 +02:00
Manos Pitsidianakis
8077199d82
Fix more clippy lints
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 13:02:46 +02:00
Manos Pitsidianakis
27c3e20c32
xtask: run clippy --fix
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
a548e4d529
template: run clippy --fix
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
3d4dc8e05f
scmi: run clippy --fix
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
46c8f93d87
vsock: run clippy --fix
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
27535e3ffd
spi: run clippy --fix
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
bf67559313
scsi: run clippy --fix
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
e94925b7dd
rng: run clippy --fix
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
909de1ae7c
input: run clippy --fix
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
c0051585e4
i2c: run clippy --fix
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
d88b12b9e0
gpio: run clippy --fix
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
cd0557ec71
console: run clippy --fix
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
e36857d2b4
can: run clippy --fix
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
f77506a809
vsock: run rustfmt
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
3e1ea87bdc
template: run rustfmt
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
eb6acb3669
spi: run rustfmt
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
81f1b8d59a
scsi: run rustfmt
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
4cd80cb968
scmi: run rustfmt
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
c7c395dc08
rng: run rustfmt
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
55a496b6ad
input: run rustfmt
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
5272ac8b6f
i2c: run rustfmt
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
cead472596
gpio: run rustfmt
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
717fa3b7f3
can: run rustfmt
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
ccfdb49348
Move rustfmt.toml to workspace dir
...
rustfmt looks in parent directories, so we can have a single
rustfmt.toml for all crates in the workspace.
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
fc95d98ce0
video: bump rustfmt.toml edition to 2021
...
vhost-device-video is 2021 edition; bump the rustfmt.toml setting to
match it.
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
f44344a1b9
console: bump rustfmt.toml edition to 2021
...
vhost-device-console is 2021 edition; bump the rustfmt.toml setting to match
it.
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
54a00943bd
gpu: bump rustfmt.toml edition to 2021
...
vhost-device-gpu is 2021 edition; bump the rustfmt.toml setting to match
it.
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
e1cf2aa0e7
sound: upgrade to 2021 edition
...
Bump to 2021 edition, and fix new warning lints while at it to keep CI
green.
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-18 10:05:07 +02:00
Manos Pitsidianakis
82f5657b5b
scsi: fix test compilation
...
Fix scsi test compilation by correcting the dev-dependency for
virtio-queue. This would happen if someone runs the tests only for this
crate, and not workspace-wide.
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-09 09:48:35 +03:00
Manos Pitsidianakis
79a8bc683d
vsock: fix minor typos
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-07 11:28:02 +03:00
Manos Pitsidianakis
7dae694e63
spi: fix minor typos
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-07 11:28:02 +03:00
Manos Pitsidianakis
b402177977
sound: fix minor typos
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-07 11:28:02 +03:00
Manos Pitsidianakis
90a9634d82
scsi: fix minor typos
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-07 11:28:02 +03:00
Manos Pitsidianakis
c7d499c788
scmi: fix minor typos
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-07 11:28:02 +03:00
Manos Pitsidianakis
330d2ffdad
rng: fix minor typos
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-07 11:28:02 +03:00
Manos Pitsidianakis
19bc862531
i2c: fix minor typos
...
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-07-07 11:28:02 +03:00