zlib-sys
to flate 2 with the zlib backend, and for wasm flate 2 with the rust-native backend
https://doc.rust-lang.org/reference/conditional-compilation.html
^ this leads me to believe my dependencies should look smth like this:
[target.'cfg(target_family = "wasm")'.dependencies]
flate2 = { version = "1.0.17", features = ["rust_backend"] }
[target.'cfg(not(target_family = "wasm"))'.dependencies]
flate2 = { version = "1.0.17", features = ["zlib"] }
However, this apparently isn't it yet. However my observations while fiddling around a bit seem so damn contradictive that I wanted to see if you might have an idea:
with the configuration above, both the wasm and non-wasm build use the zlib backend
if I remove the first two lines, the wasm build fails due to flate2 being an undeclared crate or module and the non-wasm build succeeds
If I change the zlib to rust_backend in the bottom two lines both wasm and non-wasm builds use the rust_backend [2022-03-23 14:15:52][sdl]: SDL version 2.0.20 (compiled = 2.0.20)
[2022-03-23 14:15:52][gfx]: Created Vulkan 1.0 context.
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
VK_ERROR_SURFACE_LOST_KHR
gfx_render_thread_count 16
to use as many cores as possible
but that doesnt mean it will max all cores outadd_sqlserver r ddnet record ddnet "thebestpassword" "localhost" 3306 0
add_sqlserver w ddnet record ddnet "thebestpassword" "localhost" 3306 0
sed 's/\b\(\(m_\)\?\(a\|p\)\?\(a\|p\)\w\+\b\)\s*==\s*0/\1 == nullptr/g' -i **/*.cpp **/*.h
sed 's/\b\(\(m_\)\?\(a\|p\)\?\(a\|\p\)\w*\b\)(0\(x0\)\?)/\1(nullptr)/g' -i **/*.cpp **/*.h
In place modification of files:
- sd: sd before after file.txt