Skip to content
/ RustCProject Public template

A basic template to create library in Rust directly used in C / CPP

Notifications You must be signed in to change notification settings

MoutOgm/RustCProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A basic template to create library in Rust directly used in C / CPP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published