Merge commit 'd803bfe2b1fe7f5e219e50ac20d6801a0a58ac75' as 'vendor/ruvector'

This commit is contained in:
ruv
2026-02-28 14:39:40 -05:00
7854 changed files with 3522914 additions and 0 deletions

18
vendor/ruvector/crates/rvlite/build.rs vendored Normal file
View File

@@ -0,0 +1,18 @@
use std::env;
fn main() {
let target = env::var("TARGET").unwrap_or_default();
if target.starts_with("wasm32") {
// Configure getrandom for WASM
// This tells getrandom 0.3 to use the wasm_js backend
println!("cargo:rustc-env=GETRANDOM_BACKEND=wasm_js");
println!("cargo:rustc-cfg=getrandom_backend=\"wasm_js\"");
// Enable check-cfg to avoid warnings
println!("cargo:rustc-check-cfg=cfg(getrandom_backend, values(\"wasm_js\"))");
// Also set the cfg for getrandom 0.2 compatibility
println!("cargo:rustc-cfg=getrandom_v0_2");
}
}