- Work around Dioxus 0.7.9 leaking getrandom_backend=wasm_js cfg into the musl server build by disabling DX's auto flag and setting it only for wasm32 in .cargo/config.toml. - Split build-linux into @client and @server steps so the server build can explicitly enable the server feature and target x86_64-unknown-linux-musl. - Configure the musl linker to use x86_64-linux-musl-gcc.
10 lines
406 B
TOML
10 lines
406 B
TOML
# Workaround for Dioxus 0.7.9 leaking the wasm_js getrandom backend cfg
|
|
# into the server build. We disable DX's automatic flag in the Makefile
|
|
# and set it only for the wasm32 target here.
|
|
[target.wasm32-unknown-unknown]
|
|
rustflags = ["--cfg", "getrandom_backend=\"wasm_js\""]
|
|
|
|
# Uncomment and adjust after installing a musl C toolchain:
|
|
[target.x86_64-unknown-linux-musl]
|
|
linker = "x86_64-linux-musl-gcc"
|