Pacro aims to be a language agnostic preprocess tool/macro system.
One part is feature selection Just like Kconfig in linux kernel code
The macro works in the following steps:
- Read through files, and check if any file contains
// @
- Convert the files into jinja template
- Import an environment for jinja to work
- Render jinja template
Ship is a Rust cargo preprocessor. It can
- hook up libraries as they are in crates.io
- execute all prebuild.sh in sub directories
To use, rename Cargo.toml for workspaces to workspace.toml. You can write the following as exclude.toml
crate1 = true