This document provides instructions to set up TFHE-rs in your project.
First, add TFHE-rs as a dependency in your Cargo.toml.
For x86_64 machine running a Unix-like OS:
For ARM machine running a Unix-like OS:
For x86_64 machines with the running Windows:
Performance: for optimal performance, it is highly recommended to run code that uses TFHE-rs in release mode with cargo's --release flag.
TFHE-rs currently supports the following platforms:
tfhe = { version = "0.9.1", features = [ "boolean", "shortint", "integer", "x86_64-unix" ] }Linux
x86_64-unix
aarch64-unix*
macOS
x86_64-unix
aarch64-unix*
Windows
x86_64 with RDSEED instruction
Unsupported
tfhe = { version = "0.9.1", features = [ "boolean", "shortint", "integer", "aarch64-unix" ] }tfhe = { version = "*", features = ["boolean", "shortint", "integer", "x86_64"] }