Skip to content

Commit e9719ba

Browse files
committed
removed unused dependencies
1 parent 8ae0414 commit e9719ba

File tree

5 files changed

+23
-205
lines changed

5 files changed

+23
-205
lines changed

Cargo.lock

Lines changed: 0 additions & 195 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,21 @@ juniper = { version = "0.16.1", features = ["schema-language", "chrono"] }
2424
scraper = "0.19.0"
2525
bitflags = "2.5.0"
2626
rusty-money = { version = "0.4.1", features = ["iso"] }
27-
chrono = { version = "0.4.37", features = ["serde"] }
27+
chrono = { version = "0.4.37", features = [
28+
"serde",
29+
"std",
30+
], default-features = false }
2831
url = "2.5.0"
2932
futures = "0.3.30"
3033
serde_json = "1.0.116"
3134
regex = "1.10.4"
3235
serde = "1.0.199"
3336
tracing = "0.1.40"
34-
governor = "0.6.3"
37+
governor = { version = "0.6.3", features = [
38+
"jitter",
39+
"quanta",
40+
"std",
41+
], default-features = false }
3542
firestore = "0.41.0"
3643
futures-locks = "0.7.1"
3744
juniper_axum = { version = "0.1.0", features = ["subscriptions"] }
@@ -40,18 +47,14 @@ axum = { version = "0.7.5", features = [
4047
"http2",
4148
], default-features = false }
4249
axum-server = { version = "0.6.0", features = ["tls-rustls"] }
43-
tokio-scoped = "0.2.0"
4450
tower-http = { version = "0.5.2", features = ["compression-full"] }
4551
juniper_graphql_ws = "0.4.0"
4652
pretty_env_logger = "0.5.0"
4753
log = { version = "0.4.21" }
4854

4955
[dev-dependencies]
50-
opentelemetry = "0.22.0"
51-
task-local-extensions = "0.1.4"
5256
tracing = "0.1.40"
53-
tracing-opentelemetry = "0.23.0"
54-
tracing-subscriber = "0.3.18"
57+
tokio-scoped = "0.2.0"
5558

5659
[target.'cfg(all(target_env = "musl", target_pointer_width = "64"))'.dependencies.mimalloc]
5760
version = "0.1"

Features.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
axum = ["http1", "http2"]
2+
axum-server = [
3+
"tls-rustls",
4+
"rustls",
5+
"arc-swap",
6+
"tokio-rustls",
7+
"rustls-pemfile",
8+
]

src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
// #![allow(dead_code)] // TODO: remove this line once done with crate
22
// #![allow(unused_imports)] // TODO: remove this line once done with crate
3+
#![deny(unused_crate_dependencies)]
34
#![warn(clippy::all, clippy::pedantic, clippy::nursery)]
45

6+
use axum_server as _;
7+
58
mod cache;
69
mod error;
710
mod fetch;

stress.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function () {
1111
}
1212
}
1313
}`
14-
http.post("http://localhost:3000/graphql", JSON.stringify({ query: q1 }))
14+
http.post("https://graphql.ucsc.menu/graphql", JSON.stringify({ query: q1 }))
1515
// sleep(0.1)
1616
const q2 = `
1717
query Request {
@@ -33,6 +33,5 @@ export default function () {
3333
}
3434
}`
3535
// sleep(1)
36-
http.post("http://localhost:3000/graphql", JSON.stringify({ query: q2 }))
37-
http.put("http://localhost:3000/request_refresh")
36+
http.post("https://graphql.ucsc.menu/graphql", JSON.stringify({ query: q2 }))
3837
}

0 commit comments

Comments
 (0)