gecko-dev/third_party/rust/offscreen_gl_context/Cargo.toml

43 строки
1.2 KiB
TOML

[package]
name = "offscreen_gl_context"
license = "MIT / Apache-2.0"
version = "0.6.1"
authors = ["Emilio Cobos Álvarez <emilio@crisal.io>", "The Servo Project Developers"]
description = "Creation and manipulation of HW accelerated offscreen rendering contexts in multiple platforms. Originally intended for the Servo project's WebGL implementation."
repository = "https://github.com/emilio/rust-offscreen-rendering-context"
build = "build.rs"
[build-dependencies]
gl_generator = "0.5"
[features]
default = []
osmesa = ["osmesa-sys"]
# NOTE: Just for testing use, there are no other changes
test_egl_in_linux = []
test_osmesa = []
[dependencies]
log = "0.3"
gleam = "0.2.31"
euclid = "0.11"
serde = { version = "0.9", optional = true }
osmesa-sys = { version = "0.1", optional = true }
[target.x86_64-apple-darwin.dependencies]
core-foundation = "0.3.0"
cgl = "0.1"
[target.'cfg(target_os = "linux")'.dependencies.x11]
version = "2.3.0"
features = ["xlib"]
[target.'cfg(target_os = "windows")'.dependencies]
winapi = "0.2"
gdi32-sys = "0.2"
user32-sys = "0.2"
kernel32-sys = "0.2"
[target.'cfg(any(target_os="macos", target_os="windows"))'.dependencies]
lazy_static = "0.2"