Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
unrust / uni-gl
This library is a part of Unrust, a pure rust native/wasm game engine. This library provides a native/wasm compatibility layer for following components :
- OpenGL API
When used in conjonction with uni-app, on native target, it provides an OpenGL 3.2+ or OpenGLES 2.0+ Core Profile context. On web target, it provides a WebGL 2.0 context where available, else a WebGL 1.0 context.
This project is under heavily development, all api are very unstable until version 0.2
Usage
[]
="0.1.*"
="0.1.*"
extern crate uni_app;
extern crate uni_gl;
Build
As web app (wasm32-unknown-unknown)
When targetting wasm32-unknown-unknown
, stdweb currently requires Rust nightly.
cargo install --force cargo-web # installs web sub command
rustup override set nightly
rustup target install wasm32-unknown-unknown
cargo web start --example basic --release
As desktop app (native-opengl)
Native compilation works with current stable Rust (1.28)
rustup override set stable
cargo run --example basic --release
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.