roneo

Rust
Clone
https://code.cleyrop.tech/roneo.git

HTTPS, no account needed: the default branch and the tags.

Fast, standalone Rust port of Copier for scaffolding and updating Jinja2 project templates.

README.md

Ronéo

Ronéo (roneo)

A fast, standalone Rust port of Copier — scaffold and update projects from Jinja2 templates with no Python runtime.

The name Ronéo comes from the classic stencil duplicator ("passer à la ronéo"): reproducing project templates cleanly, quickly, and without friction.

Installation

mise plugins install forge https://code.cleyrop.tech/mise.git
mise use -g forge:roneo@latest

Or declare it in mise.toml:

[plugins]
forge = "https://code.cleyrop.tech/mise.git"

[tools]
"forge:roneo" = "latest"

Upgrade later with:

mise upgrade forge:roneo

Via install script (macOS & Linux, SHA-256 verified)

curl -fsSL https://code.cleyrop.tech/roneo/raw/main/install.sh | sh

From source (cargo, Rust 1.100+)

cargo install --path crates/roneo-cli

Benchmarks

Measured on Apple M3 Pro (macOS, hyperfine, release build of roneo 0.1.0 vs. copier 9.15.1 on examples/starter-template):

OperationroneocopierSpeedupPeak RAM (roneo / copier)
--version (CLI startup)3.0 ms365.0 ms121x2.5 MiB / 55.4 MiB
copy --defaults4.3 ms412.7 ms96x5.0 MiB / 55.9 MiB
copy --defaults --pretend3.5 ms370.4 ms107x5.1 MiB / 55.9 MiB
inspect2.5 ms——3.4 MiB / —

Reproduce locally:

cargo build --release
hyperfine --warmup 2 \
  "./target/release/roneo copy ./examples/starter-template /tmp/out-r --defaults --overwrite" \
  "copier copy ./examples/starter-template /tmp/out-c --defaults --overwrite"

Ronéo vs. Copier

AspectRonéo (roneo)Copier (copier)
DistributionSingle native binary (~5.8 MB)Python package (pipx / uvx / virtualenv)
Runtime dependencyNone (static musl on Linux, notarised arm64 on macOS)Python 3.9+ and dependencies
Template formatcopier.yml / copier.yaml / roneo.ymlcopier.yml / copier.yaml
Answers fileInteroperable .copier-answers.yml (auto-written if omitted).copier-answers.yml
Template engineminijinja + pycompat (Python methods)Jinja2 (Python)
ExtensionsSandboxed WebAssembly (wasmi, no disk/network)Arbitrary Python Jinja extensions (--trust)
Extra CLI toolsinspect (--json), diff, plugin, completions—
Library reuseroneo-core crate (Prompter / Reporter traits)Python API

Quick Start

# Inspect a template's questions, settings, and tasks
roneo inspect ./examples/starter-template

# Dry-run without writing any files
roneo copy ./examples/starter-template /tmp/my-project --defaults --pretend

# Scaffold interactively
roneo copy ./examples/starter-template /tmp/my-project

# Non-interactive with variable overrides
roneo copy ./examples/starter-template /tmp/my-project \
  --defaults \
  -d project_name=super-api \
  -d license=Apache-2.0

CLI Reference

Commands

CommandPurpose
roneo copy <template> [dest]Scaffold a project from a local path, Git URL, gh:owner/repo, or gl:owner/repo.
roneo update [dest]Update a Git-tracked project via 3-way merge (--conflict inline|rej), keeping local edits.
roneo diff [dest]Preview the colored 3-way diff of roneo update without modifying files.
roneo check-update [dest]Check for newer template versions (--output-format plain|json, -q exits 2 if outdated).
roneo recopy [dest]Re-apply a template using saved .copier-answers.yml answers (no 3-way diff).
roneo inspect <template>Print metadata, settings, --trust tasks, and questions (--json supported).
roneo plugin <subcmd>Manage local .wasm plugins (install, list, inspect, remove).
roneo completions <shell>Generate shell completions (bash, zsh, fish).

Key Flags

FlagScopeEffect
-r, --vcs-ref REFcopy, update, diffTarget branch, tag, commit, or :current:
-d, --data KEY=VAL / --data-file PATHcopy, update, recopySupply or override answers (-d repeatable)
-l, --defaults / --ask Qcopy, update, recopySkip prompts, or force a prompt for specific questions
-A, --skip-answeredupdate, recopyReuse existing answers without prompting
-n, --pretendcopy, update, recopyDry-run (no writes, no tasks)
-w, --overwrite / -f, --forcecopyOverwrite files (-f = --defaults --overwrite)
-o, --conflict inline|rej / -c Nupdate, diffConflict markers or .rej files; diff context lines
-s, --skip PATTERN / -g, --prereleasescopy, update, check-updateSkip matching paths; allow PEP 440 pre-releases
--trust (--UNSAFE) / -T, --skip-taskscopy, update, recopyAllow or skip shell _tasks and _migrations
--plugin PATH_OR_NAMEcopy, update, recopyLoad a .wasm plugin by path or installed alias

Copier Compatibility

Targets Copier 9.19.1 (_min_copier_version enforced):

AreaSupported Features
Configurationcopier.yml / copier.yaml, multi-document YAML, list merging, !include + globs, _external_data, settings.yml
Questionsstr, int, float, bool, yaml, json; Jinja type, default, choices (list/map), multiselect, when, ask, validator, multiline, secret
Templates & pathsJinja2 (minijinja + pycompat, _envops), path confinement, dynamic paths, conditional dirs, {% yield %} loops, _subdirectory, _templates_suffix, _preserve_symlinks
Built-in filtersto_nice_yaml, from_yaml, from_json, to_nice_json, slugify, to_snake/to_camel/to_pascal/to_kebab, b64encode/b64decode, to_bool, pathjoin, now(), UNSET
Lifecycle & updates3-way Git merge (--3way / --reject + squash-safe git merge-file fallback), .gitignore & _skip_if_exists guards, PEP 440 downgrade guard, _answers_file rename cleanup
VCS & cachingLocal dirs, Git URLs, gh: / gl:, monorepo subdirectories, .bundle, submodules, local mirror cache (~/.cache/roneo/repos)
Tasks & migrations_tasks and _migrations (before / after, _stage, extra_env, COPIER_OPERATION) behind --trust
ExtensionsSandboxed WebAssembly plugins via roneo-plugin-sdk, roneo plugin, and _roneo_plugins

WebAssembly Plugins (roneo-plugin-sdk)

roneo stays 100% generic: no domain-specific extension is compiled into the binary. Write extensions in an independent Rust crate targeting wasm32-unknown-unknown, executed in a wasmi sandbox without disk or network access:

# Build a WASM plugin depending on roneo-plugin-sdk
cd my-plugin && cargo build --release --target wasm32-unknown-unknown

# Install it under ~/.config/roneo/plugins/my-plugin.wasm
roneo plugin install target/wasm32-unknown-unknown/release/my_plugin.wasm

# Run with the plugin alias
roneo copy --trust --defaults --plugin my-plugin <template> <dest>

Templates can also bundle a .wasm file and declare _roneo_plugins: [template/extensions/my-plugin.wasm] in copier.yml / roneo.yml for automatic loading.

User Settings (settings.yml)

Read automatically in priority order from $RONEO_SETTINGS_PATH, $COPIER_SETTINGS_PATH, ~/.config/roneo/settings.yml, or ~/.config/copier/settings.yml:

defaults:
  author_name: Alice
trust:
  - /srv/trusted-templates/
  - https://code.cleyrop.tech/

Development

cargo test --workspace
cargo clippy --workspace --all-targets -- -D warnings
cargo build --release

License

MIT — see LICENSE.