Skip to content

Commit

Permalink
Add notes about available backends
Browse files Browse the repository at this point in the history
  • Loading branch information
cargodog committed Sep 17, 2020
1 parent e91c67a commit 9d2b50b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ criterion = "0.3"
default = ["std", "serde", "curve25519-dalek/u32_backend"]
std = []
simd_backend = ["curve25519-dalek/simd_backend", "blake2/simd_asm"]
u64_backend = ["curve25519-dalek/u64_backend"]
u32_backend = ["curve25519-dalek/u32_backend"]

[[bench]]
name = "prove_and_verify"
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,16 @@ arcturus = "x.y.z"
```

By default, `std` and `serde` features are enabled. To build without `std` or without `serde`
implementations, use the `--no-default-features` option when building. The following example
implementations, use the `--no-default-features` option when building. Note, if default features
are disabled, a backend must be specified. The available backends are:
* `simd_backend`
* `u64_backend`
* `u32_backend`

The following example
builds without `std`, but still implements `serde`:
```sh
cargo build --no-default-features --features "serde"
cargo build --no-default-features --features "serde simd_backend"
```

Please keep the following points in mind when building a project around this library:
Expand Down

0 comments on commit 9d2b50b

Please sign in to comment.