-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
101 lines (84 loc) · 3.55 KB
/
Cargo.toml
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# https://doc.rust-lang.org/cargo/reference/manifest.html
[package]
name = "ialloc"
version = "0.0.0-2023-05-28"
edition = "2021"
rust-version = "1.69.0" # MSRV: CARGO_BIN_NAME in examples/nightly/stable-main-stub.rs
license = "Apache-2.0 OR MIT"
authors = ["MaulingMonkey <git@maulingmonkey.com>"]
repository = "https://github.com/MaulingMonkey/ialloc"
documentation = "https://docs.rs/ialloc"
readme = "Readme.md"
description = "Allocator interface traits"
categories = ["memory-management", "no-std::no-alloc"] # https://crates.io/category_slugs
#keywords = ["..."]
build = "build/build.rs"
[package.metadata.docs.rs] # https://docs.rs/about/metadata
default-target = "x86_64-pc-windows-msvc"
rustc-args = ["--cfg", "skip_cc"]
[lib]
path = "src/_ialloc.rs"
[features]
default = [
"panicy",
"std", "win32", "msvc",
"c23", "c++23",
]
panicy = ["panicy-bounds", "panicy-memory"]
panicy-bounds = [] # XXX: not yet used for anything, undocumented as such
panicy-memory = [] # ≈ not(no_global_oom_handling)
alloc = ["bytemuck/extern_crate_alloc"]
std = ["alloc", "bytemuck/extern_crate_std"]
win32 = ["winapi", "winresult"]
msvc = ["libc"]
# Maximum enabled C standard. May expose less if the compiler available to the `cc` crate doesn't support the standard.
c23 = ["c17"] # XXX: not yet standardized
c17 = ["c11"]
c11 = ["c99"]
c99 = ["c89"]
c89 = ["c"]
c = ["cc", "libc"] # cc is only used for feature supported standard detection at the moment
# Maximum enabled C++ standard. May expose less if the compiler available to the `cc` crate doesn't support the standard.
"c++23" = ["c++20"] # XXX: not yet standardized
"c++20" = ["c++17"]
"c++17" = ["c++14"]
"c++14" = ["c++11"]
"c++11" = ["c++03"]
"c++03" = ["c++98"]
"c++98" = ["c++"]
"c++" = ["cc", "libc"] # libc is only used for typedefs
[build-dependencies]
cc.version = "1"
cc.optional = true
[dependencies]
bytemuck.version = "1"
bytemuck.features = [ # automatically opt into features that exist only to protect MSRV
"zeroable_maybe_uninit", # requires MSRV 1.36.0, ialloc has MSRV 1.69.0
"min_const_generics", # requires MSRV 1.51.0, ialloc has MSRV 1.69.0
"zeroable_atomics", # requires MSRV 1.60.0, ialloc has MSRV 1.69.0
]
lazy_static.version = "1"
lazy_static.features = ["spin_no_std"]
libc.version = "0.2"
libc.optional = true
[target.'cfg(windows)'.dependencies]
mcom.version = "0.1"
winapi.version = "0.3"
winapi.optional = true
winapi.features = [
# shared
"winerror",
# um
"combaseapi",
"errhandlingapi",
"heapapi",
"minwinbase",
"memoryapi",
"winbase",
"wincrypt",
"winnt",
]
winresult.version = "0.1"
winresult.optional = true
[profile.release]
debug = true