-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
58 lines (53 loc) · 2.11 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
[package]
name = "disk"
version = "0.1.21"
edition = "2021"
authors = ["hinto.janai <[email protected]>"]
description = "(De)serialize files to/from disk"
documentation = "https://docs.rs/disk"
repository = "https://github.com/hinto-janai/disk"
readme = "README.md"
keywords = ["disk", "file", "toml", "json", "bincode"]
license = "MIT"
[features]
default = []
toml = ["toml_edit"]
json = ["serde_json"]
yaml = ["serde_yaml"]
pickle = ["serde-pickle"]
messagepack = ["rmp-serde"]
plain = ["serde_plain"]
empty = []
full = ["toml", "json", "yaml", "log", "bincode", "pickle", "messagepack", "bson", "plain", "empty", "postcard", "ron", "bincode2", "bytesize"]
[package.metadata.docs.rs]
all-features = true
rustc-args = ["--cfg", "docsrs"]
[dependencies]
# Required.
anyhow = "1.0.75"
#disk_derive = { path = "../disk_derive" }
directories = "5.0.1"
serde = { version = "1.0.192", features = ["derive"] }
const_format = { version = "0.2.32", features = ["rust_1_51", "assertcp", "rust_1_64"] }
const-str = { version = "0.5.6", features = ["case"] }
flate2 = "1.0.28"
seq-macro = "0.3.5"
paste = "1.0.14"
memmap2 = "0.9.0"
once_cell = "1.18.0"
# Optional.
log = { version = "0.4.20", optional = true }
bincode = { version = "1.3.3", optional = true }
toml_edit = { version = "0.21.0", features = ["serde"], optional = true }
serde_json = { version = "1.0.108", optional = true }
serde_yaml = { version = "0.9.27", optional = true }
serde-pickle = { version = "1.1.1", optional = true }
rmp-serde = { version = "1.1.2", optional = true }
bson = { version = "2.7.0", optional = true }
serde_plain = { version = "1.0.2", optional = true }
postcard = { version = "1.0.8", features = ["alloc", "use-std"], default-features = false, optional = true }
ron = { version = "0.8.1", optional = true }
bincode2 = { package = "bincode", version = "2.0.0-rc.3", optional = true, features = ["derive", "std", "alloc"] }
bytesize = { version = "1.3.0", optional = true }
[target.'cfg(unix)'.dependencies]
libc = "0.2.150"