An open API service indexing awesome lists of open source software.

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.

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