gfx-rs / wgpu-native

Native WebGPU implementation based on wgpu-core
Apache License 2.0
843 stars 96 forks source link

Recent dependency on sockets API? #368

Closed garettbass closed 6 months ago

garettbass commented 6 months ago

I tried to upgrade to a more recent version of wgpu_native and discovered a compile time dependency on WSAStartup and other Windows socket APIs. As someone using wgpu_native as a graphics API, I'm hesitant to link with sockets. It would be nice if there were at least a clear public statement of why wgpu_native depends on socket API calls. Thanks in advance for any clarification.

rajveermalviya commented 6 months ago

Dupe of #263 Upstream bugs:

These links come from Rust standard library, no idea how we can avoid them currently. wgpu-native doesn't use any functions from ws2_32, and possibly even userenv & bcrypt.

Anyway here are the libraries that you will need to link, currently.

garettbass commented 6 months ago

Thank you for linking to the list of required libraries. I just kept adding libs until the compile errors went away and ended up with the same result.