| Crates.io | cppargo |
| lib.rs | cppargo |
| version | 0.2.0 |
| created_at | 2024-12-27 06:05:41.986191+00 |
| updated_at | 2024-12-27 06:05:41.986191+00 |
| description | Minimal Rust `cargo` clone for creation, compilation and excecution of basic C++ projects. |
| homepage | https://github.com/BassedWarrior/cppargo |
| repository | https://github.com/BassedWarrior/cppargo |
| max_upload_size | |
| id | 1496223 |
| size | 51,688 |
cppargo is a tool to mimic the basic functionalities of the cargo utility
for Rust projects but for C++ projects.
cargoInstallation can currently only be done using cargo, the Rust project management tool this project aims to emulate.
Using gh (GitHub's CLI Tool).
gh repo clone BassedWarrior/cppargo
$PATH using cargo from inside the cloned repo.cargo install --path .
In order to create a new project, use the command
cppargo new {project_name}
This will create a new directory project_name in the current working
directory.
Inside of which it will also create a src with a mock project_name.cpp
hello world program. This is the directory where all of the source files for
the project.
It will also create a target directory where the excecutable files are to
be stored and run from.
In order to build a project, use the command
cppargo build
Make sure to run this command within the project directory. As it will look
for the src directory to compile all of the .cpp files insde it using g++
to create the project_name file within the target directory.
In order to run a project, use the command
cppargo run
Within the project directory. This will first perform a cppargo build and
then run the target/project_name file generated after a successful
compilation.