Crates.io | cargo-menuconfig |
lib.rs | cargo-menuconfig |
version | 0.1.1 |
created_at | 2025-08-16 19:44:31.52617+00 |
updated_at | 2025-08-18 08:37:20.66409+00 |
description | Cargo sub-command for configuring cargo projects using Kconfig and menuconfig. |
homepage | https://git.onea.ro/cococeapa/cocos/tools/cargo-menuconfig |
repository | https://git.onea.ro/cococeapa/cocos/tools/cargo-menuconfig |
max_upload_size | |
id | 1798800 |
size | 35,846 |
Scans the current package and its dependencies for Kconfig files and runs menuconfig on them.
From within the tree of a Cargo workspace or package, run:
$ cargo menuconfig
If the workspace has multiple packages, you have to specify the package to be built.
$ cargo menuconfig -p <package>
The utility will scan the entire dependency tree for packages providing Kconfig-based configuration options. It looks for packages declaring the following metadata key in their Cargo.toml:
[package.metadata.kconfig]
root = <path-to-Kconfig>
For each package declaring the kconfig metadata key, it reads the Kconfig file
specified by the root field and flattens it until all the source directives
have been replaced. Next, the set of Kconfig files is aggregated under a master
Kconfig which defines a menu entry for each package. Finally, menuconfig
is
executed on the master Kconfig file.
The resulting .config file is saved in the root directory of the built package.
Please send feature requests and bug reports to alexandru at onea dot ro.