-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
47 lines (36 loc) · 1.19 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
[package]
name = "peace-performance-python"
version = "2.0.0"
authors = ["Pure-Peace <purepeace_@outlook.com>"]
edition = "2021"
[lib]
name = "peace_performance_python"
crate-type = ["cdylib"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
# You can choose whether to be asynchronous or not
# And other features
default = ["async_tokio"]
# Features
sync = []
async_tokio = ["tokio", "rosu-pp/async_tokio", "pyo3-asyncio/tokio-runtime"]
async_std = ["async-std", "rosu-pp/async_std", "pyo3-asyncio/async-std-runtime"]
# Irrelevant Features
rust_logger = ["log", "timed", "pretty_env_logger"]
[dependencies]
rosu-pp = { version = "0.8", default-features = false }
pyo3 = { version = "0.16", features = ["extension-module"] }
paste = "1.0"
# Rust logger optional
log = { version = "0.4", optional = true }
timed = { version = "0.2.1", optional = true }
pretty_env_logger = { version = "0.4.0", optional = true }
# Async optional
pyo3-asyncio = { version = "0.16", optional = true }
tokio = { version = "1.20", optional = true }
async-std = { version = "1.12", optional = true }
[profile.release]
lto = true
codegen-units = 1
opt-level = 3
strip = true