[M1] add cargoxx new

This commit is contained in:
2026-05-08 11:22:34 +00:00
parent 3dc082147a
commit 361b936648
9 changed files with 12555 additions and 11 deletions

View File

@@ -36,3 +36,10 @@ All notable changes to cargoxx will be documented in this file.
sorts results for deterministic output, and returns `LayoutNoTarget`
when neither a library nor any binary is present.
`tests/layout_discovery.cpp` covers 12 cases.
- `cargoxx new <name>` and `cargoxx new --lib <name>` scaffold a project
directory with `Cargoxx.toml`, `src/main.cpp` or `src/lib.cppm`, and a
minimal `.gitignore`. Hyphens in the package name are mapped to
underscores when generating the module/namespace identifier.
Codegen of `flake.nix` / `CMakeLists.txt` is intentionally deferred to M3.
CLI11 v2.6.2 vendored at `third_party/CLI11.hpp`; entry point is now
`cargoxx::cli::run(argc, argv)`. `tests/cmd_new.cpp` covers 9 cases.