anvilsign in

collin/anvil · 30efd74d

Bump toasty 0.7 -> 0.10 and rusqlite 0.39 -> 0.40.2

Collin Richards · 2026-08-25 05:18 UTC · 30efd74dd21aab2ffb51d6f626a5a7c9e1499123 · parent d230eb4f · browse files

modifiedCargo.lock+258 −24
⋯ 493 unchanged lines
494494
495495 [[package]]
496496 name = "bit-set"
497-version = "0.10.0"
497+version = "0.11.1"
498498 source = "registry+https://github.com/rust-lang/crates.io-index"
499-checksum = "09ec2f926cc3060f09db9ebc5b52823d85268d24bb917e472c0c4bea35780a7d"
499+checksum = "56d87354e4229f54a44f7bf2435906a4656dba36026ab6eaca629a2c436a691c"
500500 dependencies = [
501501 "bit-vec",
502+ "serde",
502503 ]
503504
504505 [[package]]
505506 name = "bit-vec"
506-version = "0.9.1"
507+version = "0.10.1"
507508 source = "registry+https://github.com/rust-lang/crates.io-index"
508-checksum = "b71798fca2c1fe1086445a7258a4bc81e6e49dcd24c8d0dd9a1e57395b603f51"
509+checksum = "5727b15fa97d4f4fee0a3b7c3d550ed0269f54329207b86388de918604e31269"
509510 dependencies = [
511+ "borsh",
510512 "serde",
511513 ]
512514
⋯ 109 unchanged lines
622624 ]
623625
624626 [[package]]
627+name = "borrow-or-share"
628+version = "0.2.4"
629+source = "registry+https://github.com/rust-lang/crates.io-index"
630+checksum = "dc0b364ead1874514c8c2855ab558056ebfeb775653e7ae45ff72f28f8f3166c"
631+
632+[[package]]
633+name = "borsh"
634+version = "1.8.0"
635+source = "registry+https://github.com/rust-lang/crates.io-index"
636+checksum = "a88b7ea17d208c4193f2c1e6de3c35fe71f98c96982d5ced308bdcc749ff6e1f"
637+dependencies = [
638+ "borsh-derive",
639+ "bytes",
640+ "cfg_aliases",
641+]
642+
643+[[package]]
644+name = "borsh-derive"
645+version = "1.8.0"
646+source = "registry+https://github.com/rust-lang/crates.io-index"
647+checksum = "d8f347189c62a579b8cd5f80714efa178f52e461dc2e6d701d264f5ff22e566c"
648+dependencies = [
649+ "once_cell",
650+ "proc-macro-crate",
651+ "proc-macro2",
652+ "quote",
653+ "syn 2.0.119",
654+]
655+
656+[[package]]
625657 name = "bstr"
626658 version = "1.13.1"
627659 source = "registry+https://github.com/rust-lang/crates.io-index"
⋯ 250 unchanged lines
878910 ]
879911
880912 [[package]]
913+name = "crossbeam-queue"
914+version = "0.3.13"
915+source = "registry+https://github.com/rust-lang/crates.io-index"
916+checksum = "803d13fb3b09d88be9f4dbc29062c66b19bf7170867ceb746d2a8689bf6c7a26"
917+dependencies = [
918+ "crossbeam-utils",
919+]
920+
921+[[package]]
881922 name = "crossbeam-utils"
882923 version = "0.8.22"
883924 source = "registry+https://github.com/rust-lang/crates.io-index"
⋯ 252 unchanged lines
11361177 ]
11371178
11381179 [[package]]
1180+name = "dotenvy"
1181+version = "0.15.7"
1182+source = "registry+https://github.com/rust-lang/crates.io-index"
1183+checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b"
1184+
1185+[[package]]
11391186 name = "dunce"
11401187 version = "1.0.5"
11411188 source = "registry+https://github.com/rust-lang/crates.io-index"
⋯ 47 unchanged lines
11891236 ]
11901237
11911238 [[package]]
1239+name = "either"
1240+version = "1.18.0"
1241+source = "registry+https://github.com/rust-lang/crates.io-index"
1242+checksum = "252afb9ae5eaa683babdc6a068b3f5726eb19e05070c731f9b2a23a7c3e8ed34"
1243+
1244+[[package]]
11921245 name = "elliptic-curve"
11931246 version = "0.14.1"
11941247 source = "registry+https://github.com/rust-lang/crates.io-index"
⋯ 53 unchanged lines
12481301 ]
12491302
12501303 [[package]]
1304+name = "event-listener"
1305+version = "5.4.2"
1306+source = "registry+https://github.com/rust-lang/crates.io-index"
1307+checksum = "5a23add41df1562121a9393cb065eab5146a1242410f23a644851e90cfd669d2"
1308+dependencies = [
1309+ "parking",
1310+ "pin-project-lite",
1311+]
1312+
1313+[[package]]
12511314 name = "fallible-iterator"
12521315 version = "0.3.0"
12531316 source = "registry+https://github.com/rust-lang/crates.io-index"
⋯ 64 unchanged lines
13181381 ]
13191382
13201383 [[package]]
1384+name = "fluent-uri"
1385+version = "0.4.1"
1386+source = "registry+https://github.com/rust-lang/crates.io-index"
1387+checksum = "bc74ac4d8359ae70623506d512209619e5cf8f347124910440dbc221714b328e"
1388+dependencies = [
1389+ "borrow-or-share",
1390+ "ref-cast",
1391+ "serde",
1392+]
1393+
1394+[[package]]
13211395 name = "fnv"
13221396 version = "1.0.7"
13231397 source = "registry+https://github.com/rust-lang/crates.io-index"
⋯ 63 unchanged lines
13871461 ]
13881462
13891463 [[package]]
1464+name = "futures-intrusive"
1465+version = "0.5.0"
1466+source = "registry+https://github.com/rust-lang/crates.io-index"
1467+checksum = "1d930c203dd0b6ff06e0201a4a2fe9149b43c684fd4420555b26d21b1a02956f"
1468+dependencies = [
1469+ "futures-core",
1470+ "lock_api",
1471+ "parking_lot",
1472+]
1473+
1474+[[package]]
13901475 name = "futures-io"
13911476 version = "0.3.34"
13921477 source = "registry+https://github.com/rust-lang/crates.io-index"
⋯ 911 unchanged lines
23042389 ]
23052390
23062391 [[package]]
2392+name = "hashlink"
2393+version = "0.12.1"
2394+source = "registry+https://github.com/rust-lang/crates.io-index"
2395+checksum = "32069d97bb81e38fa67eab65e3393bf804bb85969f2bc06bf13f64aef5aba248"
2396+dependencies = [
2397+ "hashbrown 0.17.1",
2398+]
2399+
2400+[[package]]
23072401 name = "heapless"
23082402 version = "0.8.0"
23092403 source = "registry+https://github.com/rust-lang/crates.io-index"
⋯ 600 unchanged lines
29103004
29113005 [[package]]
29123006 name = "libsqlite3-sys"
2913-version = "0.37.0"
3007+version = "0.38.2"
29143008 source = "registry+https://github.com/rust-lang/crates.io-index"
2915-checksum = "b1f111c8c41e7c61a49cd34e44c7619462967221a6443b0ec299e0ac30cfb9b1"
3009+checksum = "f1d20bef17f513b9b3004532233187769cd072d790971f4e4da0e346eb6401e8"
29163010 dependencies = [
29173011 "cc",
29183012 "pkg-config",
⋯ 375 unchanged lines
32943388 ]
32953389
32963390 [[package]]
3391+name = "parking"
3392+version = "2.2.1"
3393+source = "registry+https://github.com/rust-lang/crates.io-index"
3394+checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"
3395+
3396+[[package]]
32973397 name = "parking_lot"
32983398 version = "0.12.5"
32993399 source = "registry+https://github.com/rust-lang/crates.io-index"
⋯ 265 unchanged lines
35653665 ]
35663666
35673667 [[package]]
3668+name = "proc-macro-crate"
3669+version = "3.5.0"
3670+source = "registry+https://github.com/rust-lang/crates.io-index"
3671+checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f"
3672+dependencies = [
3673+ "toml_edit",
3674+]
3675+
3676+[[package]]
35683677 name = "proc-macro2"
35693678 version = "1.0.107"
35703679 source = "registry+https://github.com/rust-lang/crates.io-index"
⋯ 156 unchanged lines
37273836 ]
37283837
37293838 [[package]]
3839+name = "ref-cast"
3840+version = "1.0.27"
3841+source = "registry+https://github.com/rust-lang/crates.io-index"
3842+checksum = "7e440fb4e4b4147295338efb76001ab9e4efc0e5839df2c47fc5ac2381d365c3"
3843+dependencies = [
3844+ "ref-cast-impl",
3845+]
3846+
3847+[[package]]
3848+name = "ref-cast-impl"
3849+version = "1.0.27"
3850+source = "registry+https://github.com/rust-lang/crates.io-index"
3851+checksum = "92ecd8964f8453721699a1ed72037b0db49ce2f5a5138486ee89bed6f67cdf3a"
3852+dependencies = [
3853+ "proc-macro2",
3854+ "quote",
3855+ "syn 3.0.4",
3856+]
3857+
3858+[[package]]
37303859 name = "regex"
37313860 version = "1.13.1"
37323861 source = "registry+https://github.com/rust-lang/crates.io-index"
⋯ 155 unchanged lines
38884017
38894018 [[package]]
38904019 name = "rusqlite"
3891-version = "0.39.0"
4020+version = "0.40.2"
38924021 source = "registry+https://github.com/rust-lang/crates.io-index"
3893-checksum = "a0d2b0146dd9661bf67bb107c0bb2a55064d556eeb3fc314151b957f313bcd4e"
4022+checksum = "23f2a97da3e3873c73cb2a2e71b35c40ff95e0b1eefa8d72d8499a6928c3b5b3"
38944023 dependencies = [
38954024 "bitflags 2.13.1",
38964025 "fallible-iterator",
38974026 "fallible-streaming-iterator",
3898- "hashlink",
4027+ "hashlink 0.12.1",
38994028 "libsqlite3-sys",
39004029 "smallvec",
39014030 "sqlite-wasm-rs",
⋯ 631 unchanged lines
45334662 ]
45344663
45354664 [[package]]
4665+name = "sqlx-core"
4666+version = "0.9.0"
4667+source = "registry+https://github.com/rust-lang/crates.io-index"
4668+checksum = "05b44e85bf579a8eeb4ceaa77a3a523baf2bf0e9bac7e40f405d537b5d2d5ccb"
4669+dependencies = [
4670+ "base64 0.22.1",
4671+ "bytes",
4672+ "cfg-if",
4673+ "crossbeam-queue",
4674+ "either",
4675+ "event-listener",
4676+ "futures-core",
4677+ "futures-intrusive",
4678+ "futures-io",
4679+ "futures-util",
4680+ "hashbrown 0.16.1",
4681+ "hashlink 0.11.1",
4682+ "indexmap",
4683+ "log",
4684+ "memchr",
4685+ "percent-encoding",
4686+ "rustls",
4687+ "smallvec",
4688+ "thiserror",
4689+ "time",
4690+ "tokio",
4691+ "tokio-stream",
4692+ "tracing",
4693+ "url",
4694+ "webpki-roots",
4695+]
4696+
4697+[[package]]
4698+name = "sqlx-mysql"
4699+version = "0.9.0"
4700+source = "registry+https://github.com/rust-lang/crates.io-index"
4701+checksum = "90b8020fe17c5f2c245bfa2505d7ef59c5604839527c740266ad2214acebea27"
4702+dependencies = [
4703+ "bitflags 2.13.1",
4704+ "byteorder",
4705+ "bytes",
4706+ "digest 0.11.3",
4707+ "dotenvy",
4708+ "either",
4709+ "futures-core",
4710+ "futures-util",
4711+ "generic-array 0.14.7",
4712+ "log",
4713+ "percent-encoding",
4714+ "rand 0.10.2",
4715+ "rsa 0.10.0-rc.18",
4716+ "sha1 0.11.0",
4717+ "sha2 0.11.0",
4718+ "sqlx-core",
4719+ "thiserror",
4720+ "time",
4721+ "tracing",
4722+]
4723+
4724+[[package]]
45364725 name = "ssh-cipher"
45374726 version = "0.3.0"
45384727 source = "registry+https://github.com/rust-lang/crates.io-index"
⋯ 249 unchanged lines
47884977
47894978 [[package]]
47904979 name = "toasty"
4791-version = "0.7.0"
4980+version = "0.10.0"
47924981 source = "registry+https://github.com/rust-lang/crates.io-index"
4793-checksum = "17bd9e42ba3c1aa195101d150ba281f3d426439e0d2b5991b4c7c6290204348f"
4982+checksum = "c526dee282a42d5a2e61b189b8767181586a74a3d6494ef9076fc8d8a1daa7b9"
47944983 dependencies = [
47954984 "async-trait",
47964985 "bit-set",
⋯ 4 unchanged lines
48014990 "indexmap",
48024991 "inventory",
48034992 "toasty-core",
4993+ "toasty-driver-mysql",
48044994 "toasty-driver-sqlite",
48054995 "toasty-macros",
48064996 "tokio",
48074997 "tokio-stream",
48084998 "tracing",
4809- "url",
48104999 "uuid",
48115000 ]
48125001
48135002 [[package]]
48145003 name = "toasty-core"
4815-version = "0.7.0"
5004+version = "0.10.0"
48165005 source = "registry+https://github.com/rust-lang/crates.io-index"
4817-checksum = "7f06ecf2a9091a814d7cfa7edc39c24a791460431f55a0ee19c1b2cb4a15b98c"
5006+checksum = "6ce096128c41a7b5a86b0a3570a8ffa866de889a081281956bb73c6a7ba0b88a"
48185007 dependencies = [
48195008 "async-trait",
48205009 "bit-set",
5010+ "fluent-uri",
5011+ "form_urlencoded",
48215012 "hashbrown 0.17.1",
48225013 "heck",
48235014 "indexmap",
4824- "pluralizer",
5015+ "percent-encoding",
5016+ "serde",
48255017 "tokio-stream",
5018+ "toml",
5019+ "tracing",
48265020 "uuid",
48275021 ]
48285022
48295023 [[package]]
5024+name = "toasty-driver-mysql"
5025+version = "0.10.0"
5026+source = "registry+https://github.com/rust-lang/crates.io-index"
5027+checksum = "6a7a281dccebd99defe5e84ab56e8871cf22296ac3bcca8d333e427697c8b7ea"
5028+dependencies = [
5029+ "async-trait",
5030+ "sqlx-core",
5031+ "sqlx-mysql",
5032+ "time",
5033+ "toasty-core",
5034+ "toasty-sql",
5035+ "tokio",
5036+ "tracing",
5037+ "uuid",
5038+]
5039+
5040+[[package]]
48305041 name = "toasty-driver-sqlite"
4831-version = "0.7.0"
5042+version = "0.10.0"
48325043 source = "registry+https://github.com/rust-lang/crates.io-index"
4833-checksum = "fd09e84ccfbd608949bc501c30e1c62334ddf07eb1c30976b2c470dfd19aef3e"
5044+checksum = "8dc7c7bdc6db7b857528680ef3be77f3a156cd187e600e2cab1e8a425d55edf4"
48345045 dependencies = [
48355046 "async-trait",
48365047 "rusqlite",
48375048 "serde",
4838- "serde_json",
48395049 "toasty-core",
48405050 "toasty-sql",
48415051 "tracing",
4842- "url",
48435052 "uuid",
48445053 ]
48455054
48465055 [[package]]
48475056 name = "toasty-macros"
4848-version = "0.7.0"
5057+version = "0.10.0"
48495058 source = "registry+https://github.com/rust-lang/crates.io-index"
4850-checksum = "1d27469a13c35b53f3080ca24e4585f5cd2d1ba4dd71432125aa376759439131"
5059+checksum = "a46f85a2a258f59e32789b2de7a5b171e4c68835311dcec9ca71ef6e7901714d"
48515060 dependencies = [
48525061 "hashbrown 0.17.1",
48535062 "heck",
48545063 "pluralizer",
48555064 "proc-macro2",
48565065 "quote",
4857- "syn 2.0.119",
5066+ "syn 3.0.4",
48585067 "toasty-core",
48595068 ]
48605069
48615070 [[package]]
48625071 name = "toasty-sql"
4863-version = "0.7.0"
5072+version = "0.10.0"
48645073 source = "registry+https://github.com/rust-lang/crates.io-index"
4865-checksum = "2848a892303d9d63485a8f16d9c1b692b145c09940d2cdeefaf0f837e1bf6a49"
5074+checksum = "7b44b08035efcf8e087c6377ae18942066b1f8e976cd3821571e45463ecf3d6f"
48665075 dependencies = [
5076+ "serde",
48675077 "serde_json",
48685078 "toasty-core",
48695079 ]
⋯ 98 unchanged lines
49685178 ]
49695179
49705180 [[package]]
5181+name = "toml_edit"
5182+version = "0.25.13+spec-1.1.0"
5183+source = "registry+https://github.com/rust-lang/crates.io-index"
5184+checksum = "6975367e4d2ef766d86af01ffad14b622fecc8d4357a998fbc4deb6e9bacaf9b"
5185+dependencies = [
5186+ "indexmap",
5187+ "toml_datetime",
5188+ "toml_parser",
5189+ "winnow",
5190+]
5191+
5192+[[package]]
49715193 name = "toml_parser"
49725194 version = "1.1.3+spec-1.1.0"
49735195 source = "registry+https://github.com/rust-lang/crates.io-index"
⋯ 397 unchanged lines
53715593 ]
53725594
53735595 [[package]]
5596+name = "webpki-roots"
5597+version = "1.0.9"
5598+source = "registry+https://github.com/rust-lang/crates.io-index"
5599+checksum = "7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a"
5600+dependencies = [
5601+ "rustls-pki-types",
5602+]
5603+
5604+[[package]]
53745605 name = "winapi"
53755606 version = "0.3.9"
53765607 source = "registry+https://github.com/rust-lang/crates.io-index"
⋯ 230 unchanged lines
56075838 version = "1.0.4"
56085839 source = "registry+https://github.com/rust-lang/crates.io-index"
56095840 checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81"
5841+dependencies = [
5842+ "memchr",
5843+]
56105844
56115845 [[package]]
56125846 name = "wit-bindgen"
⋯ 154 unchanged lines
modifiedCargo.toml+2 −2
⋯ 92 unchanged lines
9393 reqwest = { version = "0.13.4", default-features = false, features = ["form", "json", "rustls-no-provider"] }
9494 ring = { version = "0.17" }
9595 rpassword = { version = "7" }
96-rusqlite = { version = "0.39" }
96+rusqlite = { version = "0.40.2" }
9797 russh = { version = "0.63.1", default-features = false, features = ["flate2", "ring", "rsa"] }
9898 rustls = { version = "0.23", default-features = false, features = ["ring", "logging", "std", "tls12"] }
9999 serde = { version = "1", features = ["derive"] }
⋯ 6 unchanged lines
106106 tar = { version = "0.4" }
107107 thiserror = { version = "2" }
108108 time = { version = "0.3", features = ["serde", "formatting"] }
109-toasty = { version = "0.7", features = ["sqlite"] }
109+toasty = { version = "0.10.0", features = ["sqlite"] }
110110 tokio = { version = "1", features = ["full"] }
111111 tokio-util = { version = "0.7", features = ["io"] }
112112 toml = { version = "1.1.4" }
⋯ 4 unchanged lines
modifiedcrates/anvil-core/src/db.rs+5 −5
⋯ 24 unchanged lines
2525 /// Open (creating if necessary) the SQLite database at `path`, creating the
2626 /// schema on first run.
2727 ///
28-/// Note: Toasty 0.7's `push_schema` emits plain `CREATE TABLE` (no
28+/// Note: Toasty's `push_schema` emits plain `CREATE TABLE` (no
2929 /// `IF NOT EXISTS`) for model tables, so it is *not* idempotent — calling it on
30-/// an existing database errors. We therefore only push the schema when the
31-/// database file does not yet exist. Skipping it on an existing database issues
32-/// no DDL, so data is never touched. Schema evolution will move to Toasty's
33-/// migration system when models start changing.
30+/// an existing database errors (still true as of 0.10). We therefore only push
31+/// the schema when the database file does not yet exist. Skipping it on an
32+/// existing database issues no DDL, so data is never touched. Schema evolution
33+/// will move to Toasty's migration system when models start changing.
3434 pub async fn connect(path: impl AsRef<Path>) -> Result<toasty::Db> {
3535 let path = path.as_ref();
3636 let fresh = !path.exists();
⋯ 366 unchanged lines