diff options
| author | Jack O'Connor <[email protected]> | 2020-03-31 12:36:41 -0400 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2020-04-01 19:13:15 -0400 |
| commit | b8cdcb1f84cf794c7072bbfaacac71f6a5857e3c (patch) | |
| tree | 8c79aa18cf9ae1ee4908b88a546b4283646ca890 /README.md | |
| parent | eec458d03ee7828225dda4f08138563d4ff8bb6d (diff) | |
automatically fall back to the pure Rust build
There are two scenarios where compiling AVX-512 C or assembly code might
not work:
1. There might not be a C compiler installed at all. Most commonly this
is either in cross-compiling situations, or with the Windows GNU
target.
2. The installed C compiler might not support e.g. -mavx512f, because
it's too old.
In both of these cases, print a relevant warning, and then automatically
fall back to using the pure Rust intrinsics build.
Note that this only affects x86 targets. Other targets always use pure
Rust, unless the "neon" feature is enabled.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -103,9 +103,7 @@ time b3sum /tmp/bigfile ### The `blake3` crate To use BLAKE3 from Rust code, add a dependency on the `blake3` crate to -your `Cargo.toml`. Note that by default, unless the `pure` feature is -enabled, building `blake3` requires a C compiler. Here's an example of -hashing some input bytes: +your `Cargo.toml`. Here's an example of hashing some input bytes: ```rust // Hash an input all at once. |
