forked from LiveSplit/livesplit-core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
107 lines (93 loc) · 4.22 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
[package]
name = "livesplit-core"
version = "0.11.0"
authors = ["Christopher Serr <christopher.serr@gmail.com>"]
documentation = "https://docs.rs/livesplit-core/"
repository = "https://github.com/LiveSplit/livesplit-core"
license = "Apache-2.0/MIT"
description = "livesplit-core is a library that provides a lot of functionality for creating a speedrun timer."
readme = "README.md"
keywords = ["speedrun", "timer", "livesplit"]
include = [
"/benches/*",
"/src/*",
"/Cargo.toml",
"/CHANGELOG.md",
"/CODE_OF_CONDUCT.md",
"/LICENSE-APACHE",
"/LICENSE-MIT",
"/README.md"
]
edition = "2018"
[package.metadata.docs.rs]
all-features = true
[badges]
# FIXME: Add GitHub Actions badge
[profile.release]
lto = true
panic = "abort"
[workspace]
members = ["capi", "capi/bind_gen", "capi/js", "capi/staticlib", "capi/cdylib", "crates/*"]
exclude = ["crates/no-std-test"]
[dependencies]
# core
base64 = { version = "0.11.0", default-features = false, features = ["alloc"] }
cfg-if = "0.1.10"
derive_more = { version = "0.99.1", default-features = false, features = ["not", "add", "from", "deref"] }
hashbrown = "0.6.3"
libm = "0.1.4"
livesplit-hotkey = { path = "crates/livesplit-hotkey", version = "0.5.0", default-features = false }
odds = { version = "0.3.1", default-features = false }
ordered-float = { version = "1.0.2", default-features = false }
palette = { version = "0.5.0", default-features = false, features = ["libm"] }
serde = { version = "1.0.98", default-features = false, features = ["derive", "alloc"] }
snafu = { version = "0.6.0", default-features = false }
unicase = "2.6.0"
# std
byteorder = { version = "1.3.2", optional = true }
chrono = { version = "0.4.0", features = ["serde", "clock"], default-features = false, optional = true }
image = { version = "0.22.0", features = ["png_codec"], default-features = false, optional = true }
indexmap = { version = "1.2.0", default-features = false, features = ["serde-1"], optional = true }
parking_lot = { version = "0.9.0", default-features = false, optional = true }
quick-xml = { version = "0.17.0", default-features = false, optional = true }
serde_json = { version = "1.0.8", optional = true }
utf-8 = { version = "0.7.4", optional = true }
# Rendering
euclid = { version = "0.20.0", default-features = false, optional = true }
livesplit-title-abbreviations = { path = "crates/livesplit-title-abbreviations", version = "0.1.0", optional = true }
lyon = { version = "0.14.0", default-features = false, optional = true }
rusttype = { version = "0.8.0", default-features = false, features = ["std"], optional = true }
smallvec = { version = "1.0.0", default-features = false, optional = true }
# Software Rendering
euc = { version = "0.4.2", default-features = false, optional = true }
vek = { version = "0.9.8", default-features = false, optional = true }
[dev-dependencies]
memmem = "0.1.1"
criterion = "0.3.0"
crc = "1.8.1"
[features]
default = ["image-shrinking", "std"]
doesnt-have-atomics = []
std = ["byteorder", "chrono", "image", "indexmap", "livesplit-hotkey/std", "palette/std", "parking_lot", "quick-xml", "serde_json", "serde/std", "snafu/std", "utf-8"]
more-image-formats = ["image/webp", "image/pnm", "image/ico", "image/jpeg", "image/gif_codec", "image/tiff", "image/tga", "image/bmp", "image/hdr"]
image-shrinking = ["more-image-formats"]
rendering = ["std", "more-image-formats", "euclid", "livesplit-title-abbreviations", "lyon", "rusttype", "smallvec"]
software-rendering = ["rendering", "euc", "vek", "derive_more/mul"]
# FIXME: Some targets don't have atomics, but we can't test for this properly
# yet. So there's a feature you explicitly have to opt into to deactivate the
# usage of atomics. Vice versa would be too dangerous, as `default-features =
# false` would deactivate atomics then. However there's also `cargo test
# --all-features`, which is equally dangerous. To detect this, we have an
# additional `internal-use-all-features` feature that is only ever activated
# when `--all-features` is passed, so we can ignore the `doesnt-have-atomics` in
# that case. https://github.com/rust-lang/rust/issues/32976
internal-use-all-features = []
[[bench]]
name = "balanced_pb"
harness = false
[[bench]]
name = "parsing"
harness = false
[[bench]]
name = "software_rendering"
harness = false