fix to rust instructions

This commit is contained in:
Daniel Lemire
2026-01-27 20:08:06 -05:00
parent cda98064b8
commit d8c49a8f25
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ CPMAddPackage(
option(SIMDJSON_USE_RUST "Build the static_reflect benchmark" OFF)
if(SIMDJSON_USER_RUST)
if(SIMDJSON_USE_RUST)
if(NOT WIN32)
# We want the check whether Rust is available before trying to build a crate.
CPMAddPackage(
@@ -39,9 +39,9 @@ if(SIMDJSON_USER_RUST)
message(STATUS "curl https://sh.rustup.rs -sSf | sh")
endif()
endif()
else(SIMDJSON_USER_RUST)
else(SIMDJSON_USE_RUST)
message(STATUS "We will not benchmark serde-benchmark." )
endif(SIMDJSON_USER_RUST)
endif(SIMDJSON_USE_RUST)
# Add the benchmark executable targets
add_subdirectory(twitter_benchmark)
+1 -1
View File
@@ -54,7 +54,7 @@ Importantly, we build the experimental LLVM compiler based on the current state
```bash
CXX=clang++ cmake -B buildreflect -D SIMDJSON_STATIC_REFLECTION=ON -DSIMDJSON_DEVELOPER_MODE=ON
```
This only needs to be done once.
This only needs to be done once. To build the Rust code, add `-D SIMDJSON_USE_RUST=ON`.
5. Build the code...
```bash