cargo-inherit-0.1.4 is not a library.
cargo-inherit
Generate new Rust projects from templates — with variables, hooks, and zero boilerplate.
cargo-inherit is a CLI tool that scaffolds new projects from Git-hosted templates.
Define variables in Inherit.toml, use @VAR@ placeholders in your files, and let Inherit handle the rest.
Installation
Quick Start
Generate a project from a GitHub template:
# Basic usage
# With custom output directory
# Using an alias (configured in ~/.config/inherit/config.toml)
Template example (Inherit.toml):
[]
= "rust-lib"
= "Minimal Rust library template"
[]
= "Name of the crate"
= "Your name and email"
= "License identifier (MIT, Apache-2.0, etc.)"
[]
= [
"cargo fmt",
"cargo clippy --fix --allow-dirty"
]
Use variables in your template files:
# Cargo.toml template
[]
= "@PROJECT_NAME@"
= "0.1.0"
= ["@AUTHOR@"]
= "@LICENSE@"
Configuration
Inherit uses ~/.config/inherit/config.toml for:
- Default variable values (skips prompts for known vars)
- Template aliases (
rust-lib→vi-is-ramen/rust-template) - Cache directory, GitHub token, post-generation commands
Run cargo inherit once to generate a commented config template.
Documentation
Full CLI reference, template authoring guide, and configuration options are available in the book.
License
MIT OR Apache-2.0