1 unstable release
new 0.1.0 | Mar 22, 2025 |
---|
#41 in #c
12KB
267 lines
pricc
A minimal C project generator written in Rust.
Installation
cargo install --path .
Usage
Create a new C project:
pricc my_project # Basic project
pricc my_project -a "John Doe" -d "My App" # With metadata
pricc my_project --standard c17 --tests # C17 with tests
Available options:
Options:
-a, --author <AUTHOR> Author of the project
-d, --description <DESCRIPTION> Description of the project
-s, --standard <STANDARD> C standard [default: c11] [possible values: c89, c99, c11, c17]
-t, --tests Include test setup
-V, --proj-version <VERSION> Project version [default: 0.1.0]
-h, --help Print help
-v, --version Print version
Generated Project Structure
project_name/
├── src/ # Source files
│ └── main.c
├── include/ # Header files
│ └── project.h
├── tests/ # Test files (if enabled)
│ └── test_main.c
├── build/ # Build artifacts
├── bin/ # Compiled binaries
├── Makefile
└── README.md
License
MIT
Dependencies
~1–1.6MB
~30K SLoC