# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "surfman" version = "0.9.8" authors = [ "Patrick Walton ", "Emilio Cobos Álvarez ", "The Servo Project Developers", ] build = "build.rs" autobins = false autoexamples = false autotests = false autobenches = false description = "A cross-platform, low-level toolkit for GPU surface management" readme = "README.md" license = "MIT OR Apache-2.0 OR MPL-2.0" repository = "https://github.com/servo/surfman" [lib] name = "surfman" path = "src/lib.rs" [[example]] name = "chaos_game" path = "examples/chaos_game.rs" [[example]] name = "offscreen" path = "examples/offscreen.rs" [[example]] name = "threads" path = "examples/threads.rs" [dependencies.bitflags] version = "2.6" [dependencies.euclid] version = "0.22" [dependencies.fnv] version = "1.0" optional = true [dependencies.lazy_static] version = "1" [dependencies.libc] version = "0.2" [dependencies.log] version = "0.4" [dependencies.osmesa-sys] version = "0.1" optional = true [dependencies.rwh_05] version = "0.5.2" features = ["std"] optional = true package = "raw-window-handle" [dependencies.rwh_06] version = "0.6.2" features = ["std"] optional = true package = "raw-window-handle" [dependencies.sparkle] version = "0.1" optional = true [dev-dependencies.clap] version = "2" [dev-dependencies.gl] version = "0.14" [dev-dependencies.png] version = "0.17" [dev-dependencies.rand] version = "0.8" [dev-dependencies.serial_test] version = "3.1.0" [dev-dependencies.winit] version = "0.29" [build-dependencies.cfg_aliases] version = "0.2.1" [build-dependencies.gl_generator] version = "0.14" [features] chains = [ "fnv", "sparkle", ] default = ["sm-raw-window-handle-06"] sm-angle = [] sm-angle-builtin = ["mozangle"] sm-angle-default = ["sm-angle"] sm-no-wgl = ["sm-angle-default"] sm-raw-window-handle-05 = ["dep:rwh_05"] sm-raw-window-handle-06 = ["dep:rwh_06"] sm-raw-window-handle-generic = [] sm-test = [] sm-wayland-default = [] sm-x11 = ["x11"] [target.'cfg(all(unix, not(any(target_os = "macos", target_os = "android", target_env = "ohos"))))'.dependencies.wayland-sys] version = "0.30" features = [ "client", "dlopen", "egl", ] [target.'cfg(all(unix, not(any(target_os = "macos", target_os = "android", target_env = "ohos"))))'.dependencies.x11] version = "2.3.0" features = ["xlib"] optional = true [target.'cfg(target_os = "android")'.dependencies.rwh_06] version = "0.6" package = "raw-window-handle" [target.'cfg(target_os = "macos")'.dependencies.cgl] version = "0.3.2" [target.'cfg(target_os = "macos")'.dependencies.cocoa] version = "0.25" [target.'cfg(target_os = "macos")'.dependencies.core-foundation] version = "0.9" [target.'cfg(target_os = "macos")'.dependencies.core-graphics] version = "0.23" [target.'cfg(target_os = "macos")'.dependencies.io-surface] version = "0.15" [target.'cfg(target_os = "macos")'.dependencies.mach2] version = "0.4" [target.'cfg(target_os = "macos")'.dependencies.metal] version = "0.24" [target.'cfg(target_os = "macos")'.dependencies.objc] version = "0.2" [target.'cfg(target_os = "macos")'.dependencies.servo-display-link] version = "0.2" [target.'cfg(target_os = "windows")'.dependencies.mozangle] version = "0.5.1" features = [ "egl", "build_dlls", ] optional = true [target.'cfg(target_os = "windows")'.dependencies.winapi] version = "0.3" features = [ "d3d11", "libloaderapi", "winbase", "winerror", "wingdi", "winuser", ] [target.'cfg(target_os = "windows")'.dependencies.wio] version = "0.2"