Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
About OpenFHE-rs
☀️ OpenFHE-rs is a joint project by FairMath & OpenFHE
🔔 Keep in mind that the library is WIP and may contain some unpolished interfaces. If you struggle with anything or have suggestions, feel free to ping us on our Discord server or open a new issue in the Github repository.
OpenFHE-rs is a Rust interface for the OpenFHE library. OpenFHE is known for its wide range of Fully Homomorphic Encryption (FHE) schemes, all implemented in C++. We're bringing this capability to Rust developers.
By offering a Rust wrapper for OpenFHE, we make it easier for Rust devs to use advanced FHE schemes in their projects. Whether you're building secure data processing apps or privacy-focused tools, OpenFHE-rs helps you do that with the power of OpenFHE's encryption technology.
Installation
You can use this library as a cargo crate from crates.io or build it from the source.
In both cases you need to have the core OpenFHE library installed on your system to support the low-level optimizations.
Install dependencies
- CMake >= 3.5.1
- Clang >= 12.0 or GCC >= 11.4
- Rust >= 1.78
- Git
Unix
On Debian systems, everything can be installed with the following command:
Installation process
Core OpenFHE library installation
Build and install OpenFHE library. Right now you need to use the Fair Math fork. It contains the required features, which will be included in the next planned release (v1.1.5):
- Clone the repository
- Configure CMake
- Build and install the C++ OpenFHE library
- Configure your dynamic linker
Configuring your project to use the crate
To get the cargo crate from crates.io, you need to add it as a dependency to you project:
You also need to add a small piece of code for core dependencies configuration in your build.rs file:
Template repository
Instead of doing it manually, you start your project by forking our template repository.
Custom crate installation from source
You can adjust the installation process by building the crate mannually. In that case you need to clone the Fair Math openfhe-rs repo to your local machine and build it:
- Clone the repository
- Build the library
- Run tests
- Run the examples