-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCargo.toml
More file actions
89 lines (81 loc) · 2.25 KB
/
Copy pathCargo.toml
File metadata and controls
89 lines (81 loc) · 2.25 KB
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
[package]
name = "arc-slice"
version = "0.1.0"
edition = "2021"
rust-version = "1.64.0"
exclude = [".*"]
description = "Shared memory slices"
homepage = "https://github.com/wyfo/arc-slice"
readme = "README.md"
keywords = [
"buffers",
"io",
"zero-copy",
]
categories = [
"network-programming",
"data-structures",
]
license = "MIT"
repository = "https://github.com/wyfo/arc-slice"
[features]
default = ["abort-on-refcount-overflow", "oom-handling", "std"]
abort-on-refcount-overflow = []
bstr = ["dep:bstr"]
bytemuck = ["dep:bytemuck"]
bytes = ["dep:bytes"]
inlined = ["dep:either"]
oom-handling = []
portable-atomic = ["dep:portable-atomic"]
portable-atomic-util = ["portable-atomic", "dep:portable-atomic-util"]
raw-buffer = []
serde = ["dep:serde", "oom-handling"]
std = []
# default layout
default-layout-any-buffer = []
default-layout-static = []
default-layout-boxed-slice = []
default-layout-raw = ["raw-buffer"]
default-layout-vec = []
default-layout-mut-any-buffer = []
default-layout-mut-vec = []
default-layout-mut-shared = []
[dependencies]
bytemuck = { version = "1", default-features = false, optional = true }
bytes = { version = "1", default-features = false, optional = true }
bstr = { version = "1", default-features = false, features = ["alloc"], optional = true }
cfg-if = "1"
either = { version = "1", default-features = false, optional = true }
portable-atomic = { version = "1", default-features = false, features = ["require-cas"], optional = true }
portable-atomic-util = { version = "0.2", default-features = false, features = ["alloc"], optional = true }
serde = { version = "1", default-features = false, features = ["alloc"], optional = true }
[dev-dependencies]
bytes = "1.10.1"
criterion = "0.5.1"
iai-callgrind = "0.14.0"
memmap2 = "0.9.5"
[[bench]]
name = "criterion"
harness = false
[[bench]]
name = "iai"
harness = false
[lints.rust]
unsafe_op_in_unsafe_fn = "forbid"
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(unreachable_checked)'] }
[lints.clippy]
dbg_macro = "forbid"
semicolon_if_nothing_returned = "forbid"
incompatible_msrv = "allow"
#undocumented_unsafe_blocks = "forbid"
[package.metadata.docs.rs]
features = [
"bstr",
"bytemuck",
"bytes",
"inlined",
"portable-atomic",
"portable-atomic-util",
"raw-buffer",
"serde",
]