forked from johanhelsing/bevy_pkv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
69 lines (57 loc) · 1.73 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
67
68
69
[package]
name = "bevy_pkv"
version = "0.10.0"
edition = "2021"
license = "MIT OR Apache-2.0"
authors = ["Johan Helsing <[email protected]>"]
description = "Persistent key value store for apps/games"
keywords = ["gamedev", "key-value-store", "bevy"]
categories = ["game-development"]
repository = "https://github.com/johanhelsing/bevy_pkv"
[dependencies]
thiserror = "1.0"
serde = "1.0"
bevy_ecs = { version = "0.13", optional = true } # we need for deriving Resource in PkvStore
[features]
default = ["bevy", "redb"]
bevy = ["dep:bevy_ecs"]
rocksdb = ["dep:rocksdb"]
sled = ["dep:sled"]
redb = ["dep:redb"]
[target.'cfg(target_arch = "wasm32")'.dependencies]
web-sys = { version = "0.3", default-features = false, features = [
"Storage",
"Window",
] }
wasm-bindgen = { version = "0.2", default-features = false }
serde_json = "1.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
rocksdb = { version = "0.22", optional = true }
sled = { version = "0.34", optional = true }
rmp-serde = "1.1"
directories = "5.0"
redb = { version = "1.5", optional = true }
[dev-dependencies]
bevy = { version = "0.13", default-features = false }
strum_macros = "0.26"
tempfile = "3"
[build-dependencies]
cfg_aliases = "0.2"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
console_error_panic_hook = "0.1"
easybench-wasm = "0.2"
web-sys = { version = "0.3", default-features = false, features = ["console"] }
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
[[bench]]
name = "inserts"
harness = false
[[example]]
name = "basic"
required-features = ["bevy"]
[[example]]
name = "migration"
required-features = ["bevy"]
[[example]]
name = "enumkeys"
required-features = ["bevy"]