-
Notifications
You must be signed in to change notification settings - Fork 9
/
Cargo.toml
49 lines (40 loc) · 1.46 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
[package]
name = "alkahest"
version = "0.3.0"
edition = "2021"
authors = ["Zakarum <zakarumych@ya.ru>"]
license = "MIT OR Apache-2.0"
documentation = "https://docs.rs/alkahest"
homepage = "https://github.com/zakarumych/alkahest"
repository = "https://github.com/zakarumych/alkahest"
readme = "README.md"
description = "Fantastic serialization library with zero-overhead serialization and zero-copy deserialization"
[features]
alloc = [] # enables impls for types from `alloc` crate.
std = ["alloc"]
derive = ["alkahest-proc"]
inline-more = []
## TODO: Control on value or type level?
## Keep features for defaults?
fixed8 = [] # sets size of `usize` and `isize` to 8 bits.
fixed16 = [] # sets size of `usize` and `isize` to 16 bits.
fixed32 = [] # sets size of `usize` and `isize` to 32 bits. Default.
fixed64 = [] # sets size of `usize` and `isize` to 64 bits.
default = ["alloc", "fixed32", "inline-more"]
bincoded = ["dep:bincode", "dep:serde", "std"]
[dependencies]
alkahest-proc = { version = "=0.3.0", path = "proc", optional = true }
cfg-if = { version = "1.0" }
bincode = { version = "1.3", optional = true }
serde = { version = "1.0", optional = true }
[dev-dependencies]
rand = { version = "0.8", features = ["small_rng"] }
serde = { version = "1.0", features = ["derive"] }
[[example]]
name = "test"
required-features = ["derive", "alloc"]
[[example]]
name = "profile"
required-features = ["derive", "alloc"]
[workspace]
members = ["proc", "benchmark"]