cargo-menuconfig

Crates.iocargo-menuconfig
lib.rscargo-menuconfig
version0.1.1
created_at2025-08-16 19:44:31.52617+00
updated_at2025-08-18 08:37:20.66409+00
descriptionCargo sub-command for configuring cargo projects using Kconfig and menuconfig.
homepagehttps://git.onea.ro/cococeapa/cocos/tools/cargo-menuconfig
repositoryhttps://git.onea.ro/cococeapa/cocos/tools/cargo-menuconfig
max_upload_size
id1798800
size35,846
Alexandru N. Onea (alexonea)

documentation

https://docs.rs/cargo-menuconfig

README

cargo-menuconfig

Scans the current package and its dependencies for Kconfig files and runs menuconfig on them.

Usage

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.

Contributing

Please send feature requests and bug reports to alexandru at onea dot ro.

Commit count: 0

cargo fmt