Skip to content

Commit 9f4df00

Browse files
epilysvireshk
authored andcommitted
xtask: add README.md
Add documentation in a README.md file. Signed-off-by: Manos Pitsidianakis <[email protected]>
1 parent 4ef66aa commit 9f4df00

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

xtask/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# `xtask` - Run tasks with `cargo`
2+
3+
This binary crate provides support for running useful tasks with `cargo xtask <..>`.
4+
5+
## `mangen`
6+
7+
The `mangen` task which is enabled by the `mangen` cargo feature, builds ROFF manual pages for binary crates in this repository. It uses the [`clap_mangen`](https://crates.io/crates/clap_mangen) crate to generate ROFF from the crate's argument types which implement the `clap::CommandFactory` trait, through the `clap::Parser` derive macro.
8+
9+
```session
10+
$ cargo xtask mangen
11+
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.04s
12+
Running `target/debug/xtask mangen`
13+
Generated the following manual pages:
14+
/path/to/rust-vmm/vhost-device/target/dist/man/vhost-device-sound.1
15+
/path/to/rust-vmm/vhost-device/target/dist/man/vhost-device-scmi.1
16+
```
17+
18+
The following crates have manual pages built by default:
19+
20+
- [`vhost-device-sound`](../vhost-device-sound), enabled by the default feature `vhost-device-sound`.
21+
- It can further be fine-tuned with the features `vhost-device-sound-pipewire` and `vhost-device-sound-alsa`.
22+
- [`vhost-device-scmi`](../vhost-device-scmi), enabled by the default feature `vhost-device-scmi`.

0 commit comments

Comments
 (0)