This project hosts the high-level wrappers of the mcl rust bindings.
This crate provides high-level, rust-friendly bindings for mcl. The purpose of these bindings are to expose a user-friendlier API to what the low-level libmcl-sys API offers. It provides wrappers for all mcl public functions and tries to provide safety at compilation type, however, because of the nature of the library counting on a C project there are cases that it's only possible to catch errors at runtime.
mcl-rs depends on the crate libmcl-sys which provides the low-level bindings between the C library of MCL and these higher bindings.
libmcl-sys
makes use of clang to generate the low-level rust binding from the MCL
header file, so if clang is not available it must be installed to the system.
Once all dependencies have been taken care of, we can build mcl-rs.
cargo build --release
mcl-rs comes with a set of unit tests that can be executed with:
cargo test <test_name>
Note: MCL
scheduler needs to be running when the above command is executed.
Removing the test-name would cause cargo to run all available tests, however, this could create issues since tests would run in parallel causing multiple threads to try to acquire access to the mcl_scheduler shmem object at the same time which might lead to failure.
Use cargo doc --open
to build and open the documentation of this crate.
MCL, libmcl-sys, and mcl-rs are research prototypes and still under development, thus not all intended features are yet implemented.
Please, contact Roberto Gioiosa at PNNL (roberto.gioiosa@pnnl.gov) if you have any MCL questions. For Rust related questions please contact Ryan Friese at PNNL (ryan.friese@pnnl.gov)
Roberto Gioiosa
Ryan Friese
Polykarpos Thomadakis
This project is licensed under the BSD License - see the LICENSE file for details.
IF you wish to cite MCL, please, use the following reference:
Other work that leverage or describe additional MCL features: