-
-
Notifications
You must be signed in to change notification settings - Fork 1k
/
Cargo.toml
80 lines (71 loc) · 2.37 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
[package]
name = "diesel_bench"
version = "0.1.0"
edition = "2021"
build = "build.rs"
autobenches = false
[workspace]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
dotenvy = "0.15"
criterion = { version = "0.5", default-features = false, features = [
"csv_output",
"cargo_bench_support",
] }
sqlx = { version = "0.7.3", features = [
"runtime-tokio-rustls",
], optional = true }
tokio = { version = "1", optional = true, features = ["rt-multi-thread"] }
rusqlite = { version = "0.30", optional = true }
rust_postgres = { version = "0.19.7", optional = true, package = "postgres" }
tokio_postgres = { version = "0.7.10", optional = true, package = "tokio-postgres" }
rust_mysql = { version = "23.0", optional = true, package = "mysql" }
rustorm = { version = "0.20", optional = true }
rustorm_dao = { version = "0.20", optional = true }
quaint = { version = "0.2.0-alpha.13", optional = true, default-features = false }
serde = { version = "1", optional = true, features = ["derive"] }
sea-orm = { version = "0.12.14", optional = true, features = [
"runtime-tokio-rustls",
] }
futures = { version = "0.3", optional = true }
futures-util = { version = "0.3", optional = true }
diesel-async = { version = "0.4.1", optional = true, default-features = false }
criterion-perf-events = { version = "0.4", optional = true }
perfcnt = { version = "0.8", optional = true }
wtx = { default-features = false, features = [
"atoi",
"memchr",
"postgres",
"simdutf8",
"std",
"tokio",
], optional = true, version = "0.14" }
[dependencies.diesel]
path = "../diesel"
default-features = false
features = []
[build-dependencies]
diesel = { path = "../diesel", default-features = false }
diesel_migrations = { path = "../diesel_migrations" }
dotenvy = "0.15"
[[bench]]
name = "benchmarks"
path = "benches/lib.rs"
bench = true
harness = false
[features]
default = []
postgres = ["diesel/postgres"]
sqlite = ["diesel/sqlite"]
mysql = ["diesel/mysql"]
sqlx-bench = ["sqlx", "tokio", "sqlx/runtime-tokio-rustls"]
instruction_count = ["criterion-perf-events", "perfcnt"]
fast_run = []
[profile.release]
lto = true
debug = true
codegen-units = 1
[patch.crates-io]
quaint = { git = "https://github.com/prisma/prisma-engines", branch = "main" }
diesel-async = { git = "https://github.com/weiznich/diesel_async", branch = "main" }
diesel = { path = "../diesel" }