| Crates.io | pont |
| lib.rs | pont |
| version | 0.3.0 |
| created_at | 2024-04-25 19:11:29.937602+00 |
| updated_at | 2024-09-29 15:37:45.18466+00 |
| description | A project template tool that works with Git repositories and local directories. |
| homepage | https://soup.dev/pont |
| repository | https://github.com/soupdevsolutions/pont |
| max_upload_size | |
| id | 1220666 |
| size | 83,269 |
Pont is a simple project template generator and loader. You can generate templates and load them from Git repositories or local directories.
Currently, pont can only be installed using cargo.
cargo install pont
git should be installed and available in your PATH.pont new --name <template-name> # to create a new directory
or
pont init # to use the current directory
pont build --name <template-name> --from <source>
Pont creates a pont.yaml file when you initialize a new project, which it then consumes during the build process.
A pont.yaml file contains 4 fields:
pont version used for the template (the local pont version should match this).It is a good idea to always include the .git directory in the ignore list, as attempting to rewrite any of the files inside it might corrupt your Git repository.
pont.yaml example:
version: 0.3.0
name: pont
commands:
- echo "Initializing Pont..."
ignore:
- .git/*
- *.txt
pont new --name rust_server_template
cd ./rust_server_template
cargo init
cargo add axum tokio serde serde_json
git remote add origin <your-remote-repo>
git add .
git commit -m "Base project"
git push
cd ../
pont build --name cool_rust_app --from <your-remote-repo>