f2610dcbb6c0e06547797f62401e751afe3f0fce
libcsp-rust
This project aims to provide libraries and tools to use
libcsp in your Rust project.
It provides 2 crates for this:
- [
libcsp-cargo-build] provides an API to build thelibcspusingcargowith thecccrate. - [
libcsp-rust] provides the Rust bindings tolibcspand a safe and ergonomic Rust interface.
In addition, it provides a workspace to allow updating the libcsp and the corresponding bindings
more easily inside the lib directory. Some of the examples libcsp provides were ported to Rust
and are showcases in the examples directory.
Getting started
We assume that cargo should also take care of building the library.
- Add the
libcsp-cargo-buildas a build dependency inside yourCargo.toml. - Add the
libcsp-rustas a regular dependency inside yourCargo.toml. - Create a custom
build.rsscript which takes care of buildinglibcspusing the API provided bylibcsp-cargo-build. You have to provide the source code forlibcspinside some directory and pass that director to a builder API. - You can now write regular Rust code and use the API provided by
libcsp-rustto uselibcspin a safe and Rusty way.
It is recommended to have a look at the example build script which should give you a general
idea of how a build script might look like to integrate libcsp.
Description
Releases
7
libcsp-cargo-build-v0.2.0
Latest
Languages
Rust
78.4%
Shell
21.4%
C
0.2%