-
Notifications
You must be signed in to change notification settings - Fork 85
Project Templates
Guillaume Binet edited this page Apr 30, 2026
·
3 revisions
Copper ships templates to bootstrap new projects quickly. Use them to get a runnable task graph, logging setup, and basic app layout in minutes.
- Rust 1.95 or newer (rustup with the latest stable toolchain is recommended)
-
cargo-cunew:cargo install cargo-cunew - Optional for template development:
cargo-generate:cargo install cargo-generate - Optional:
justfor helper commands (see Task Automation with just)
| Template | Use it for |
|---|---|
project / cu_project
|
Single-crate project for quick experiments. |
workspace / cu_full
|
Multi-crate workspace with apps/ and components/. |
Generate a single-crate project:
cargo cunew my_project
cd my_project
cargo runGenerate a workspace:
cargo cunew --template workspace my_workspace
cd my_workspace
cargo run -p cu_example_appChoose a dependency source:
- default
--source crates.io: resolves the latest stable Copper crate versions from crates.io -
--source git: uses the Copper git repo, plus optional--git-branch,--git-tag, or--git-rev -
--source local --copper-root /path/to/copper-rs: points generated manifests at a local checkout
The template source of truth now lives under:
support/cargo_cunew/templates/
You can still use it directly with cargo-generate from a repo checkout:
cargo +stable generate \
--path support/cargo_cunew/templates/cu_project \
--name my_project \
--destination . \
--define copper_source=local \
--define copper_root_path=/absolute/path/to/copper-rsOr for the workspace template:
cargo +stable generate \
--path support/cargo_cunew/templates/cu_full \
--name my_workspace \
--destination . \
--define copper_source=local \
--define copper_root_path=/absolute/path/to/copper-rscd support/cargo_cunew/templates && just gen-projectcd support/cargo_cunew/templates && just gen-workspace
Start
- Home
- Project Templates
- Copper Application Overview
- Build and Deploy a Copper Application
- Copper Configuration file Reference
- Task Automation with just
Concepts
- Copper Runtime Overview
- Copper Configuration and Mission Visualization
- Copper Tasks lifecycle overview
- Copper Bridge concept
- Resources
- Modular Configuration
Embedded
Reference
External