Rust low-level bindings for the [Discord Game SDK]
This crate is not official, it is not supported by the Discord Game SDK Developers.
Following the -sys
package conventions, this crate does not define higher-level abstractions.
https://docs.rs/discord_game_sdk_sys
https://crates.io/crates/discord_game_sdk_sys
Add this to your Cargo.toml
:
toml
[dependencies]
discord_game_sdk_sys = "0.5.0-alpha.1"
Set the following environment variable:
sh
export DISCORD_GAME_SDK_PATH=/path/to/discord_game_sdk
Ensure that appropriately named dynamic libraries are available when launching the program:
On Linux and OS X, the dynamic library must be renamed to libdiscord_game_sdk.so
or
libdiscord_game_sdk.dylib
.
(TODO: ^ might be unnecessary, how to set the rpath in the output binary)
link
: (enabled by default)
Provides the linker with an appropriately named dynamic library.
This allows for cargo run
to run flawlessly on Linux.You MUST acquaint yourself with and agree to the [official terms of the Discord Game SDK].
The code of the Rust crates discord_game_sdk
and discord_game_sdk_sys
are licensed under
either of:
at your option.
I can be reached via Discord twiikuu#0047
, on the [Official Game SDK Server] (nicked as
ldesgoui (rust wrapper)
, as well as [twitter] and [email].
I reserve myself no obligation to support you, although I'm generally nice.