| Crates.io | game-networking-sockets |
| lib.rs | game-networking-sockets |
| version | 0.1.2 |
| created_at | 2025-07-04 01:24:30.310606+00 |
| updated_at | 2025-07-07 01:07:01.467778+00 |
| description | Rust abstraction for Valve GameNetworkingSockets library. |
| homepage | |
| repository | https://github.com/hussein-aitlahcen/gns-rs |
| max_upload_size | |
| id | 1737343 |
| size | 89,813 |
Simple, high-level and (somehow) type-safe wrapper for Valve GameNetworkingSockets.
The library does not require your application to be running with Steam and this wrapper is intended to wrap the open-source version only.
Some features might be missing, if you are interested to introduce more abstraction, feel free to open a PR/Issue.
Libraries:
gns-sys is the C++ library from Valve compiled with bindings generated (the library is directly compiled by cargo so you don't need to have it already installed).gns is the high level, type-safe Rust wrapper.A few system libraries/tools are required in order to compile the C++ library as part of gns-sys.
System libraries required:
clangprotobufopensslabseil (if using a recent version of protobuf)Tools required to be in $PATH:
gitprotobuf-compilerBuilding on Windows uses vcpkg in manifest mode to gather and
build dependencies. As such, the only requirement on Windows is to have clang installed and git
available in $PATH.