Installation
To use
TFHE-rs
in your project, you first need to add it as a dependency in your Cargo.toml
:tfhe = { version = "0.3.1", features = [ "boolean", "shortint", "integer", "x86_64-unix" ] }
When running code that uses
TFHE-rs
, it is highly recommended to run in release mode with cargo's --release
flag to have the best possible performanceTFHE-rs is supported on Linux (x86, aarch64), macOS (x86, aarch64) and Windows (x86 with
RDSEED
instruction).OS | x86 | aarch64 |
---|---|---|
Linux | x86_64-unix | aarch64-unix * |
macOS | x86_64-unix | aarch64-unix * |
Windows | x86_64 | Unsupported |
Users who have ARM devices can use TFHE-rs by compiling using the
nightly
toolchain (see Configuration for more details).Last modified 1mo ago