-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
66 lines (58 loc) · 1.6 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
[package]
name = "nson"
version = "0.14.0-rc5"
license = "MIT"
authors = ["danc <[email protected]>"]
description = "NSON is a lightweight data-interchange format like JSON or BSON"
documentation = "https://docs.rs/nson"
homepage = "https://github.com/danclive/nson"
repository = "https://github.com/danclive/nson"
readme = "README.md"
keywords = ["nson", "serialization", "encoding"]
categories = ["encoding"]
edition = "2021"
exclude = [
".gitignore",
".travis.yml",
"deploy.sh",
"test/**/*",
]
[dependencies]
indexmap = { version = "2.5", default-features = false, features = ["serde"] }
hash32 = { version = "0.3", default-features = false, optional = true }
rand = { version = "0.8", default-features = false }
const-hex = { version = "1.12", default-features = false }
serde = { version = "1.0", default-features = false, features = ["derive"], optional = true }
serde_bytes = { version = "0.11", default-features = false, optional = true }
serde_json = { version = "1.0", default-features = false, features = ["preserve_order"], optional = true }
base64 = { version = "0.22", default-features = false, optional = true }
[features]
default = ["std", "serde"]
std = [
"alloc",
"indexmap/std",
"rand/std",
"rand/std_rng",
"const-hex/std",
"serde?/std",
"serde_bytes?/std",
"serde_json?/std",
"base64?/std"
]
alloc = [
"const-hex/alloc",
"hash32",
"serde?/alloc",
"serde_bytes?/alloc",
"serde_json?/alloc",
"base64?/alloc",
]
serde = [
"dep:serde",
"serde_bytes"
]
json = [
"serde",
"serde_json",
"base64"
]