-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathREADME.tpl
74 lines (50 loc) · 2.69 KB
/
README.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# 📒 gpu-allocator
[](https://github.com/Traverse-Research/gpu-allocator/actions)
[](https://crates.io/crates/gpu-allocator)
[](https://docs.rs/gpu-allocator/)
[](LICENSE-MIT)
[](LICENSE-APACHE)
[](../main/CODE_OF_CONDUCT.md)
[](https://blog.rust-lang.org/2023/07/13/Rust-1.71.0.html)
[](https://traverseresearch.nl)
```toml
[dependencies]
gpu-allocator = "0.27.0"
```

{{readme}}
## `no_std` Support
`no_std` support can be enabled by compiling with `--no-default-features` to
disable `std` support and `--features hashbrown` for `Hash` collections that are only
defined in `std` for internal usages in crate. For example:
```toml
[dependencies]
gpu-allocator = { version = "0.27", default-features = false, features = ["hashbrown", "other features"] }
```
To support both `std` and `no_std` builds in project, you can use the following
in your `Cargo.toml`:
```toml
[features]
default = ["std", "other features"]
std = ["gpu-allocator/std"]
hashbrown = ["gpu-allocator/hashbrown"]
other_features = []
[dependencies]
gpu-allocator = { version = "0.27", default-features = false }
```
## Minimum Supported Rust Version
The MSRV for this crate and the `vulkan`, `d3d12` and `metal` features is Rust **1.71**.
The `no_std` support requires version above **1.81** beacuase `no_std` support of dependency `thiserror` requires `core::error::Error` which is stabalized in **1.81**.
Any other features such as the `visualizer` (with all the `egui` dependencies) may have a higher requirement and are not tested in our CI.
## License
Licensed under either of
- Apache License, Version 2.0, ([LICENSE-APACHE](../master/LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](../master/LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.
## Alternative libraries
- [vk-mem-rs](https://github.com/gwihlidal/vk-mem-rs)
## Contribution
Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in the work by you, as defined in the Apache-2.0
license, shall be dual licensed as above, without any additional terms or
conditions.