krystv commited on
Commit
8b8266c
·
verified ·
1 Parent(s): 7813278

Upload .cargo/config.toml

Browse files
Files changed (1) hide show
  1. .cargo/config.toml +27 -0
.cargo/config.toml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Cargo configuration for cross-platform builds
2
+ #
3
+ # This ensures the BEX engine builds correctly across different targets.
4
+
5
+ [target.x86_64-unknown-linux-gnu]
6
+ # Use system linker — compatible with most Linux distros
7
+ rustflags = ["-C", "link-arg=-Wl,--as-needed"]
8
+
9
+ [target.x86_64-unknown-linux-musl]
10
+ # Fully static build — no GLIBC dependency
11
+ rustflags = ["-C", "target-feature=+crt-static"]
12
+
13
+ [target.wasm32-wasip1]
14
+ # WASM plugin builds
15
+ runner = "wasmtime --dir ."
16
+
17
+ [build]
18
+ # Default target for `cargo build` (override with --target)
19
+ # Uncomment for musl static builds:
20
+ # target = "x86_64-unknown-linux-musl"
21
+
22
+ [net]
23
+ # Use git CLI for better performance
24
+ git-fetch-with-cli = true
25
+
26
+ [registries.crates-io]
27
+ protocol = "sparse"