Cargo Features
libosu has no features set by default.
[dependencies]
libosu = { version = "0.0.28", features = ["examples", "apiv1", "apiv2", "replay-data", "replay-data-xz2", "experimental-diff-calc", "clippy"] }
- examples = serde
-
Enables anyhow and serde_json
- apiv1 = serde
-
Enables futures, http ^0.2.8, hyper ^0.14.20, reqwest ^0.11.10, serde_json, tokio, and url
Affects
libosu::apiv1
… - apiv2 = serde
-
Enables reqwest ^0.11.10, serde of chrono
Affects
libosu::apiv2
… - replay-data
-
Enables lzma-rs ^0.2
- replay-data-xz2
-
Enables xz2
- experimental-diff-calc
-
Difficulty calculation isn't yet confirmed to be accurate, will feature-gate this for users who want something but won't merge this in until it's ready
Affects
beatmap::diff_calc
,beatmap::pp_calc
… - clippy
-
Used to check for clippy lints See: https://github.com/rust-lang/cargo/issues/8075#issuecomment-610259732
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.