-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCargo.toml
122 lines (89 loc) · 3.17 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[package]
name = "assets_manager"
version = "0.12.4"
authors = ["Benoît du Garreau"]
edition = "2021"
rust-version = "1.72"
license = "MIT OR Apache-2.0"
readme = "README.md"
description = "Conveniently load, cache, and reload external resources"
repository = "https://github.com/a1phyr/assets_manager"
documentation = "https://docs.rs/assets_manager"
categories = ["caching", "filesystem", "game-development"]
keywords = ["asset", "assets", "cache", "hot-reloading", "resources"]
exclude = ["/assets/"]
[features]
default = ["ahash"]
ahash = ["dep:ahash"]
image = ["dep:image"]
hot-reloading = ["dep:notify", "dep:crossbeam-channel"]
macros = ["dep:assets_manager_macros"]
embedded = ["macros"]
utils = ["dep:once_cell"]
mmap = ["dep:memmap2"]
zip = ["dep:zip", "dep:sync_file"]
zip-bzip2 = ["zip", "zip/bzip2"]
zip-deflate = ["zip", "zip/deflate"]
zip-zstd = ["zip", "zip/zstd"]
tar = ["dep:tar", "dep:sync_file"]
serde = ["dep:serde"]
bincode = ["dep:bincode", "serde"]
json = ["dep:serde_json", "serde"]
msgpack = ["dep:rmp-serde", "serde"]
ron = ["dep:ron", "serde"]
yaml = ["dep:serde_yaml", "serde"]
toml = ["dep:basic-toml", "serde"]
bmp = ["image/bmp"]
jpeg = ["image/jpeg"]
png = ["image/png"]
webp = ["image/webp"]
gltf = ["dep:gltf", "dep:base64", "png", "jpeg"]
[dependencies]
log = { version = "0.4" }
once_cell = { version = "1.16", optional = true }
memmap2 = { version = "0.9.4", optional = true }
assets_manager_macros = { path = "macros", version = "0.2.4", optional = true }
ahash = { version = "0.8.0", optional = true, default-features = false, features = ["runtime-rng"] }
parking_lot = { version = "0.12", optional = true }
hashbrown = { version = "0.15", default-features = false }
notify = { version = "7.0", optional = true }
crossbeam-channel = { version = "0.5", optional = true }
zip = { version = "0.6", optional = true, default-features = false }
tar = { version = "0.4.38", default-features = false, optional = true }
sync_file = { version = "0.2", optional = true }
serde = { version = "1.0", optional = true }
basic-toml = { version = "0.1.3", optional = true }
bincode = { version = "1.2", optional = true }
serde_json = { version = "1.0", optional = true }
rmp-serde = { version = "1.1", optional = true }
ron = { version = "0.8", optional = true }
serde_yaml = { version = "0.9.1", optional = true }
image = { version = "0.25", optional = true, default-features = false }
ab_glyph = { version = "0.2.12", optional = true }
gltf = { version = "1.0", optional = true, default-features = false }
base64 = { version = "0.22", optional = true }
[dev-dependencies]
cfg-if = "1.0"
rand = "0.8"
serde = { version = "1.0", features = ["derive"] }
env_logger = "0.11"
[[example]]
name = "basic"
required-features = ["ron"]
[[example]]
name = "hot_reloading"
required-features = ["hot-reloading"]
[[example]]
name = "compound"
required-features = ["hot-reloading", "ron"]
[[example]]
name = "custom-source"
[workspace]
members = [".", "crates/kira", "crates/rodio", "macros"]
[profile.dev]
# Disabling debug info speeds up builds a bunch,
# and we don't rely on it for debugging that much.
debug = 0
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]