diff --git a/Cargo.toml b/Cargo.toml index 1cb5d4a..eac58f7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,10 +7,13 @@ license = "MIT" [dependencies] rayon = "1.7.0" -tfhe = { version = "0.5.1", features = ["boolean", "shortint", "integer", "x86_64-unix"] } +tfhe = { version = "0.5.1", features = ["boolean", "shortint", "integer"] } linfa-datasets = { version = "0.7", features = ["iris", "winequality"] } csv = "1.3" +[features] +x86 = ["tfhe/x86_64-unix"] +aarch64 = ["tfhe/aarch64-unix"] [[bin]] name = "plain_lr" diff --git a/README.md b/README.md index 0e4dc35..396bb0c 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,21 @@ -# ... +# Building + +For `x86_64`-based machines running Unix-like OSes: +```bash +❯❯ cargo b --release --features x86 +``` + +For Apple Silicon or `aarch64`-based machines (e.g., Apple M2) running Unix-like OSes: +```bash +❯❯ cargo b --release --features aarch64 +``` + +# Running + +... ## Disclaimer This is software for a research prototype and not production-ready code.