chore: bye tokio
lets see how long we last without tokio
This commit is contained in:
parent
8ac952c460
commit
70816e3a89
5 changed files with 532 additions and 212 deletions
725
Cargo.lock
generated
725
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
12
Cargo.toml
12
Cargo.toml
|
@ -15,16 +15,14 @@ name = "scct"
|
||||||
path = "main.rs"
|
path = "main.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tracing-subscriber = "0.3.18"
|
tracing = "0.1"
|
||||||
clap = { version = "4.5.7", features = ["derive"] }
|
tracing-subscriber = "0.3"
|
||||||
|
clap = { version = "4.5", features = ["derive"] }
|
||||||
# TODO can we move tokio and sea-orm inside individual crates?
|
async-std = { version = "1.12", features = ["attributes"] }
|
||||||
tokio = { version = "1.38.0", features = ["full"] }
|
sea-orm = { version = "0.12", features = ["runtime-async-std-native-tls", "sqlx-mysql", "sqlx-sqlite", "sqlx-postgres"] }
|
||||||
sea-orm = { version = "0.12.15", features = ["runtime-tokio-rustls", "sqlx-mysql", "sqlx-sqlite", "sqlx-postgres"] }
|
|
||||||
|
|
||||||
scct-migrations = { path = "migrations", optional = true }
|
scct-migrations = { path = "migrations", optional = true }
|
||||||
scct-server = { path = "server", optional = true }
|
scct-server = { path = "server", optional = true }
|
||||||
tracing = "0.1.40"
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["server", "migrations"]
|
default = ["server", "migrations"]
|
||||||
|
|
2
main.rs
2
main.rs
|
@ -30,7 +30,7 @@ enum Command {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::main]
|
#[async_std::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
let args = Args::parse();
|
let args = Args::parse();
|
||||||
|
|
||||||
|
|
|
@ -6,4 +6,4 @@ edition = "2021"
|
||||||
[lib]
|
[lib]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
sea-orm = { version = "0.12.15", features = ["runtime-tokio-rustls", "sqlx-mysql", "sqlx-sqlite", "sqlx-postgres"] }
|
sea-orm = "0.12"
|
||||||
|
|
|
@ -6,5 +6,4 @@ edition = "2021"
|
||||||
[lib]
|
[lib]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
sea-orm = { version = "0.12.15", features = ["runtime-tokio-rustls", "sqlx-mysql", "sqlx-sqlite", "sqlx-postgres"] }
|
tracing = "0.1"
|
||||||
tracing = "0.1.40"
|
|
||||||
|
|
Loading…
Reference in a new issue