mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Add cargo feature to control canvas backend.
This commit is contained in:
parent
42bf1984be
commit
3243f1753b
11 changed files with 1077 additions and 816 deletions
|
@ -11,10 +11,13 @@ name = "canvas"
|
|||
path = "lib.rs"
|
||||
|
||||
[features]
|
||||
azure_backend = ["azure"]
|
||||
default = ["azure_backend"]
|
||||
webgl_backtrace = ["canvas_traits/webgl_backtrace"]
|
||||
raqote_backend = ["raqote"]
|
||||
|
||||
[dependencies]
|
||||
azure = {git = "https://github.com/servo/rust-azure"}
|
||||
azure = {git = "https://github.com/servo/rust-azure", optional = true}
|
||||
byteorder = "1"
|
||||
canvas_traits = {path = "../canvas_traits"}
|
||||
compositing = {path = "../compositing"}
|
||||
|
@ -27,7 +30,7 @@ ipc-channel = "0.11"
|
|||
log = "0.4"
|
||||
num-traits = "0.2"
|
||||
offscreen_gl_context = {version = "0.22", features = ["serde", "osmesa"]}
|
||||
raqote = {git = "https://github.com/jrmuizel/raqote"}
|
||||
raqote = {git = "https://github.com/jrmuizel/raqote", optional = true}
|
||||
pixels = {path = "../pixels"}
|
||||
serde_bytes = "0.10"
|
||||
servo_config = {path = "../config"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue