mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-08 07:56:55 -04:00
The workspace root enables some features which are required to compile the benchmarks, but if you decide to just compile the benchmarks these features won't be enabled since they aren't specified in the Cargo.toml file of the benchmarks. Let's define all the required features so compilation works in both cases.
37 lines
1023 B
TOML
37 lines
1023 B
TOML
[package]
|
|
name = "benchmarks"
|
|
description = "Matrix SDK benchmarks"
|
|
edition = "2021"
|
|
license = "Apache-2.0"
|
|
rust-version = { workspace = true }
|
|
version = "1.0.0"
|
|
publish = false
|
|
|
|
[dependencies]
|
|
criterion = { version = "0.5.1", features = ["async", "async_tokio", "html_reports"] }
|
|
matrix-sdk-base = { workspace = true }
|
|
matrix-sdk-crypto = { workspace = true }
|
|
matrix-sdk-sqlite = { workspace = true, features = ["crypto-store"] }
|
|
matrix-sdk-test = { workspace = true }
|
|
matrix-sdk = { workspace = true, features = ["native-tls", "e2e-encryption", "sqlite"] }
|
|
ruma = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
tempfile = "3.3.0"
|
|
tokio = { version = "1.24.2", default-features = false, features = ["rt-multi-thread"] }
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
pprof = { version = "0.13.0", features = ["flamegraph", "criterion"] }
|
|
|
|
[[bench]]
|
|
name = "crypto_bench"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "store_bench"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "room_bench"
|
|
harness = false
|