chore: bye tokio

lets see how long we last without tokio
This commit is contained in:
əlemi 2024-06-21 20:58:35 +02:00
parent 8ac952c460
commit 70816e3a89
Signed by: alemi
GPG key ID: A4895B84D311642C
5 changed files with 532 additions and 212 deletions

725
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -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"]

View file

@ -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();

View file

@ -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"

View file

@ -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"