-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
60 lines (47 loc) · 1.82 KB
/
Copy pathCargo.toml
File metadata and controls
60 lines (47 loc) · 1.82 KB
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
[workspace.dependencies]
mcdata = { version = "0.4.0", features = ["serde"] }
[package]
name = "rustmatica"
version = "0.5.2"
authors = ["RubixDev"]
categories = ["encoding", "wasm"]
edition = "2021"
exclude = [".github", "dprint.json", "test_files"]
keywords = ["minecraft", "serde", "litematic", "litematica", "nbt"]
license = "GPL-3.0-only"
repository = "https://github.com/RubixDev/rustmatica"
description = "A Rust library for reading, editing, and writing Minecraft litematic files"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
#! ## Features
default = ["chrono", "image"]
## Use [`chrono`] types for timestamps.
chrono = ["dep:chrono"]
## Use the [`image`] crate for preview images.
image = ["dep:image"]
## Enable this when building the docs
docs = ["dep:document-features", "dep:rustc_version"]
_mcdata-all = ["mcdata/entities", "mcdata/block-entities", "mcdata/mc-all"]
[dependencies]
document-features = { version = "0.2.10", optional = true }
fastnbt = "2.5.0"
flate2 = "1.0.35"
image = { version = "0.25.5", optional = true }
mcdata.workspace = true
serde = { version = "1.0.217", features = ["derive"] }
thiserror = "2.0.11"
[target.'cfg(not(target_family = "wasm"))'.dependencies]
chrono = { version = "0.4.39", optional = true }
[target.'cfg(target_family = "wasm")'.dependencies]
chrono = { version = "0.4.39", features = ["wasmbind"], optional = true }
js-sys = "0.3.77" # for current time without chrono feature
[dev-dependencies]
bounded-integer = "0.5.8"
mcdata = { workspace = true, features = ["latest", "block-states"] }
serde_json = "1.0.138"
viuer = "0.9.1"
zip = { version = "2.2.2", default-features = false, features = ["deflate"] }
[build-dependencies]
rustc_version = { version = "0.4.1", optional = true }
[package.metadata.docs.rs]
all-features = true