Installation
Last updated
Was this helpful?
Last updated
Was this helpful?
To use TFHE-rs
in your project, you first need to add it as a dependency in your Cargo.toml
:
TFHE-rs
exposes different cargo features
to customize the types and features used.
This crate exposes two kinds of data types. Each kind is enabled by activating its corresponding feature in the TOML line. Each kind may have multiple types:
Booleans
boolean
Booleans
ShortInts
shortint
Short unsigned integers
The different data types and keys exposed by the crate can be serialized / deserialized.
More information can be found for boolean and for shortint.
TFHE-rs is supported on Linux (x86, aarch64), macOS (x86, aarch64) and Windows (x86 with RDSEED
instruction).
Linux
x86_64-unix
aarch64-unix
*
macOS
x86_64-unix
aarch64-unix
*
Windows
x86_64
Unsupported
First, install the needed Rust toolchain:
Then, you can either:
Manually specify the toolchain to use in each of the cargo commands:
For example:
Or override the toolchain to use for the current project:
To check the toolchain that Cargo will use by default, you can use the following command: