Files
sousa-gecko/third_party/rust/gpu-allocator/Cargo.toml
T
Erich Gubler 9c8a99ad31 Bug 1990905 - chore(rust): update to windows 0.62 r=glandium,supply-chain-reviewers
This required a coordinated upgrade of several crates at the same time:

- Backports in `third_party/rust/`, which have been merged upstream, and should pose no
  conflict when next integrated from mainline history:
	- `midir`: [Boddlnagg/midir#178](https://github.com/Boddlnagg/midir/pull/178)
	- `neqo`: [mozilla/neqo#3091](https://github.com/mozilla/neqo/pull/3091)
	- `memtest`: [mozilla/memtest#18](https://github.com/mozilla/memtest/pull/18)
		- Consumed by `toolkit/crashreporter/client/app/`.
	- `wgpu*` and `naga` crates: [wgpu#6876](https://github.com/gfx-rs/wgpu/pull/6876)
		- This is consumed by `gfx/wgpu_bindings/`.
		- Includes an upgrade to `gpu_allocator` 0.27.0 → 0.28.0. This could have been an incremental migration first, but I missed it while figuring out what supporting work to break out. Fortunately, this isn't difficult to review.
- `widget/windows/rust/` needed some migration in its direct dependencies, too.

All backports have already been merged upstream, and so should pose no conflict when next integrated.

Differential Revision: https://phabricator.services.mozilla.com/D266878
2025-11-18 22:51:22 +00:00

181 lines
3.6 KiB
TOML

# 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"
rust-version = "1.71"
name = "gpu-allocator"
version = "0.28.0"
authors = ["Traverse Research <opensource@traverseresearch.nl>"]
build = false
include = [
"/README.md",
"/LICENSE-*",
"/src",
"/examples",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Memory allocator for GPU memory in Vulkan and DirectX 12"
homepage = "https://github.com/Traverse-Research/gpu-allocator"
documentation = "https://docs.rs/gpu-allocator/"
readme = "README.md"
keywords = [
"vulkan",
"memory",
"allocator",
]
categories = [
"rendering",
"rendering::graphics-api",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Traverse-Research/gpu-allocator"
[package.metadata.docs.rs]
all-features = true
[features]
d3d12 = ["dep:windows"]
default = [
"std",
"d3d12",
"vulkan",
"metal",
]
hashbrown = ["dep:hashbrown"]
metal = [
"dep:objc2",
"dep:objc2-metal",
"dep:objc2-foundation",
]
std = ["presser/std"]
visualizer = [
"dep:egui",
"dep:egui_extras",
]
vulkan = ["dep:ash"]
[lib]
name = "gpu_allocator"
path = "src/lib.rs"
[[example]]
name = "d3d12-buffer-winrs"
path = "examples/d3d12-buffer-winrs.rs"
required-features = ["d3d12"]
[[example]]
name = "metal-buffer"
path = "examples/metal-buffer.rs"
required-features = ["metal"]
[[example]]
name = "vulkan-buffer"
path = "examples/vulkan-buffer.rs"
required-features = [
"vulkan",
"ash/loaded",
]
[dependencies.ash]
version = "0.38"
features = ["debug"]
optional = true
default-features = false
[dependencies.egui]
version = ">=0.24, <=0.27"
optional = true
default-features = false
[dependencies.egui_extras]
version = ">=0.24, <=0.27"
optional = true
default-features = false
[dependencies.hashbrown]
version = "0.16.0"
optional = true
[dependencies.log]
version = "0.4"
default-features = false
[dependencies.presser]
version = "0.3"
default-features = false
[dependencies.thiserror]
version = "2.0"
default-features = false
[dev-dependencies.ash]
version = "0.38"
features = [
"debug",
"loaded",
]
default-features = false
[dev-dependencies.env_logger]
version = "0.11"
[target.'cfg(target_vendor = "apple")'.dependencies.objc2]
version = "0.6"
optional = true
default-features = false
[target.'cfg(target_vendor = "apple")'.dependencies.objc2-foundation]
version = "0.3"
optional = true
default-features = false
[target.'cfg(target_vendor = "apple")'.dependencies.objc2-metal]
version = "0.3"
features = [
"MTLAccelerationStructure",
"MTLAllocation",
"MTLBuffer",
"MTLDevice",
"MTLHeap",
"MTLResidencySet",
"MTLResource",
"MTLTexture",
"std",
]
optional = true
default-features = false
[target.'cfg(target_vendor = "apple")'.dev-dependencies.objc2-metal]
version = "0.3"
features = ["MTLPixelFormat"]
default-features = false
[target."cfg(windows)".dependencies.windows]
version = ">=0.53, <=0.62"
features = [
"Win32_Graphics_Direct3D12",
"Win32_Graphics_Dxgi_Common",
]
optional = true
[target."cfg(windows)".dev-dependencies.windows]
version = ">=0.58, <=0.62"
features = [
"Win32_Graphics_Direct3D",
"Win32_Graphics_Direct3D12",
"Win32_Graphics_Dxgi_Common",
]