-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCargo.toml
More file actions
91 lines (81 loc) · 2.47 KB
/
Cargo.toml
File metadata and controls
91 lines (81 loc) · 2.47 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
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
[workspace]
members = [".", "libosu-py"]
[package]
name = "libosu"
version = "0.0.30"
authors = [
"Michael Zhang <mail@mzhang.io>",
"Nobbele <realnobbele@gmail.com>",
"Ian <IanShehadeh2020@gmail.com>",
]
edition = "2021"
description = "General-purpose osu! library."
license = "MIT"
readme = "README.md"
keywords = ["osu"]
repository = "https://github.com/mzhang28/libosu.git"
documentation = "https://docs.rs/libosu/"
[profile.release]
lto = false
[dev-dependencies]
serde_json = "1.0.149"
difference = "2.0.0"
anyhow = "1.0.102"
proptest-derive = "0.8"
proptest = "1.11"
[dependencies]
bitflags = { version = "2.11.1", features = ["serde"] }
lazy_static = "1.5.0"
num = "0.4.3"
num-derive = "0.4.2"
num-traits = "0.2.19"
ordered-float = { version = "5", features = ["serde"] }
regex = "1.12.3"
thiserror = "2"
derive_more = { version = "2", features = ["display"] }
log = "0.4.29"
byteorder = "1.5.0"
static_assertions = "1.1.0"
futures = { version = "0.3.32", optional = true }
http = { version = "1.4.0", optional = true }
hyper = { version = "1.9.0", features = ["http2", "client"], optional = true }
tokio = { version = "1.52.1", optional = true }
xz2 = { version = "0.1.7", optional = true }
lzma-rs = { version = "0.3.0", optional = true }
serde = { version = "1.0.228", features = ["derive"], optional = true }
serde_json = { version = "1.0.149", optional = true }
reqwest = { version = "0.13.2", features = [
"json",
], default-features = false, optional = true }
anyhow = { version = "1.0.102", optional = true }
chrono = { version = "0.4.44", optional = true }
url = { version = "2.5.8", optional = true }
rosu-pp = { version = "4", optional = true }
[features]
default = []
examples = ["dep:anyhow", "serde", "dep:serde_json"]
apiv1 = [
"dep:hyper",
"dep:tokio",
"dep:http",
"dep:futures",
"dep:reqwest",
"dep:url",
"serde",
"dep:serde_json",
]
apiv2 = ["dep:reqwest", "serde", "dep:chrono", "chrono?/serde"]
replay-data = ["dep:lzma-rs"]
replay-data-xz2 = ["dep:xz2"]
pp-calc = ["dep:rosu-pp"]
experimental-diff-calc = []
# Used to check for clippy lints
# See: https://github.com/rust-lang/cargo/issues/8075#issuecomment-610259732
clippy = []
[package.metadata.cargo-all-features]
# skip_optional_dependencies = true
skip_feature_sets = [["replay-data", "replay-data-xz2"]]
allowlist = ["replay-data", "replay-data-xz2", "apiv1", "apiv2"]
[package.metadata.docs.rs]
features = ["apiv1", "apiv2", "replay-data", "pp-calc"]
rustdoc-args = ["--cfg", "docsrs"]