https://github.com/claeusdev/pricc
a very simple C project starter for all my tiny projects.
https://github.com/claeusdev/pricc
bootstrap c cli rust rust-crate
Last synced: 6 months ago
JSON representation
a very simple C project starter for all my tiny projects.
- Host: GitHub
- URL: https://github.com/claeusdev/pricc
- Owner: claeusdev
- Created: 2024-09-10T22:45:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-22T23:49:06.000Z (10 months ago)
- Last Synced: 2025-08-11T14:53:29.401Z (6 months ago)
- Topics: bootstrap, c, cli, rust, rust-crate
- Language: Rust
- Homepage:
- Size: 20.5 KB
- Stars: 19
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pricc
A minimal C project generator written in Rust.
## Installation
Can clone this repo and run the command below, must have rust installed.
```bash
cargo install --path .
```
Even better, easier:
```bash
cargo install pricc
```
Alternatively:
```bash
wget https://github.com/claeusdev/pricc/releases/latest/download/pricc
chmod +x pricc
sudo mv pricc /usr/local/bin/
```
## Usage
Create a new C project:
```bash
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 of the project
-d, --description Description of the project
-s, --standard C standard [default: c11] [possible values: c89, c99, c11, c17]
-t, --tests Include test setup
-V, --proj-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