orbclient
The Orbital Client Library. Compatible with Redox and SDL2.
Features
The "serde" feature can be used to include code for Color
deserialization using the serde
crate (which is an
optional dependency). This is not enabled by default. To enable, either build using the --features "serde"
command
line option, or use features = ["serde"]
in your crate, where it declares a dependency on orbclient.
Platform notes
Web
- Rust standard toolchain
rustup
,rustc
,cargo
(install) - Rust web assembly toolchain
wasm-pack
(install) - JavaScript package manager npm (install)
- Run simple example
- Navigate to
examples/simple
director - Run
npm install
- Run
npm run serve
- Navigate to
Troubleshooting
- Make sure that you work with the current
nightly
version of Rust- To make sure of that, please use rustup
- Don't forget to override your work directory with
rustup override set nightly
- Don't forget to update the
nightly
version of Rust withrustup update nightly
- SDL2 should be automatically with orbclient if you have trouble try to install it
libsdl2-dev
manually- For example, with Ubuntu, please to type
sudo apt-get install libsdl2-dev
in your console
- For example, with Ubuntu, please to type
- Other problem? Do not hesitate to create a new issue!