crane

Crates.iocrane
lib.rscrane
version0.3.0
created_at2017-04-26 05:27:27.708741+00
updated_at2026-01-05 18:22:10.604358+00
descriptionEasily add bricks (files or snippets) to your projects!
homepage
repositoryhttps://github.com/timothebot/crane
max_upload_size
id12062
size37,796
tiimo (timothebot)

documentation

README

crane 🏗️

Create, use and share easily reusable bootstrap packages called bricks.

⭐ Consider starring this repo – your support motivates me a lot! ⭐

Crates.io Version Crates.io Total Downloads GitHub Repo stars

Setup  ~  FAQ  ~  Documentation

Crane is a CLI tool that allows you to create bricks that you can later add to any project.

A brick is an instruction. It can be a file that gets added, a command that executes or lines getting replaced in a target file.

Examples

License brick

Instead of having to look up and copy your desired license from the web, you can create a brick out of it and then run crane add some-license.

Language specific bricks

You can create multiple bricks and combine them behind an alias.

This way, you can easily bootstrap new projects!

$ cargo new my_project && cd my_project
# ...
$ crane add rust
→ Executing 4 bricks
  • mit
  • serde
  • rustfmt
  • rustauthor
# ...

Getting Started

Install the CLI using cargo (more options coming soon!)

cargo install crane

and set up shell completions (not required):

ZSH
# ~/.zshrc
eval "$(crane completion zsh)"
Bash
# ~/.bashrc
eval "$(crane completion bash)"
Fish
# ~/.config/fish/config.fish
crane completion fish | source

Issues & Contributions

Feel free to open an issue or a PR. Help is always appreciated!


made with <3 by timothebot

Commit count: 42

cargo fmt