Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.36 KB

README.md

File metadata and controls

49 lines (33 loc) · 1.36 KB

RustCProject

A basic template to create a library in Rust that can be directly used in C/C++.

Table of Contents

Introduction

RustCProject is a template repository for creating libraries in Rust that can be used in C and C++ projects. It provides a basic setup that includes Rust, Shell, C++, and CMake configurations.

Getting Started

Prerequisites

Building the Project

To build the project, you can use the compil.sh script provided in the repository. This script handles building the Rust library, copying the necessary files, and compiling the C++ project.

  1. Clone the repository:

    git clone https://github.com/MoutOgm/RustCProject.git
    cd RustCProject
  2. Run the build script:

    ./compil.sh
  3. To execute the compiled program, use:

    ./compil.sh run

Using the build-cxx Repo

To duplicate a library from the build-cxx repository with minimal history, you can clone it using:

git clone --depth 1 https://github.com/username/build-cxx.git

This command will clone only the latest snapshot of the build-cxx repository.