Migration CLI: run on tokio, drop async-std

423fa38 · Gabriel Morell · 2026-10-23 05:42

5 files +10 -103
Message
{commit_body(@commit)}

Files changed

modified Cargo.lock
+7 −101
@@ -286,27 +286,6 @@ dependencies = [
286 286 "syn 2.0.106",
287 287 ]
288 288
289 −[[package]]
290 −name = "async-attributes"
291 −version = "1.1.2"
292 −source = "registry+https://github.com/rust-lang/crates.io-index"
293 −checksum = "a3203e79f4dd9bdda415ed03cf14dae5a2bf775c683a00f94e9cd1faf0f596e5"
294 −dependencies = [
295 − "quote",
296 − "syn 1.0.109",
297 −]
298 −
299 −[[package]]
300 −name = "async-channel"
301 −version = "1.9.0"
302 −source = "registry+https://github.com/rust-lang/crates.io-index"
303 −checksum = "81953c529336010edd6d8e358f886d9581267795c61b19475b71314bffa46d35"
304 −dependencies = [
305 − "concurrent-queue",
306 − "event-listener 2.5.3",
307 − "futures-core",
308 −]
309 −
310 289 [[package]]
311 290 name = "async-channel"
312 291 version = "2.5.0"
@@ -333,29 +312,13 @@ dependencies = [
333 312 "slab",
334 313 ]
335 314
336 −[[package]]
337 −name = "async-global-executor"
338 −version = "2.4.1"
339 −source = "registry+https://github.com/rust-lang/crates.io-index"
340 −checksum = "05b1b633a2115cd122d73b955eadd9916c18c8f510ec9cd1686404c60ad1c29c"
341 −dependencies = [
342 − "async-channel 2.5.0",
343 − "async-executor",
344 − "async-io 2.6.0",
345 − "async-lock 3.4.1",
346 − "blocking",
347 − "futures-lite 2.6.1",
348 − "once_cell",
349 − "tokio",
350 −]
351 −
352 315 [[package]]
353 316 name = "async-global-executor"
354 317 version = "3.1.0"
355 318 source = "registry+https://github.com/rust-lang/crates.io-index"
356 319 checksum = "13f937e26114b93193065fd44f507aa2e9169ad0cdabbb996920b1fe1ddea7ba"
357 320 dependencies = [
358 − "async-channel 2.5.0",
321 + "async-channel",
359 322 "async-executor",
360 323 "async-io 2.6.0",
361 324 "async-lock 3.4.1",
@@ -369,7 +332,7 @@ version = "2.2.0"
369 332 source = "registry+https://github.com/rust-lang/crates.io-index"
370 333 checksum = "9af57045d58eeb1f7060e7025a1631cbc6399e0a1d10ad6735b3d0ea7f8346ce"
371 334 dependencies = [
372 − "async-global-executor 3.1.0",
335 + "async-global-executor",
373 336 "async-trait",
374 337 "executor-trait",
375 338 ]
@@ -444,33 +407,6 @@ dependencies = [
444 407 "reactor-trait",
445 408 ]
446 409
447 −[[package]]
448 −name = "async-std"
449 −version = "1.13.2"
450 −source = "registry+https://github.com/rust-lang/crates.io-index"
451 −checksum = "2c8e079a4ab67ae52b7403632e4618815d6db36d2a010cfe41b02c1b1578f93b"
452 −dependencies = [
453 − "async-attributes",
454 − "async-channel 1.9.0",
455 − "async-global-executor 2.4.1",
456 − "async-io 2.6.0",
457 − "async-lock 3.4.1",
458 − "crossbeam-utils",
459 − "futures-channel",
460 − "futures-core",
461 − "futures-io",
462 − "futures-lite 2.6.1",
463 − "gloo-timers",
464 − "kv-log-macro",
465 − "log",
466 − "memchr",
467 − "once_cell",
468 − "pin-project-lite",
469 − "pin-utils",
470 − "slab",
471 − "wasm-bindgen-futures",
472 −]
473 −
474 410 [[package]]
475 411 name = "async-stream"
476 412 version = "0.3.6"
@@ -801,7 +737,7 @@ version = "1.6.2"
801 737 source = "registry+https://github.com/rust-lang/crates.io-index"
802 738 checksum = "e83f8d02be6967315521be875afa792a316e28d57b5a2d401897e2a7921b7f21"
803 739 dependencies = [
804 − "async-channel 2.5.0",
740 + "async-channel",
805 741 "async-task",
806 742 "futures-io",
807 743 "futures-lite 2.6.1",
@@ -1424,7 +1360,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
1424 1360 checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
1425 1361 dependencies = [
1426 1362 "libc",
1427 − "windows-sys 0.61.1",
1363 + "windows-sys 0.52.0",
1428 1364 ]
1429 1365
1430 1366 [[package]]
@@ -1786,18 +1722,6 @@ version = "0.3.3"
1786 1722 source = "registry+https://github.com/rust-lang/crates.io-index"
1787 1723 checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
1788 1724
1789 −[[package]]
1790 −name = "gloo-timers"
1791 −version = "0.3.0"
1792 −source = "registry+https://github.com/rust-lang/crates.io-index"
1793 −checksum = "bbb143cf96099802033e0d4f4963b19fd2e0b728bcf076cd9cf7f6634f092994"
1794 −dependencies = [
1795 − "futures-channel",
1796 − "futures-core",
1797 − "js-sys",
1798 − "wasm-bindgen",
1799 −]
1800 −
1801 1725 [[package]]
1802 1726 name = "half"
1803 1727 version = "2.7.1"
@@ -2340,15 +2264,6 @@ dependencies = [
2340 2264 "wasm-bindgen",
2341 2265 ]
2342 2266
2343 −[[package]]
2344 −name = "kv-log-macro"
2345 −version = "1.0.7"
2346 −source = "registry+https://github.com/rust-lang/crates.io-index"
2347 −checksum = "0de8b303297635ad57c9f5059fd9cee7a47f8e8daa09df0fcd07dd39fb22977f"
2348 −dependencies = [
2349 − "log",
2350 −]
2351 −
2352 2267 [[package]]
2353 2268 name = "lapin"
2354 2269 version = "2.5.5"
@@ -2489,9 +2404,6 @@ name = "log"
2489 2404 version = "0.4.28"
2490 2405 source = "registry+https://github.com/rust-lang/crates.io-index"
2491 2406 checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432"
2492 −dependencies = [
2493 − "value-bag",
2494 −]
2495 2407
2496 2408 [[package]]
2497 2409 name = "loop9"
@@ -2624,8 +2536,8 @@ dependencies = [
2624 2536 name = "migration"
2625 2537 version = "0.1.0"
2626 2538 dependencies = [
2627 − "async-std",
2628 2539 "sea-orm-migration",
2540 + "tokio",
2629 2541 ]
2630 2542
2631 2543 [[package]]
@@ -3999,7 +3911,7 @@ dependencies = [
3999 3911 "errno",
4000 3912 "libc",
4001 3913 "linux-raw-sys 0.4.15",
4002 − "windows-sys 0.59.0",
3914 + "windows-sys 0.52.0",
4003 3915 ]
4004 3916
4005 3917 [[package]]
@@ -4012,7 +3924,7 @@ dependencies = [
4012 3924 "errno",
4013 3925 "libc",
4014 3926 "linux-raw-sys 0.11.0",
4015 − "windows-sys 0.61.1",
3927 + "windows-sys 0.52.0",
4016 3928 ]
4017 3929
4018 3930 [[package]]
@@ -5288,12 +5200,6 @@ version = "0.1.1"
5288 5200 source = "registry+https://github.com/rust-lang/crates.io-index"
5289 5201 checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65"
5290 5202
5291 −[[package]]
5292 −name = "value-bag"
5293 −version = "1.11.1"
5294 −source = "registry+https://github.com/rust-lang/crates.io-index"
5295 −checksum = "943ce29a8a743eb10d6082545d861b24f9d1b160b7d741e0f2cdf726bec909c5"
5296 −
5297 5203 [[package]]
5298 5204 name = "vcpkg"
5299 5205 version = "0.2.15"
modified migration/Cargo.toml
+2 −1
@@ -9,7 +9,8 @@ name = "migration"
9 9 path = "src/lib.rs"
10 10
11 11 [dependencies]
12 −async-std = { version = "1", features = ["attributes", "tokio1"] }
12 +# Runs the migration CLI (src/main.rs); sea-orm already runs on tokio.
13 +tokio = { version = "1.47.1", features = ["macros", "rt-multi-thread"] }
13 14
14 15 [dependencies.sea-orm-migration]
15 16 version = "1.1.1"
modified migration/src/main.rs
+1 −1
@@ -1,6 +1,6 @@
1 1 use sea_orm_migration::prelude::*;
2 2
3 −#[async_std::main]
3 +#[tokio::main]
4 4 async fn main() {
5 5 cli::run_cli(migration::Migrator).await;
6 6 }

Parents: 03b0298