From d8c49a8f2514dbecfd3bbb5e9b601e4b41f5ce0d Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Tue, 27 Jan 2026 20:08:06 -0500 Subject: [PATCH] fix to rust instructions --- benchmark/static_reflect/CMakeLists.txt | 6 +++--- p2996/README.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/benchmark/static_reflect/CMakeLists.txt b/benchmark/static_reflect/CMakeLists.txt index 28c3be8ea..4129a0932 100644 --- a/benchmark/static_reflect/CMakeLists.txt +++ b/benchmark/static_reflect/CMakeLists.txt @@ -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) diff --git a/p2996/README.md b/p2996/README.md index 17e6a8125..76847a672 100644 --- a/p2996/README.md +++ b/p2996/README.md @@ -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