-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
59 lines (49 loc) · 2.69 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
[package]
name = "bytedata"
version = "0.1.14"
edition = "2021"
rust-version = "1.75"
description = "Representation of a byte slice that is either static, borrowed, or shared."
license = "MIT OR LGPL-3.0-or-later"
repository = "https://github.com/TimLuq/bytedata/"
authors = ["TimLuq"]
categories = ["network-programming", "data-structures"]
keywords = ["arc", "buffers", "zero-copy", "io"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
arbitrary_1 = { package = "arbitrary", version = "1", optional = true, default-features = false }
bytes_1 = { package = "bytes", version = "^1.7.1", optional = true, default-features = false }
http-body_04 = { package = "http-body", version = "0.4.5", optional = true }
http-body_1 = { package = "http-body", version = "1", optional = true }
http_02 = { package = "http", version = "0.2.4", optional = true }
http_1 = { package = "http", version = "1", optional = true }
nom_7 = { package = "nom", version = "7", optional = true }
serde_1 = { package = "serde", version = "1.0.0", optional = true, default-features = false }
dashmap = { version = "6.1", default-features = false, optional = true }
[dev-dependencies]
serde_1 = { package = "serde", version = "1.0.0", default-features = false, features = ["derive"] }
[features]
default = ["macros", "chunk"]
## Feature that enables allocating byte data. Without this feature, only borrowed bytes and 14-byte data or less can be used.
alloc = ["serde_1?/alloc"]
## Chunks is always enabled, but is still a feature for backwards compatibility. *Deprecated*
chunk = []
## Exposes a trait and a static implementation for interning of byte/str data.
interning = ["alloc", "dep:dashmap"]
## Exposes `concat_str_static` and `concat_bytes_static` macros for compile-time concatenation of byte/str data.
macros = []
## Exposes structures `ByteQueue` and `StringQueue` for efficient pushing and popping of byte/str data.
queue = []
## Implements traits from `std`.
std = ["alloc", "bytes_1?/std"]
nightly = []
core_io_borrowed_buf = []
## Makes implementations of `Buf` and `BufMut` form `bytes@1` for relevant types. Also makes optimizations for conversion between `Bytes` and `ByteData`.
bytes_1 = ["dep:bytes_1"]
## Removes some optimizations for `Bytes` and `ByteData` conversion, due to `bytes` not having neither an exposed nor stable API for this. This can be activated in case `bytes` makes a change which causes the converted data to be incorrect or segfault.
bytes_1_safe = ["bytes_1"]
http-body_04 = ["dep:http-body_04", "dep:http_02", "bytes_1"]
http-body_1 = ["dep:http-body_1", "dep:http_1", "bytes_1"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]