tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

Cargo.toml (2362B)


      1 [package]
      2 name = "wgpu_bindings"
      3 version = "0.1.0"
      4 authors = [
      5  "Dzmitry Malyshau <kvark@mozilla.com>",
      6  "Joshua Groves <josh@joshgroves.com>",
      7 ]
      8 edition = "2021"
      9 license = "MPL-2.0"
     10 publish = false
     11 
     12 [lib]
     13 
     14 [features]
     15 default = []
     16 
     17 [dependencies.wgc]
     18 package = "wgpu-core"
     19 git = "https://github.com/gfx-rs/wgpu"
     20 rev = "a2c8c0de7cdb57a74070ce70b9912e853893d502"
     21 features = ["serde", "trace", "strict_asserts", "wgsl", "api_log_info"]
     22 
     23 # We want the wgpu-core Metal backend on macOS and iOS.
     24 # (We should consider also enabling "vulkan" for Vulkan Portability.)
     25 [target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.wgc]
     26 package = "wgpu-core"
     27 git = "https://github.com/gfx-rs/wgpu"
     28 rev = "a2c8c0de7cdb57a74070ce70b9912e853893d502"
     29 features = ["metal"]
     30 
     31 # We want the wgpu-core Direct3D backends on Windows.
     32 [target.'cfg(windows)'.dependencies.wgc]
     33 package = "wgpu-core"
     34 git = "https://github.com/gfx-rs/wgpu"
     35 rev = "a2c8c0de7cdb57a74070ce70b9912e853893d502"
     36 features = ["dx12"]
     37 
     38 # We want the wgpu-core Vulkan backend on Linux and Windows.
     39 [target.'cfg(any(windows, all(unix, not(any(target_os = "macos", target_os = "ios")))))'.dependencies.wgc]
     40 package = "wgpu-core"
     41 git = "https://github.com/gfx-rs/wgpu"
     42 rev = "a2c8c0de7cdb57a74070ce70b9912e853893d502"
     43 features = ["vulkan"]
     44 
     45 [dependencies.wgt]
     46 package = "wgpu-types"
     47 git = "https://github.com/gfx-rs/wgpu"
     48 rev = "a2c8c0de7cdb57a74070ce70b9912e853893d502"
     49 
     50 [dependencies.wgh]
     51 package = "wgpu-hal"
     52 git = "https://github.com/gfx-rs/wgpu"
     53 rev = "a2c8c0de7cdb57a74070ce70b9912e853893d502"
     54 features = ["device_lost_panic", "internal_error_panic"]
     55 
     56 [target.'cfg(windows)'.dependencies]
     57 windows = { version = "0.62", default-features = false, features = [
     58  "Win32_Graphics_Direct3D12",
     59 ] }
     60 
     61 [target.'cfg(target_os = "macos")'.dependencies]
     62 objc = "0.2"
     63 metal = "0.33"
     64 io-surface = "0.15"
     65 # TODO(bug 1984493): The `block2` crate will be used by wgpu in the near
     66 # future. The direct dependency on it can be removed when wgpu is updated to a
     67 # version that uses it. The rest of these will be used directly by
     68 # `wgpu_bindings` at that point.
     69 block2 = "0.6.2"
     70 objc2 = "0.6.3"
     71 
     72 [dependencies]
     73 bincode = "1"
     74 log = "0.4"
     75 parking_lot = "0.12"
     76 serde = "1"
     77 nsstring = { path = "../../xpcom/rust/nsstring" }
     78 static_prefs = { path = "../../modules/libpref/init/static_prefs" }
     79 arrayvec = "0.7"
     80 ash = "0.38"