discord_game_sdk 0.3.1

Safe wrapper for the Discord Game SDK
Documentation

discord_game_sdk

Safe wrapper for the Discord Game SDK

This crate provides Rust support to the following Discord features:

  • Activities (Rich Presence)
  • Users, Avatars and Relationships
  • Lobbies, Matchmaking and Voice communication
  • Faux-P2P Networking
  • Cloud Synchronized (or not) Storage
  • Store transactions
  • Achievements
  • ...

Status

This library is currently in early stages but is stabilizing. I'm not aware of any good ways to test this crate, there are currently no tests.

Safety

This crate relies on the SDK to provide correct data and behavior:

  • Non-null pointers to valid memory
  • UTF-8, NUL-terminated strings
  • Valid enum values
  • No mutation of memory it should have no ownership of
  • No use of pointers after destroy is called

"Legal" note

This wrapper was informally allowed for publication and distribution by Discord Staff. I cannot redistribute the SDK files until it is made open-source or is licensed for redistribution. You will have to follow some instructions when first setting up your project. Apologies for the inconvenience.

If you're a part of Discord and wish to discuss this, please email ldesgoui@gmail.com or contact twiikuu#0047. I mean no harm.

License: Apache-2.0 OR MIT