Skip to content

ddnet/ddnet-rs

Repository files navigation

Cloning

To clone this repository use:

git clone --recursive https://github.com/ddnet/ddnet-rs

To clone the submodules if you have previously cloned DDNet-rs without them, or if you require the full history instead of a shallow clone:

git submodule update --init --recursive

Building

In order to build DDNet-rs you need the latest stable rust compiler and a c compiler:

  • Visit https://rustup.rs/ to install rust, make sure rust is up to date rustup update
  • Inside the project directory open a terminal and type cargo run --release

Features

Some features require you to compile DDNet-rs with explicit features:

cargo run --release --features bundled_data_dir,ffmpeg,microphone,enable_steam
  • ffmpeg enables the demo to video recorder on supported platforms. [Linux]
  • bundled_data_dir bundles the whole data directory into the executable, making it very portable, but much bigger.
  • microphone enables the microphone backend which allows features like spatial chat.
  • enable_steam enables steam support, the resulting binary has to be executed inside a steam runtime to work.

Android

# using https://github.com/rust-mobile/xbuild
# IMPORTANT: currently needs hack, remove line `default = ["legacy"]` in Cargo.toml
x build --release --arch arm64 --platform android --format apk -p ddnet-rs --features bundled_data_dir

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages