Marc Hartmayer
f8fb9ce32a
rust: Run rustfmt with some experimental options
...
+ Sort and group the imports
+ Normalize and format comments (100 characters width)
Command used:
$ cargo +nightly fmt --
Acked-by: Steffen Eiden <seiden@linux.ibm.com >
Signed-off-by: Marc Hartmayer <marc@linux.ibm.com >
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com >
2026-06-22 16:43:02 +02:00
Marc Hartmayer
e6c17461a3
rust: Provide and use a workspace.lints table
...
Provide and use a `workspace.lints` table. This makes it easier to
maintain and to enforce one coding style. Let's explicitly disable the
`missing_docs` linting rule for tests.
MSRV for the lints table is 1.74 [1]
[1] https://doc.rust-lang.org/cargo/reference/workspaces.html#the-lints-table
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com >
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com >
Acked-by: Finn Callies <fcallies@linux.ibm.com >
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com >
2024-11-22 17:20:00 +01:00
Marc Hartmayer
f83af8e076
rust: Generate shell (e.g. bash) completion scripts via build.rs for all tools
...
It might be handy to have shell completion support for the Rust PV
tools.
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com >
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com >
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com >
2024-05-27 16:54:25 +02:00