# 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 "] 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", ]