From 22a6e8c58374823177188396720cb783182f01ec Mon Sep 17 00:00:00 2001 From: danielshih Date: Wed, 2 Dec 2026 03:51:21 +0000 Subject: [PATCH] chore: update dependencies and improve SSL connection tests - Updated `bytes` from 1.12.1 to 1.12.2 and `smallvec` from 1.16.5 to 1.16.6 in Cargo.lock files for fuzz and load-tests. - Updated `pq-sys` from 0.7.8 to 0.7.10 in load-tests Cargo.lock. - Added a new test `test_ssl_verify_full_checks_host_not_hostaddr` to verify SSL hostname checks against `host` instead of `hostaddr`. - Enhanced connection handling in `native/connection.rs` to warn when reading from a different runtime than the one that created the connection. - Modified `native/conninfo.rs` to clarify the roles of `host` and `hostaddr` in connection strings. - Updated connection logic in `native/startup.rs` to utilize the new `address` and `tls_name` methods from `ConnInfo`. - Improved LSN tests in `lsn.rs` to ensure correct visibility of written data across threads. - Updated documentation for upgrading from 0.10 to 0.11 to reflect changes in error handling, connection string parsing, and runtime behavior. --- Cargo.toml | 4 +- README.md | 8 +- docs/upgrading/0.10-to-0.11.md | 109 +++++++++ examples/arbitrary-fuzzing/Cargo.lock | 224 +----------------- examples/basic-streaming/Cargo.lock | 115 +-------- examples/binary-column-access/Cargo.lock | 217 +---------------- examples/binary-serde/Cargo.lock | 224 +----------------- examples/derive-router/Cargo.lock | 219 +---------------- examples/initial-snapshot/Cargo.lock | 115 +-------- examples/pg-basebackup/Cargo.lock | 115 +-------- examples/polling/Cargo.lock | 115 +-------- examples/rate-limited-streaming/Cargo.lock | 115 +-------- examples/raw-xlogdata/Cargo.lock | 115 +-------- examples/safe-transaction-consumer/Cargo.lock | 115 +-------- examples/stream-metrics/Cargo.lock | 219 +---------------- examples/tokio-spawn-streaming/Cargo.lock | 115 +-------- examples/typed-deserialization/Cargo.lock | 219 +---------------- fuzz/Cargo.lock | 8 +- integration-tests/ssl_connections.rs | 24 ++ load-tests/Cargo.lock | 12 +- src/connection/native/connection.rs | 68 +++++- src/connection/native/conninfo.rs | 83 +++++-- src/connection/native/startup.rs | 16 +- src/lsn.rs | 48 +++- src/stream.rs | 3 +- 25 files changed, 486 insertions(+), 2139 deletions(-) create mode 100644 docs/upgrading/0.10-to-0.11.md diff --git a/Cargo.toml b/Cargo.toml index c0e8b14..964ebfd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -103,7 +103,9 @@ rmp-serde = "1.3.1" tracing-subscriber = "0.3.23" # Model checking of `SharedLsnFeedback` (`RUSTFLAGS='--cfg loom'`); never built otherwise. -[target.'cfg(loom)'.dependencies] +# A dev-dependency, not a dependency: a target-specific dependency never compiles downstream but +# still lands in every consumer's Cargo.lock (loom, generator, tracing-subscriber, windows-*, ...). +[target.'cfg(loom)'.dev-dependencies] loom = "0.7.3" [lints.rust] diff --git a/README.md b/README.md index 539db07..3c489aa 100644 --- a/README.md +++ b/README.md @@ -156,8 +156,8 @@ struct User { /* fields as above */ } | Format | Crate | Transaction | Read across versions | Notes | |--------|-------|------------:|----------------------|-------| | JSON | `serde_json` | 1174 B (100%) | yes, bytes are unchanged | readable, any language; the one to store long-term | -| CBOR | `ciborium` | 933 B (79%) | no, see [Upgrading](#upgrading-from-09) | self-describing, writes field names | -| MessagePack | `rmp-serde` | 498 B (42%) | no, see [Upgrading](#upgrading-from-09) | `to_vec` writes fields as an array, `to_vec_named` keeps field names | +| CBOR | `ciborium` | 933 B (79%) | no, see [Upgrading](docs/upgrading/0.10-to-0.11.md#serde-formats) | self-describing, writes field names | +| MessagePack | `rmp-serde` | 498 B (42%) | no, see [Upgrading](docs/upgrading/0.10-to-0.11.md#serde-formats) | `to_vec` writes fields as an array, `to_vec_named` keeps field names | | postcard | `postcard` | 349 B (30%) | same version on both ends | smallest, `no_std` friendly, Rust to Rust | | bincode 2 | `bincode` | 361 B (31%) | same version on both ends | Rust to Rust; the crate is unmaintained, so prefer postcard in new code | @@ -446,6 +446,10 @@ The gap is OpenSSL's per-call bookkeeping, not crypto: with TLS, libpq spends ab - **The minimum supported Rust version is 1.88.** +## Upgrading + +Upgrade notes are in the [`docs/upgrading`](docs/upgrading) folder, one file per version step, named `-to-.md`. Before moving to a new version, read the file for each step between the version you run and the one you want; for example, [0.10 to 0.11](docs/upgrading/0.10-to-0.11.md). + ## Resources - [PostgreSQL Logical Replication Documentation](https://www.postgresql.org/docs/current/logical-replication.html) diff --git a/docs/upgrading/0.10-to-0.11.md b/docs/upgrading/0.10-to-0.11.md new file mode 100644 index 0000000..a80cd79 --- /dev/null +++ b/docs/upgrading/0.10-to-0.11.md @@ -0,0 +1,109 @@ +# Upgrading from 0.10 to 0.11 + +What changed since `v0.10.0` that can break a build or change what a running consumer sees. Additions that break nothing (stream metrics, Unix-domain sockets, `type_catalog`, ...) are in the [README](../../README.md). + +| Change | It affects you if | Section | +|--------|-------------------|---------| +| `ReplicationError` variants carry the server's `ErrorResponse` | you `match` on or build `Protocol`, `TransientConnection`, `PermanentConnection`, `Authentication` or `ReplicationSlot` | [Error type](#error-type) | +| Minimum Rust is 1.88 | you build with an older toolchain | [Minimum Rust version](#minimum-rust-version) | +| Non-JSON serde bytes changed | you store or ship `ChangeEvent`s as CBOR, MessagePack, postcard or bincode | [Serde formats](#serde-formats) | +| A `Relation` event for every re-announcement | you read `EventType::Relation` as "the schema changed" | [Relation events](#relation-events) | +| The connection runs on the runtime that created it | native backend, and you create a stream inside a current-thread runtime and read it from another | [Runtime affinity](#runtime-affinity) | +| `hostaddr`, `sslcert`, `sslkey`, `application_name` and `options` take effect | native backend, and your connection string sets any of them | [Connection strings](#connection-strings-native-backend) | + +## Error type + +`Protocol`, `TransientConnection`, `PermanentConnection`, `Authentication` and `ReplicationSlot` went from `(String)` to `(Box, Option>)`. The second field is the server's `ErrorResponse` when the error came from one. + +```rust,ignore +// 0.10 +Err(ReplicationError::PermanentConnection(msg)) => log(msg), +// 0.11 +Err(ReplicationError::PermanentConnection(msg, _)) => log(msg), +``` + +- Build errors with the constructors (`ReplicationError::protocol(msg)`, `permanent_connection(msg)`, ...), which are unchanged. +- `ReplicationError::server_error()` returns the `ServerError` (SQLSTATE, detail, hint, routine) and `sqlstate()` returns just the code. +- Which errors are retried did not change, with one rename: a server error `42704` while starting up is a `PermanentConnection`, no longer a `ReplicationSlot`. Both are permanent. + +## Minimum Rust version + +1.88, up from 1.87: the `sqlstate` crate behind `ReplicationError::sqlstate()` needs it. + +## Serde formats + +`ChangeEvent` and `ColumnValue` now write the same fields in a different layout in formats that are not human-readable. JSON bytes are unchanged. + +| Format | 0.10 bytes read by 0.11 | 0.11 bytes read by 0.10 | +|--------|------------------------|-------------------------| +| JSON | yes | yes | +| CBOR | no: `unknown variant`, expected `Text` or `Binary` | no: `unknown key "Text"` | +| MessagePack (`to_vec` and `to_vec_named`) | no, the same errors | no, the same errors | +| postcard | no | no | +| bincode 2 | no | no | + +0.10 could write postcard and bincode but never read them back, not even its own bytes (`deserialize_any` is not supported there). 0.11 reads what it writes. + +What to do: + +- Drain or re-encode anything stored or queued in one of those formats before the consumer that reads it moves to 0.11, and upgrade producer and consumer together. +- Keep events you store long-term as JSON. The other formats are for the same version on both ends; see [Shipping Events Between Processes](../../README.md#shipping-events-between-processes). + +## Relation events + +Since 0.11 every pgoutput `Relation` message becomes an `EventType::Relation` event, including one identical to the definition already cached. In 0.10 an identical one was dropped, so the event meant "first seen, or the columns changed". Now it means "pgoutput announced this relation again". + +PostgreSQL re-sends a `Relation` on the next change to a published table after any invalidation of that table's relcache entry, so you will now see one after: + +- `ANALYZE`, `VACUUM FULL` and autovacuum, `CREATE`/`DROP INDEX`, `REINDEX`; +- `GRANT`, `ALTER POLICY`, `ALTER TABLE ... OWNER`, `SET (fillfactor)`, `ALTER PUBLICATION ... SET (publish = ...)`; +- an automatic reconnect, and once per streamed top-level transaction (`StreamingMode::On`). + +This is deliberate ([PR #173](https://github.com/isdaniel/pg-walstream/pull/173)): a policy or grant change re-sends a definition identical to the cached one, so that repeat is the only point in the stream where a consumer can re-read its rules in commit order. A spurious re-read after maintenance costs one catalog query; a missed revoke keeps delivering rows the new policy hides. + +If you treated `Relation` as "the schema changed", compare it yourself: + +```rust,ignore +if let EventType::Relation { relation_id, columns, .. } = &event.event_type { + if seen.insert(*relation_id, columns.clone()).as_ref() != Some(columns) { + // first sight or a column change + } +} +``` + +`columns` carries names, type OIDs, modifiers and key flags. It does not tell a column dropped and re-added under the same name and type from an unchanged one. + +`event.lsn` of a `Relation` event is `0/0`: pgoutput sends these frames with no WAL position. That is not new, only how often it appears. `SharedLsnFeedback` and `EventStream::for_each_event` ignore a zero LSN, but a checkpoint you write yourself from `event.lsn` must skip `Relation` events or it will move backwards. + +## Runtime affinity + +On a current-thread runtime 0.10 gave the native backend's connection a worker thread of its own. 0.11 runs it on the runtime that created the stream, which measured about 30% less CPU per event there and one thread fewer. The cost is that the socket belongs to that runtime's reactor, and a current-thread runtime turns its reactor only while it is running. + +So a stream created inside `rt.block_on(..)` on a current-thread runtime and read from another runtime while `rt` is idle makes no progress. The first such read logs this warning: + +```text +this stream's connection was created on a current-thread runtime and is being read from another runtime (or outside one): it makes progress only while the creating runtime is running. ... +``` + +Either read the stream on the runtime that created it, or give the connection its own thread as 0.10 did: + +```rust,ignore +let config = ReplicationStreamConfig::builder("slot", "publication") + .with_dedicated_io_thread(true); +``` + +A multi-thread runtime drives its own reactor from its workers, so streams created on one can be read from anywhere. The libpq backend is not affected. + +## Connection strings (native backend) + +0.10 accepted and ignored several options the 0.11 native backend acts on. A string that connected before can fail now, with the same meaning it has in libpq. + +- **`hostaddr`** is where to connect and **`host`** is the name the server's certificate is checked against, as in libpq. In 0.10 whichever came last in the string was both. `hostaddr=127.0.0.1 host=localhost sslmode=verify-full` needs a certificate for `localhost`. A non-empty `hostaddr` wins over a `host` socket directory, and an empty `hostaddr=` is ignored. A URI host is percent-decoded (`postgresql://%2Ftmp/db`). +- **`sslcert` and `sslkey`** are now loaded and presented to a server that asks for a client certificate ([Client certificates](../../README.md#client-certificates)). This can fail where 0.10 connected: + - a pair that exists but cannot be used (an encrypted key, a key that does not match, an unreadable file) is an error under every `sslmode` except `disable`, `prefer` and `allow` included, even against a server that never asks for a certificate; + - a lone `sslcert=` is a `Config` error when the string is parsed, which is not retried; + - the other errors count as connection failures, so they are retried (five attempts, about 15 s) before they are returned; + - `sslmode=allow` tries TLS first here, so it reads the files where libpq, which tries plaintext first, would not. + + Remove the options, decrypt the key, or add `sslcertmode=disable` or `sslmode=disable` to keep the old behavior. +- **`application_name`, `fallback_application_name` and `options`** now reach the server's startup message ([Session Parameters](../../README.md#session-parameters)). A string that carried them for the libpq backend now behaves the same on the native one. diff --git a/examples/arbitrary-fuzzing/Cargo.lock b/examples/arbitrary-fuzzing/Cargo.lock index 58ffb55..c372aa0 100644 --- a/examples/arbitrary-fuzzing/Cargo.lock +++ b/examples/arbitrary-fuzzing/Cargo.lock @@ -2,15 +2,6 @@ # It is not intended for manual editing. version = 4 -[[package]] -name = "aho-corasick" -version = "1.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" -dependencies = [ - "memchr", -] - [[package]] name = "android_system_properties" version = "0.1.5" @@ -75,7 +66,7 @@ dependencies = [ "iana-time-zone", "num-traits", "serde", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -107,20 +98,6 @@ version = "0.3.34" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e" -[[package]] -name = "generator" -version = "0.8.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea6c6a73cd1aa4f4f00c02b109fa55d3a9d6ecc2fc4f53177b74ed6ee23b0c53" -dependencies = [ - "cc", - "libc", - "log", - "rustversion", - "windows-core 0.100.0", - "windows-sys", -] - [[package]] name = "iana-time-zone" version = "0.1.65" @@ -133,7 +110,7 @@ dependencies = [ "js-sys", "log", "wasm-bindgen", - "windows-core 0.62.2", + "windows-core", ] [[package]] @@ -155,12 +132,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "lazy_static" -version = "1.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb" - [[package]] name = "libc" version = "0.2.185" @@ -173,43 +144,12 @@ version = "0.4.29" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" -[[package]] -name = "loom" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1611ddbf89dc6ae42cfbd51fc207836140130257646eab8d6d2fb16577db2d2" -dependencies = [ - "cfg-if", - "generator", - "scoped-tls", - "tracing", - "tracing-subscriber", -] - -[[package]] -name = "matchers" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" -dependencies = [ - "regex-automata", -] - [[package]] name = "memchr" version = "2.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" -[[package]] -name = "nu-ansi-term" -version = "0.50.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" -dependencies = [ - "windows-sys", -] - [[package]] name = "num-traits" version = "0.2.19" @@ -240,7 +180,6 @@ dependencies = [ "bytes", "chrono", "futures-core", - "loom", "memchr", "serde", "smallvec", @@ -272,35 +211,12 @@ dependencies = [ "proc-macro2", ] -[[package]] -name = "regex-automata" -version = "0.4.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" -dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax", -] - -[[package]] -name = "regex-syntax" -version = "0.8.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" - [[package]] name = "rustversion" version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" -[[package]] -name = "scoped-tls" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" - [[package]] name = "serde" version = "1.0.229" @@ -331,15 +247,6 @@ dependencies = [ "syn 3.0.3", ] -[[package]] -name = "sharded-slab" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" -dependencies = [ - "lazy_static", -] - [[package]] name = "shlex" version = "1.3.0" @@ -383,15 +290,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "thread_local" -version = "1.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ad99c4c6d32803332c548b1af0540b357b3f5fc0be8f6c6bfe8b2e6ae784070" -dependencies = [ - "cfg-if", -] - [[package]] name = "tracing" version = "0.1.44" @@ -409,36 +307,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" dependencies = [ "once_cell", - "valuable", -] - -[[package]] -name = "tracing-log" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" -dependencies = [ - "log", - "once_cell", - "tracing-core", -] - -[[package]] -name = "tracing-subscriber" -version = "0.3.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319" -dependencies = [ - "matchers", - "nu-ansi-term", - "once_cell", - "regex-automata", - "sharded-slab", - "smallvec", - "thread_local", - "tracing", - "tracing-core", - "tracing-log", ] [[package]] @@ -447,12 +315,6 @@ version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "537dd038a89878be9b64dd4bd1b260315c1bb94f4d784956b81e27a088d9a09e" -[[package]] -name = "valuable" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" - [[package]] name = "wasm-bindgen" version = "0.2.108" @@ -504,24 +366,11 @@ version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" dependencies = [ - "windows-implement 0.60.2", - "windows-interface 0.59.3", - "windows-link 0.2.1", - "windows-result 0.4.1", - "windows-strings 0.5.1", -] - -[[package]] -name = "windows-core" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "803590c6856f51d15fa2e9fabe4f4703122c8737f72ef2741b4ac09d4c2192f5" -dependencies = [ - "windows-implement 0.100.0", - "windows-interface 0.100.0", - "windows-link 0.100.0", - "windows-result 0.100.0", - "windows-strings 0.100.0", + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", ] [[package]] @@ -535,17 +384,6 @@ dependencies = [ "syn 2.0.115", ] -[[package]] -name = "windows-implement" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bc1bc82e5a1b1a4d7255861b07881a0407b552f50a4d8543c0c7276fa96f6e8" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.115", -] - [[package]] name = "windows-interface" version = "0.59.3" @@ -557,45 +395,19 @@ dependencies = [ "syn 2.0.115", ] -[[package]] -name = "windows-interface" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3f7005c3b757b9b82c2f40c0e71094ff1080adddaf3e8b6ce99b545d3c48796" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.115", -] - [[package]] name = "windows-link" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" -[[package]] -name = "windows-link" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b39de7c7fe78858b0144c50c3fc000bab3be17d5e9b85b1053871693c7f7415" - [[package]] name = "windows-result" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-result" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44873a1ef61c85d5e2991db91fe656cfcf0731097e00dff1ac860f1cb3b752a0" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -604,23 +416,5 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-strings" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a70b590c684f1d2854f74999896f7c0558f1bdde62f599088599e20ea1d2f60" -dependencies = [ - "windows-link 0.100.0", -] - -[[package]] -name = "windows-sys" -version = "0.61.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" -dependencies = [ - "windows-link 0.2.1", + "windows-link", ] diff --git a/examples/basic-streaming/Cargo.lock b/examples/basic-streaming/Cargo.lock index 6775bbe..83e8e1a 100644 --- a/examples/basic-streaming/Cargo.lock +++ b/examples/basic-streaming/Cargo.lock @@ -142,7 +142,7 @@ dependencies = [ "iana-time-zone", "num-traits", "serde", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -334,20 +334,6 @@ dependencies = [ "slab", ] -[[package]] -name = "generator" -version = "0.8.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea6c6a73cd1aa4f4f00c02b109fa55d3a9d6ecc2fc4f53177b74ed6ee23b0c53" -dependencies = [ - "cc", - "libc", - "log", - "rustversion", - "windows-core 0.100.0", - "windows-sys 0.61.2", -] - [[package]] name = "getrandom" version = "0.2.17" @@ -401,7 +387,7 @@ dependencies = [ "js-sys", "log", "wasm-bindgen", - "windows-core 0.62.2", + "windows-core", ] [[package]] @@ -460,19 +446,6 @@ version = "0.4.29" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" -[[package]] -name = "loom" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1611ddbf89dc6ae42cfbd51fc207836140130257646eab8d6d2fb16577db2d2" -dependencies = [ - "cfg-if", - "generator", - "scoped-tls", - "tracing", - "tracing-subscriber", -] - [[package]] name = "matchers" version = "0.2.0" @@ -553,7 +526,7 @@ dependencies = [ "libc", "redox_syscall", "smallvec", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -564,7 +537,6 @@ dependencies = [ "bytes", "chrono", "futures-core", - "loom", "memchr", "postgres-protocol", "rustls", @@ -738,12 +710,6 @@ version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" -[[package]] -name = "scoped-tls" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" - [[package]] name = "scopeguard" version = "1.2.0" @@ -1150,24 +1116,11 @@ version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" dependencies = [ - "windows-implement 0.60.2", - "windows-interface 0.59.3", - "windows-link 0.2.1", - "windows-result 0.4.1", - "windows-strings 0.5.1", -] - -[[package]] -name = "windows-core" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "803590c6856f51d15fa2e9fabe4f4703122c8737f72ef2741b4ac09d4c2192f5" -dependencies = [ - "windows-implement 0.100.0", - "windows-interface 0.100.0", - "windows-link 0.100.0", - "windows-result 0.100.0", - "windows-strings 0.100.0", + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", ] [[package]] @@ -1181,17 +1134,6 @@ dependencies = [ "syn 2.0.115", ] -[[package]] -name = "windows-implement" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bc1bc82e5a1b1a4d7255861b07881a0407b552f50a4d8543c0c7276fa96f6e8" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.115", -] - [[package]] name = "windows-interface" version = "0.59.3" @@ -1203,45 +1145,19 @@ dependencies = [ "syn 2.0.115", ] -[[package]] -name = "windows-interface" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3f7005c3b757b9b82c2f40c0e71094ff1080adddaf3e8b6ce99b545d3c48796" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.115", -] - [[package]] name = "windows-link" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" -[[package]] -name = "windows-link" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b39de7c7fe78858b0144c50c3fc000bab3be17d5e9b85b1053871693c7f7415" - [[package]] name = "windows-result" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-result" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44873a1ef61c85d5e2991db91fe656cfcf0731097e00dff1ac860f1cb3b752a0" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1250,16 +1166,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-strings" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a70b590c684f1d2854f74999896f7c0558f1bdde62f599088599e20ea1d2f60" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1277,7 +1184,7 @@ version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" dependencies = [ - "windows-link 0.2.1", + "windows-link", ] [[package]] diff --git a/examples/binary-column-access/Cargo.lock b/examples/binary-column-access/Cargo.lock index 27f40cc..e230d54 100644 --- a/examples/binary-column-access/Cargo.lock +++ b/examples/binary-column-access/Cargo.lock @@ -2,15 +2,6 @@ # It is not intended for manual editing. version = 4 -[[package]] -name = "aho-corasick" -version = "1.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" -dependencies = [ - "memchr", -] - [[package]] name = "android_system_properties" version = "0.1.5" @@ -131,7 +122,7 @@ dependencies = [ "iana-time-zone", "num-traits", "serde", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -254,20 +245,6 @@ dependencies = [ "slab", ] -[[package]] -name = "generator" -version = "0.8.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea6c6a73cd1aa4f4f00c02b109fa55d3a9d6ecc2fc4f53177b74ed6ee23b0c53" -dependencies = [ - "cc", - "libc", - "log", - "rustversion", - "windows-core 0.100.0", - "windows-sys 0.61.2", -] - [[package]] name = "getrandom" version = "0.2.17" @@ -321,7 +298,7 @@ dependencies = [ "js-sys", "log", "wasm-bindgen", - "windows-core 0.62.2", + "windows-core", ] [[package]] @@ -354,12 +331,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "lazy_static" -version = "1.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb" - [[package]] name = "libc" version = "0.2.186" @@ -372,28 +343,6 @@ version = "0.4.33" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad" -[[package]] -name = "loom" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1611ddbf89dc6ae42cfbd51fc207836140130257646eab8d6d2fb16577db2d2" -dependencies = [ - "cfg-if", - "generator", - "scoped-tls", - "tracing", - "tracing-subscriber", -] - -[[package]] -name = "matchers" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" -dependencies = [ - "regex-automata", -] - [[package]] name = "md-5" version = "0.11.0" @@ -421,15 +370,6 @@ dependencies = [ "windows-sys 0.61.2", ] -[[package]] -name = "nu-ansi-term" -version = "0.50.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" -dependencies = [ - "windows-sys 0.61.2", -] - [[package]] name = "num-traits" version = "0.2.19" @@ -453,7 +393,6 @@ dependencies = [ "bytes", "chrono", "futures-core", - "loom", "memchr", "postgres-protocol", "rustls", @@ -539,23 +478,6 @@ version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" -[[package]] -name = "regex-automata" -version = "0.4.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" -dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax", -] - -[[package]] -name = "regex-syntax" -version = "0.8.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" - [[package]] name = "ring" version = "0.17.14" @@ -612,12 +534,6 @@ version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" -[[package]] -name = "scoped-tls" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" - [[package]] name = "serde" version = "1.0.229" @@ -659,15 +575,6 @@ dependencies = [ "digest", ] -[[package]] -name = "sharded-slab" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" -dependencies = [ - "lazy_static", -] - [[package]] name = "shlex" version = "2.0.1" @@ -744,15 +651,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "thread_local" -version = "1.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ad99c4c6d32803332c548b1af0540b357b3f5fc0be8f6c6bfe8b2e6ae784070" -dependencies = [ - "cfg-if", -] - [[package]] name = "tinyvec" version = "1.11.0" @@ -834,36 +732,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" dependencies = [ "once_cell", - "valuable", -] - -[[package]] -name = "tracing-log" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" -dependencies = [ - "log", - "once_cell", - "tracing-core", -] - -[[package]] -name = "tracing-subscriber" -version = "0.3.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319" -dependencies = [ - "matchers", - "nu-ansi-term", - "once_cell", - "regex-automata", - "sharded-slab", - "smallvec", - "thread_local", - "tracing", - "tracing-core", - "tracing-log", ] [[package]] @@ -911,12 +779,6 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" -[[package]] -name = "valuable" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" - [[package]] name = "wasi" version = "0.11.1+wasi-snapshot-preview1" @@ -983,24 +845,11 @@ version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" dependencies = [ - "windows-implement 0.60.2", - "windows-interface 0.59.3", - "windows-link 0.2.1", - "windows-result 0.4.1", - "windows-strings 0.5.1", -] - -[[package]] -name = "windows-core" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "803590c6856f51d15fa2e9fabe4f4703122c8737f72ef2741b4ac09d4c2192f5" -dependencies = [ - "windows-implement 0.100.0", - "windows-interface 0.100.0", - "windows-link 0.100.0", - "windows-result 0.100.0", - "windows-strings 0.100.0", + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", ] [[package]] @@ -1014,17 +863,6 @@ dependencies = [ "syn 2.0.118", ] -[[package]] -name = "windows-implement" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bc1bc82e5a1b1a4d7255861b07881a0407b552f50a4d8543c0c7276fa96f6e8" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.118", -] - [[package]] name = "windows-interface" version = "0.59.3" @@ -1036,45 +874,19 @@ dependencies = [ "syn 2.0.118", ] -[[package]] -name = "windows-interface" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3f7005c3b757b9b82c2f40c0e71094ff1080adddaf3e8b6ce99b545d3c48796" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.118", -] - [[package]] name = "windows-link" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" -[[package]] -name = "windows-link" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b39de7c7fe78858b0144c50c3fc000bab3be17d5e9b85b1053871693c7f7415" - [[package]] name = "windows-result" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-result" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44873a1ef61c85d5e2991db91fe656cfcf0731097e00dff1ac860f1cb3b752a0" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1083,16 +895,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-strings" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a70b590c684f1d2854f74999896f7c0558f1bdde62f599088599e20ea1d2f60" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1110,7 +913,7 @@ version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" dependencies = [ - "windows-link 0.2.1", + "windows-link", ] [[package]] diff --git a/examples/binary-serde/Cargo.lock b/examples/binary-serde/Cargo.lock index fa68c7b..4b7e831 100644 --- a/examples/binary-serde/Cargo.lock +++ b/examples/binary-serde/Cargo.lock @@ -2,15 +2,6 @@ # It is not intended for manual editing. version = 4 -[[package]] -name = "aho-corasick" -version = "1.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" -dependencies = [ - "memchr", -] - [[package]] name = "android_system_properties" version = "0.1.6" @@ -90,7 +81,7 @@ dependencies = [ "iana-time-zone", "num-traits", "serde", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -183,20 +174,6 @@ dependencies = [ "slab", ] -[[package]] -name = "generator" -version = "0.8.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea6c6a73cd1aa4f4f00c02b109fa55d3a9d6ecc2fc4f53177b74ed6ee23b0c53" -dependencies = [ - "cc", - "libc", - "log", - "rustversion", - "windows-core 0.100.0", - "windows-sys", -] - [[package]] name = "half" version = "2.7.1" @@ -220,7 +197,7 @@ dependencies = [ "js-sys", "log", "wasm-bindgen", - "windows-core 0.62.2", + "windows-core", ] [[package]] @@ -249,12 +226,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "lazy_static" -version = "1.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb" - [[package]] name = "libc" version = "0.2.191" @@ -267,43 +238,12 @@ version = "0.4.35" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c" -[[package]] -name = "loom" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1611ddbf89dc6ae42cfbd51fc207836140130257646eab8d6d2fb16577db2d2" -dependencies = [ - "cfg-if", - "generator", - "scoped-tls", - "tracing", - "tracing-subscriber", -] - -[[package]] -name = "matchers" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" -dependencies = [ - "regex-automata", -] - [[package]] name = "memchr" version = "2.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" -[[package]] -name = "nu-ansi-term" -version = "0.50.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" -dependencies = [ - "windows-sys", -] - [[package]] name = "num-traits" version = "0.2.19" @@ -326,7 +266,6 @@ dependencies = [ "bytes", "chrono", "futures-core", - "loom", "memchr", "serde", "smallvec", @@ -370,23 +309,6 @@ dependencies = [ "proc-macro2", ] -[[package]] -name = "regex-automata" -version = "0.4.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" -dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax", -] - -[[package]] -name = "regex-syntax" -version = "0.8.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" - [[package]] name = "rmp" version = "0.8.15" @@ -412,12 +334,6 @@ version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" -[[package]] -name = "scoped-tls" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" - [[package]] name = "serde" version = "1.0.229" @@ -461,15 +377,6 @@ dependencies = [ "zmij", ] -[[package]] -name = "sharded-slab" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" -dependencies = [ - "lazy_static", -] - [[package]] name = "shlex" version = "2.0.1" @@ -539,15 +446,6 @@ dependencies = [ "syn 3.0.10", ] -[[package]] -name = "thread_local" -version = "1.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ad99c4c6d32803332c548b1af0540b357b3f5fc0be8f6c6bfe8b2e6ae784070" -dependencies = [ - "cfg-if", -] - [[package]] name = "tracing" version = "0.1.44" @@ -565,36 +463,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" dependencies = [ "once_cell", - "valuable", -] - -[[package]] -name = "tracing-log" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" -dependencies = [ - "log", - "once_cell", - "tracing-core", -] - -[[package]] -name = "tracing-subscriber" -version = "0.3.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319" -dependencies = [ - "matchers", - "nu-ansi-term", - "once_cell", - "regex-automata", - "sharded-slab", - "smallvec", - "thread_local", - "tracing", - "tracing-core", - "tracing-log", ] [[package]] @@ -609,12 +477,6 @@ version = "0.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6d49784317cd0d1ee7ec5c716dd598ec5b4483ea832a2dced265471cc0f690ae" -[[package]] -name = "valuable" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" - [[package]] name = "wasm-bindgen" version = "0.2.130" @@ -665,24 +527,11 @@ version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" dependencies = [ - "windows-implement 0.60.2", - "windows-interface 0.59.3", - "windows-link 0.2.1", - "windows-result 0.4.1", - "windows-strings 0.5.1", -] - -[[package]] -name = "windows-core" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "803590c6856f51d15fa2e9fabe4f4703122c8737f72ef2741b4ac09d4c2192f5" -dependencies = [ - "windows-implement 0.100.0", - "windows-interface 0.100.0", - "windows-link 0.100.0", - "windows-result 0.100.0", - "windows-strings 0.100.0", + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", ] [[package]] @@ -696,17 +545,6 @@ dependencies = [ "syn 2.0.119", ] -[[package]] -name = "windows-implement" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bc1bc82e5a1b1a4d7255861b07881a0407b552f50a4d8543c0c7276fa96f6e8" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", -] - [[package]] name = "windows-interface" version = "0.59.3" @@ -718,45 +556,19 @@ dependencies = [ "syn 2.0.119", ] -[[package]] -name = "windows-interface" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3f7005c3b757b9b82c2f40c0e71094ff1080adddaf3e8b6ce99b545d3c48796" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", -] - [[package]] name = "windows-link" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" -[[package]] -name = "windows-link" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b39de7c7fe78858b0144c50c3fc000bab3be17d5e9b85b1053871693c7f7415" - [[package]] name = "windows-result" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-result" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44873a1ef61c85d5e2991db91fe656cfcf0731097e00dff1ac860f1cb3b752a0" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -765,25 +577,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-strings" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a70b590c684f1d2854f74999896f7c0558f1bdde62f599088599e20ea1d2f60" -dependencies = [ - "windows-link 0.100.0", -] - -[[package]] -name = "windows-sys" -version = "0.61.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" -dependencies = [ - "windows-link 0.2.1", + "windows-link", ] [[package]] diff --git a/examples/derive-router/Cargo.lock b/examples/derive-router/Cargo.lock index 801b7ae..2e4522e 100644 --- a/examples/derive-router/Cargo.lock +++ b/examples/derive-router/Cargo.lock @@ -2,15 +2,6 @@ # It is not intended for manual editing. version = 4 -[[package]] -name = "aho-corasick" -version = "1.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" -dependencies = [ - "memchr", -] - [[package]] name = "android_system_properties" version = "0.1.5" @@ -143,7 +134,7 @@ dependencies = [ "num-traits", "serde", "wasm-bindgen", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -316,20 +307,6 @@ dependencies = [ "slab", ] -[[package]] -name = "generator" -version = "0.8.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea6c6a73cd1aa4f4f00c02b109fa55d3a9d6ecc2fc4f53177b74ed6ee23b0c53" -dependencies = [ - "cc", - "libc", - "log", - "rustversion", - "windows-core 0.100.0", - "windows-sys 0.61.2", -] - [[package]] name = "getrandom" version = "0.2.17" @@ -395,7 +372,7 @@ dependencies = [ "js-sys", "log", "wasm-bindgen", - "windows-core 0.62.2", + "windows-core", ] [[package]] @@ -428,12 +405,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "lazy_static" -version = "1.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb" - [[package]] name = "libc" version = "0.2.186" @@ -464,28 +435,6 @@ version = "0.4.33" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad" -[[package]] -name = "loom" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1611ddbf89dc6ae42cfbd51fc207836140130257646eab8d6d2fb16577db2d2" -dependencies = [ - "cfg-if", - "generator", - "scoped-tls", - "tracing", - "tracing-subscriber", -] - -[[package]] -name = "matchers" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" -dependencies = [ - "regex-automata", -] - [[package]] name = "md-5" version = "0.11.0" @@ -513,15 +462,6 @@ dependencies = [ "windows-sys 0.61.2", ] -[[package]] -name = "nu-ansi-term" -version = "0.50.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" -dependencies = [ - "windows-sys 0.61.2", -] - [[package]] name = "num-traits" version = "0.2.19" @@ -612,7 +552,7 @@ dependencies = [ "libc", "redox_syscall", "smallvec", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -638,7 +578,6 @@ dependencies = [ "bytes", "chrono", "futures-core", - "loom", "memchr", "pg-walstream-macros", "postgres-protocol", @@ -794,23 +733,6 @@ dependencies = [ "bitflags", ] -[[package]] -name = "regex-automata" -version = "0.4.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" -dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax", -] - -[[package]] -name = "regex-syntax" -version = "0.8.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" - [[package]] name = "ring" version = "0.17.14" @@ -867,12 +789,6 @@ version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" -[[package]] -name = "scoped-tls" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" - [[package]] name = "scopeguard" version = "1.2.0" @@ -920,15 +836,6 @@ dependencies = [ "digest", ] -[[package]] -name = "sharded-slab" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" -dependencies = [ - "lazy_static", -] - [[package]] name = "shlex" version = "2.0.1" @@ -1021,15 +928,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "thread_local" -version = "1.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ad99c4c6d32803332c548b1af0540b357b3f5fc0be8f6c6bfe8b2e6ae784070" -dependencies = [ - "cfg-if", -] - [[package]] name = "tinyvec" version = "1.11.0" @@ -1151,36 +1049,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" dependencies = [ "once_cell", - "valuable", -] - -[[package]] -name = "tracing-log" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" -dependencies = [ - "log", - "once_cell", - "tracing-core", -] - -[[package]] -name = "tracing-subscriber" -version = "0.3.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319" -dependencies = [ - "matchers", - "nu-ansi-term", - "once_cell", - "regex-automata", - "sharded-slab", - "smallvec", - "thread_local", - "tracing", - "tracing-core", - "tracing-log", ] [[package]] @@ -1228,12 +1096,6 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" -[[package]] -name = "valuable" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" - [[package]] name = "vcpkg" version = "0.2.15" @@ -1356,24 +1218,11 @@ version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" dependencies = [ - "windows-implement 0.60.2", - "windows-interface 0.59.3", - "windows-link 0.2.1", - "windows-result 0.4.1", - "windows-strings 0.5.1", -] - -[[package]] -name = "windows-core" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "803590c6856f51d15fa2e9fabe4f4703122c8737f72ef2741b4ac09d4c2192f5" -dependencies = [ - "windows-implement 0.100.0", - "windows-interface 0.100.0", - "windows-link 0.100.0", - "windows-result 0.100.0", - "windows-strings 0.100.0", + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", ] [[package]] @@ -1387,17 +1236,6 @@ dependencies = [ "syn 2.0.118", ] -[[package]] -name = "windows-implement" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bc1bc82e5a1b1a4d7255861b07881a0407b552f50a4d8543c0c7276fa96f6e8" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.118", -] - [[package]] name = "windows-interface" version = "0.59.3" @@ -1409,45 +1247,19 @@ dependencies = [ "syn 2.0.118", ] -[[package]] -name = "windows-interface" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3f7005c3b757b9b82c2f40c0e71094ff1080adddaf3e8b6ce99b545d3c48796" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.118", -] - [[package]] name = "windows-link" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" -[[package]] -name = "windows-link" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b39de7c7fe78858b0144c50c3fc000bab3be17d5e9b85b1053871693c7f7415" - [[package]] name = "windows-result" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-result" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44873a1ef61c85d5e2991db91fe656cfcf0731097e00dff1ac860f1cb3b752a0" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1456,16 +1268,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-strings" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a70b590c684f1d2854f74999896f7c0558f1bdde62f599088599e20ea1d2f60" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1483,7 +1286,7 @@ version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" dependencies = [ - "windows-link 0.2.1", + "windows-link", ] [[package]] diff --git a/examples/initial-snapshot/Cargo.lock b/examples/initial-snapshot/Cargo.lock index a87f9f8..a3a7cc2 100644 --- a/examples/initial-snapshot/Cargo.lock +++ b/examples/initial-snapshot/Cargo.lock @@ -130,7 +130,7 @@ dependencies = [ "iana-time-zone", "num-traits", "serde", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -263,20 +263,6 @@ dependencies = [ "slab", ] -[[package]] -name = "generator" -version = "0.8.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea6c6a73cd1aa4f4f00c02b109fa55d3a9d6ecc2fc4f53177b74ed6ee23b0c53" -dependencies = [ - "cc", - "libc", - "log", - "rustversion", - "windows-core 0.100.0", - "windows-sys 0.61.2", -] - [[package]] name = "getrandom" version = "0.2.17" @@ -330,7 +316,7 @@ dependencies = [ "js-sys", "log", "wasm-bindgen", - "windows-core 0.62.2", + "windows-core", ] [[package]] @@ -401,19 +387,6 @@ version = "0.4.34" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6" -[[package]] -name = "loom" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1611ddbf89dc6ae42cfbd51fc207836140130257646eab8d6d2fb16577db2d2" -dependencies = [ - "cfg-if", - "generator", - "scoped-tls", - "tracing", - "tracing-subscriber", -] - [[package]] name = "matchers" version = "0.2.0" @@ -494,7 +467,7 @@ dependencies = [ "libc", "redox_syscall", "smallvec", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -514,7 +487,6 @@ dependencies = [ "bytes", "chrono", "futures-core", - "loom", "memchr", "pg-walstream-macros", "postgres-protocol", @@ -683,12 +655,6 @@ version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" -[[package]] -name = "scoped-tls" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" - [[package]] name = "scopeguard" version = "1.2.0" @@ -1075,24 +1041,11 @@ version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" dependencies = [ - "windows-implement 0.60.2", - "windows-interface 0.59.3", - "windows-link 0.2.1", - "windows-result 0.4.1", - "windows-strings 0.5.1", -] - -[[package]] -name = "windows-core" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "803590c6856f51d15fa2e9fabe4f4703122c8737f72ef2741b4ac09d4c2192f5" -dependencies = [ - "windows-implement 0.100.0", - "windows-interface 0.100.0", - "windows-link 0.100.0", - "windows-result 0.100.0", - "windows-strings 0.100.0", + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", ] [[package]] @@ -1106,17 +1059,6 @@ dependencies = [ "syn 2.0.119", ] -[[package]] -name = "windows-implement" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bc1bc82e5a1b1a4d7255861b07881a0407b552f50a4d8543c0c7276fa96f6e8" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", -] - [[package]] name = "windows-interface" version = "0.59.3" @@ -1128,45 +1070,19 @@ dependencies = [ "syn 2.0.119", ] -[[package]] -name = "windows-interface" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3f7005c3b757b9b82c2f40c0e71094ff1080adddaf3e8b6ce99b545d3c48796" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", -] - [[package]] name = "windows-link" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" -[[package]] -name = "windows-link" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b39de7c7fe78858b0144c50c3fc000bab3be17d5e9b85b1053871693c7f7415" - [[package]] name = "windows-result" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-result" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44873a1ef61c85d5e2991db91fe656cfcf0731097e00dff1ac860f1cb3b752a0" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1175,16 +1091,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-strings" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a70b590c684f1d2854f74999896f7c0558f1bdde62f599088599e20ea1d2f60" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1202,7 +1109,7 @@ version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" dependencies = [ - "windows-link 0.2.1", + "windows-link", ] [[package]] diff --git a/examples/pg-basebackup/Cargo.lock b/examples/pg-basebackup/Cargo.lock index d387a4d..5d44293 100644 --- a/examples/pg-basebackup/Cargo.lock +++ b/examples/pg-basebackup/Cargo.lock @@ -136,7 +136,7 @@ dependencies = [ "iana-time-zone", "num-traits", "serde", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -276,20 +276,6 @@ version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" -[[package]] -name = "generator" -version = "0.8.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea6c6a73cd1aa4f4f00c02b109fa55d3a9d6ecc2fc4f53177b74ed6ee23b0c53" -dependencies = [ - "cc", - "libc", - "log", - "rustversion", - "windows-core 0.100.0", - "windows-sys 0.61.2", -] - [[package]] name = "getrandom" version = "0.2.17" @@ -343,7 +329,7 @@ dependencies = [ "js-sys", "log", "wasm-bindgen", - "windows-core 0.62.2", + "windows-core", ] [[package]] @@ -402,19 +388,6 @@ version = "0.4.29" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" -[[package]] -name = "loom" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1611ddbf89dc6ae42cfbd51fc207836140130257646eab8d6d2fb16577db2d2" -dependencies = [ - "cfg-if", - "generator", - "scoped-tls", - "tracing", - "tracing-subscriber", -] - [[package]] name = "matchers" version = "0.2.0" @@ -505,7 +478,7 @@ dependencies = [ "libc", "redox_syscall", "smallvec", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -528,7 +501,6 @@ dependencies = [ "bytes", "chrono", "futures-core", - "loom", "memchr", "postgres-protocol", "rustls", @@ -696,12 +668,6 @@ version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" -[[package]] -name = "scoped-tls" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" - [[package]] name = "scopeguard" version = "1.2.0" @@ -1098,24 +1064,11 @@ version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" dependencies = [ - "windows-implement 0.60.2", - "windows-interface 0.59.3", - "windows-link 0.2.1", - "windows-result 0.4.1", - "windows-strings 0.5.1", -] - -[[package]] -name = "windows-core" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "803590c6856f51d15fa2e9fabe4f4703122c8737f72ef2741b4ac09d4c2192f5" -dependencies = [ - "windows-implement 0.100.0", - "windows-interface 0.100.0", - "windows-link 0.100.0", - "windows-result 0.100.0", - "windows-strings 0.100.0", + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", ] [[package]] @@ -1129,17 +1082,6 @@ dependencies = [ "syn 2.0.115", ] -[[package]] -name = "windows-implement" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bc1bc82e5a1b1a4d7255861b07881a0407b552f50a4d8543c0c7276fa96f6e8" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.115", -] - [[package]] name = "windows-interface" version = "0.59.3" @@ -1151,45 +1093,19 @@ dependencies = [ "syn 2.0.115", ] -[[package]] -name = "windows-interface" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3f7005c3b757b9b82c2f40c0e71094ff1080adddaf3e8b6ce99b545d3c48796" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.115", -] - [[package]] name = "windows-link" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" -[[package]] -name = "windows-link" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b39de7c7fe78858b0144c50c3fc000bab3be17d5e9b85b1053871693c7f7415" - [[package]] name = "windows-result" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-result" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44873a1ef61c85d5e2991db91fe656cfcf0731097e00dff1ac860f1cb3b752a0" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1198,16 +1114,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-strings" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a70b590c684f1d2854f74999896f7c0558f1bdde62f599088599e20ea1d2f60" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1225,7 +1132,7 @@ version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" dependencies = [ - "windows-link 0.2.1", + "windows-link", ] [[package]] diff --git a/examples/polling/Cargo.lock b/examples/polling/Cargo.lock index af45192..f180d71 100644 --- a/examples/polling/Cargo.lock +++ b/examples/polling/Cargo.lock @@ -130,7 +130,7 @@ dependencies = [ "iana-time-zone", "num-traits", "serde", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -251,20 +251,6 @@ version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" -[[package]] -name = "generator" -version = "0.8.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea6c6a73cd1aa4f4f00c02b109fa55d3a9d6ecc2fc4f53177b74ed6ee23b0c53" -dependencies = [ - "cc", - "libc", - "log", - "rustversion", - "windows-core 0.100.0", - "windows-sys 0.61.2", -] - [[package]] name = "getrandom" version = "0.2.17" @@ -318,7 +304,7 @@ dependencies = [ "js-sys", "log", "wasm-bindgen", - "windows-core 0.62.2", + "windows-core", ] [[package]] @@ -377,19 +363,6 @@ version = "0.4.29" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" -[[package]] -name = "loom" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1611ddbf89dc6ae42cfbd51fc207836140130257646eab8d6d2fb16577db2d2" -dependencies = [ - "cfg-if", - "generator", - "scoped-tls", - "tracing", - "tracing-subscriber", -] - [[package]] name = "matchers" version = "0.2.0" @@ -470,7 +443,7 @@ dependencies = [ "libc", "redox_syscall", "smallvec", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -481,7 +454,6 @@ dependencies = [ "bytes", "chrono", "futures-core", - "loom", "memchr", "postgres-protocol", "rustls", @@ -660,12 +632,6 @@ version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" -[[package]] -name = "scoped-tls" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" - [[package]] name = "scopeguard" version = "1.2.0" @@ -1056,24 +1022,11 @@ version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" dependencies = [ - "windows-implement 0.60.2", - "windows-interface 0.59.3", - "windows-link 0.2.1", - "windows-result 0.4.1", - "windows-strings 0.5.1", -] - -[[package]] -name = "windows-core" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "803590c6856f51d15fa2e9fabe4f4703122c8737f72ef2741b4ac09d4c2192f5" -dependencies = [ - "windows-implement 0.100.0", - "windows-interface 0.100.0", - "windows-link 0.100.0", - "windows-result 0.100.0", - "windows-strings 0.100.0", + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", ] [[package]] @@ -1087,17 +1040,6 @@ dependencies = [ "syn 2.0.115", ] -[[package]] -name = "windows-implement" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bc1bc82e5a1b1a4d7255861b07881a0407b552f50a4d8543c0c7276fa96f6e8" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.115", -] - [[package]] name = "windows-interface" version = "0.59.3" @@ -1109,45 +1051,19 @@ dependencies = [ "syn 2.0.115", ] -[[package]] -name = "windows-interface" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3f7005c3b757b9b82c2f40c0e71094ff1080adddaf3e8b6ce99b545d3c48796" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.115", -] - [[package]] name = "windows-link" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" -[[package]] -name = "windows-link" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b39de7c7fe78858b0144c50c3fc000bab3be17d5e9b85b1053871693c7f7415" - [[package]] name = "windows-result" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-result" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44873a1ef61c85d5e2991db91fe656cfcf0731097e00dff1ac860f1cb3b752a0" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1156,16 +1072,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-strings" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a70b590c684f1d2854f74999896f7c0558f1bdde62f599088599e20ea1d2f60" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1183,7 +1090,7 @@ version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" dependencies = [ - "windows-link 0.2.1", + "windows-link", ] [[package]] diff --git a/examples/rate-limited-streaming/Cargo.lock b/examples/rate-limited-streaming/Cargo.lock index 68091b3..b1282ea 100644 --- a/examples/rate-limited-streaming/Cargo.lock +++ b/examples/rate-limited-streaming/Cargo.lock @@ -130,7 +130,7 @@ dependencies = [ "iana-time-zone", "num-traits", "serde", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -322,20 +322,6 @@ dependencies = [ "slab", ] -[[package]] -name = "generator" -version = "0.8.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea6c6a73cd1aa4f4f00c02b109fa55d3a9d6ecc2fc4f53177b74ed6ee23b0c53" -dependencies = [ - "cc", - "libc", - "log", - "rustversion", - "windows-core 0.100.0", - "windows-sys 0.61.2", -] - [[package]] name = "getrandom" version = "0.2.17" @@ -389,7 +375,7 @@ dependencies = [ "js-sys", "log", "wasm-bindgen", - "windows-core 0.62.2", + "windows-core", ] [[package]] @@ -448,19 +434,6 @@ version = "0.4.29" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" -[[package]] -name = "loom" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1611ddbf89dc6ae42cfbd51fc207836140130257646eab8d6d2fb16577db2d2" -dependencies = [ - "cfg-if", - "generator", - "scoped-tls", - "tracing", - "tracing-subscriber", -] - [[package]] name = "matchers" version = "0.2.0" @@ -541,7 +514,7 @@ dependencies = [ "libc", "redox_syscall", "smallvec", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -552,7 +525,6 @@ dependencies = [ "bytes", "chrono", "futures-core", - "loom", "memchr", "postgres-protocol", "rustls", @@ -738,12 +710,6 @@ version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" -[[package]] -name = "scoped-tls" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" - [[package]] name = "scopeguard" version = "1.2.0" @@ -1150,24 +1116,11 @@ version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" dependencies = [ - "windows-implement 0.60.2", - "windows-interface 0.59.3", - "windows-link 0.2.1", - "windows-result 0.4.1", - "windows-strings 0.5.1", -] - -[[package]] -name = "windows-core" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "803590c6856f51d15fa2e9fabe4f4703122c8737f72ef2741b4ac09d4c2192f5" -dependencies = [ - "windows-implement 0.100.0", - "windows-interface 0.100.0", - "windows-link 0.100.0", - "windows-result 0.100.0", - "windows-strings 0.100.0", + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", ] [[package]] @@ -1181,17 +1134,6 @@ dependencies = [ "syn 2.0.115", ] -[[package]] -name = "windows-implement" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bc1bc82e5a1b1a4d7255861b07881a0407b552f50a4d8543c0c7276fa96f6e8" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.115", -] - [[package]] name = "windows-interface" version = "0.59.3" @@ -1203,45 +1145,19 @@ dependencies = [ "syn 2.0.115", ] -[[package]] -name = "windows-interface" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3f7005c3b757b9b82c2f40c0e71094ff1080adddaf3e8b6ce99b545d3c48796" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.115", -] - [[package]] name = "windows-link" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" -[[package]] -name = "windows-link" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b39de7c7fe78858b0144c50c3fc000bab3be17d5e9b85b1053871693c7f7415" - [[package]] name = "windows-result" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-result" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44873a1ef61c85d5e2991db91fe656cfcf0731097e00dff1ac860f1cb3b752a0" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1250,16 +1166,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-strings" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a70b590c684f1d2854f74999896f7c0558f1bdde62f599088599e20ea1d2f60" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1277,7 +1184,7 @@ version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" dependencies = [ - "windows-link 0.2.1", + "windows-link", ] [[package]] diff --git a/examples/raw-xlogdata/Cargo.lock b/examples/raw-xlogdata/Cargo.lock index 4cbcec3..914ca97 100644 --- a/examples/raw-xlogdata/Cargo.lock +++ b/examples/raw-xlogdata/Cargo.lock @@ -130,7 +130,7 @@ dependencies = [ "iana-time-zone", "num-traits", "serde", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -269,20 +269,6 @@ dependencies = [ "slab", ] -[[package]] -name = "generator" -version = "0.8.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea6c6a73cd1aa4f4f00c02b109fa55d3a9d6ecc2fc4f53177b74ed6ee23b0c53" -dependencies = [ - "cc", - "libc", - "log", - "rustversion", - "windows-core 0.100.0", - "windows-sys 0.61.2", -] - [[package]] name = "getrandom" version = "0.2.17" @@ -336,7 +322,7 @@ dependencies = [ "js-sys", "log", "wasm-bindgen", - "windows-core 0.62.2", + "windows-core", ] [[package]] @@ -396,19 +382,6 @@ version = "0.4.33" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad" -[[package]] -name = "loom" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1611ddbf89dc6ae42cfbd51fc207836140130257646eab8d6d2fb16577db2d2" -dependencies = [ - "cfg-if", - "generator", - "scoped-tls", - "tracing", - "tracing-subscriber", -] - [[package]] name = "matchers" version = "0.2.0" @@ -489,7 +462,7 @@ dependencies = [ "libc", "redox_syscall", "smallvec", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -500,7 +473,6 @@ dependencies = [ "bytes", "chrono", "futures-core", - "loom", "memchr", "postgres-protocol", "rustls", @@ -679,12 +651,6 @@ version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" -[[package]] -name = "scoped-tls" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" - [[package]] name = "scopeguard" version = "1.2.0" @@ -1081,24 +1047,11 @@ version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" dependencies = [ - "windows-implement 0.60.2", - "windows-interface 0.59.3", - "windows-link 0.2.1", - "windows-result 0.4.1", - "windows-strings 0.5.1", -] - -[[package]] -name = "windows-core" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "803590c6856f51d15fa2e9fabe4f4703122c8737f72ef2741b4ac09d4c2192f5" -dependencies = [ - "windows-implement 0.100.0", - "windows-interface 0.100.0", - "windows-link 0.100.0", - "windows-result 0.100.0", - "windows-strings 0.100.0", + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", ] [[package]] @@ -1112,17 +1065,6 @@ dependencies = [ "syn 2.0.118", ] -[[package]] -name = "windows-implement" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bc1bc82e5a1b1a4d7255861b07881a0407b552f50a4d8543c0c7276fa96f6e8" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.118", -] - [[package]] name = "windows-interface" version = "0.59.3" @@ -1134,45 +1076,19 @@ dependencies = [ "syn 2.0.118", ] -[[package]] -name = "windows-interface" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3f7005c3b757b9b82c2f40c0e71094ff1080adddaf3e8b6ce99b545d3c48796" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.118", -] - [[package]] name = "windows-link" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" -[[package]] -name = "windows-link" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b39de7c7fe78858b0144c50c3fc000bab3be17d5e9b85b1053871693c7f7415" - [[package]] name = "windows-result" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-result" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44873a1ef61c85d5e2991db91fe656cfcf0731097e00dff1ac860f1cb3b752a0" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1181,16 +1097,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-strings" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a70b590c684f1d2854f74999896f7c0558f1bdde62f599088599e20ea1d2f60" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1208,7 +1115,7 @@ version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" dependencies = [ - "windows-link 0.2.1", + "windows-link", ] [[package]] diff --git a/examples/safe-transaction-consumer/Cargo.lock b/examples/safe-transaction-consumer/Cargo.lock index 4be6805..5fe8a53 100644 --- a/examples/safe-transaction-consumer/Cargo.lock +++ b/examples/safe-transaction-consumer/Cargo.lock @@ -130,7 +130,7 @@ dependencies = [ "iana-time-zone", "num-traits", "serde", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -245,20 +245,6 @@ version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" -[[package]] -name = "generator" -version = "0.8.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea6c6a73cd1aa4f4f00c02b109fa55d3a9d6ecc2fc4f53177b74ed6ee23b0c53" -dependencies = [ - "cc", - "libc", - "log", - "rustversion", - "windows-core 0.100.0", - "windows-sys 0.61.2", -] - [[package]] name = "getrandom" version = "0.2.17" @@ -312,7 +298,7 @@ dependencies = [ "js-sys", "log", "wasm-bindgen", - "windows-core 0.62.2", + "windows-core", ] [[package]] @@ -371,19 +357,6 @@ version = "0.4.29" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" -[[package]] -name = "loom" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1611ddbf89dc6ae42cfbd51fc207836140130257646eab8d6d2fb16577db2d2" -dependencies = [ - "cfg-if", - "generator", - "scoped-tls", - "tracing", - "tracing-subscriber", -] - [[package]] name = "matchers" version = "0.2.0" @@ -464,7 +437,7 @@ dependencies = [ "libc", "redox_syscall", "smallvec", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -475,7 +448,6 @@ dependencies = [ "bytes", "chrono", "futures-core", - "loom", "memchr", "postgres-protocol", "rustls", @@ -653,12 +625,6 @@ dependencies = [ "tracing-subscriber", ] -[[package]] -name = "scoped-tls" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" - [[package]] name = "scopeguard" version = "1.2.0" @@ -1048,24 +1014,11 @@ version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" dependencies = [ - "windows-implement 0.60.2", - "windows-interface 0.59.3", - "windows-link 0.2.1", - "windows-result 0.4.1", - "windows-strings 0.5.1", -] - -[[package]] -name = "windows-core" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "803590c6856f51d15fa2e9fabe4f4703122c8737f72ef2741b4ac09d4c2192f5" -dependencies = [ - "windows-implement 0.100.0", - "windows-interface 0.100.0", - "windows-link 0.100.0", - "windows-result 0.100.0", - "windows-strings 0.100.0", + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", ] [[package]] @@ -1079,17 +1032,6 @@ dependencies = [ "syn 2.0.115", ] -[[package]] -name = "windows-implement" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bc1bc82e5a1b1a4d7255861b07881a0407b552f50a4d8543c0c7276fa96f6e8" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.115", -] - [[package]] name = "windows-interface" version = "0.59.3" @@ -1101,45 +1043,19 @@ dependencies = [ "syn 2.0.115", ] -[[package]] -name = "windows-interface" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3f7005c3b757b9b82c2f40c0e71094ff1080adddaf3e8b6ce99b545d3c48796" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.115", -] - [[package]] name = "windows-link" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" -[[package]] -name = "windows-link" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b39de7c7fe78858b0144c50c3fc000bab3be17d5e9b85b1053871693c7f7415" - [[package]] name = "windows-result" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-result" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44873a1ef61c85d5e2991db91fe656cfcf0731097e00dff1ac860f1cb3b752a0" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1148,16 +1064,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-strings" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a70b590c684f1d2854f74999896f7c0558f1bdde62f599088599e20ea1d2f60" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1175,7 +1082,7 @@ version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" dependencies = [ - "windows-link 0.2.1", + "windows-link", ] [[package]] diff --git a/examples/stream-metrics/Cargo.lock b/examples/stream-metrics/Cargo.lock index bd28707..bc82a41 100644 --- a/examples/stream-metrics/Cargo.lock +++ b/examples/stream-metrics/Cargo.lock @@ -2,15 +2,6 @@ # It is not intended for manual editing. version = 4 -[[package]] -name = "aho-corasick" -version = "1.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" -dependencies = [ - "memchr", -] - [[package]] name = "android_system_properties" version = "0.1.6" @@ -130,7 +121,7 @@ dependencies = [ "iana-time-zone", "num-traits", "serde", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -263,20 +254,6 @@ dependencies = [ "slab", ] -[[package]] -name = "generator" -version = "0.8.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea6c6a73cd1aa4f4f00c02b109fa55d3a9d6ecc2fc4f53177b74ed6ee23b0c53" -dependencies = [ - "cc", - "libc", - "log", - "rustversion", - "windows-core 0.100.0", - "windows-sys 0.61.2", -] - [[package]] name = "getrandom" version = "0.2.17" @@ -330,7 +307,7 @@ dependencies = [ "js-sys", "log", "wasm-bindgen", - "windows-core 0.62.2", + "windows-core", ] [[package]] @@ -363,12 +340,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "lazy_static" -version = "1.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb" - [[package]] name = "libc" version = "0.2.191" @@ -390,28 +361,6 @@ version = "0.4.35" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c" -[[package]] -name = "loom" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1611ddbf89dc6ae42cfbd51fc207836140130257646eab8d6d2fb16577db2d2" -dependencies = [ - "cfg-if", - "generator", - "scoped-tls", - "tracing", - "tracing-subscriber", -] - -[[package]] -name = "matchers" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" -dependencies = [ - "regex-automata", -] - [[package]] name = "md-5" version = "0.11.0" @@ -439,15 +388,6 @@ dependencies = [ "windows-sys 0.61.2", ] -[[package]] -name = "nu-ansi-term" -version = "0.50.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" -dependencies = [ - "windows-sys 0.61.2", -] - [[package]] name = "num-traits" version = "0.2.19" @@ -483,7 +423,7 @@ dependencies = [ "libc", "redox_syscall", "smallvec", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -494,7 +434,6 @@ dependencies = [ "bytes", "chrono", "futures-core", - "loom", "memchr", "postgres-protocol", "rustls", @@ -589,23 +528,6 @@ dependencies = [ "bitflags", ] -[[package]] -name = "regex-automata" -version = "0.4.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" -dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax", -] - -[[package]] -name = "regex-syntax" -version = "0.8.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" - [[package]] name = "ring" version = "0.17.14" @@ -662,12 +584,6 @@ version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" -[[package]] -name = "scoped-tls" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" - [[package]] name = "scopeguard" version = "1.2.0" @@ -715,15 +631,6 @@ dependencies = [ "digest", ] -[[package]] -name = "sharded-slab" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" -dependencies = [ - "lazy_static", -] - [[package]] name = "shlex" version = "2.0.1" @@ -818,15 +725,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "thread_local" -version = "1.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ad99c4c6d32803332c548b1af0540b357b3f5fc0be8f6c6bfe8b2e6ae784070" -dependencies = [ - "cfg-if", -] - [[package]] name = "tinyvec" version = "1.13.3" @@ -901,36 +799,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" dependencies = [ "once_cell", - "valuable", -] - -[[package]] -name = "tracing-log" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" -dependencies = [ - "log", - "once_cell", - "tracing-core", -] - -[[package]] -name = "tracing-subscriber" -version = "0.3.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319" -dependencies = [ - "matchers", - "nu-ansi-term", - "once_cell", - "regex-automata", - "sharded-slab", - "smallvec", - "thread_local", - "tracing", - "tracing-core", - "tracing-log", ] [[package]] @@ -978,12 +846,6 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" -[[package]] -name = "valuable" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" - [[package]] name = "wasi" version = "0.11.1+wasi-snapshot-preview1" @@ -1049,24 +911,11 @@ version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" dependencies = [ - "windows-implement 0.60.2", - "windows-interface 0.59.3", - "windows-link 0.2.1", - "windows-result 0.4.1", - "windows-strings 0.5.1", -] - -[[package]] -name = "windows-core" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "803590c6856f51d15fa2e9fabe4f4703122c8737f72ef2741b4ac09d4c2192f5" -dependencies = [ - "windows-implement 0.100.0", - "windows-interface 0.100.0", - "windows-link 0.100.0", - "windows-result 0.100.0", - "windows-strings 0.100.0", + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", ] [[package]] @@ -1080,17 +929,6 @@ dependencies = [ "syn 2.0.119", ] -[[package]] -name = "windows-implement" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bc1bc82e5a1b1a4d7255861b07881a0407b552f50a4d8543c0c7276fa96f6e8" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", -] - [[package]] name = "windows-interface" version = "0.59.3" @@ -1102,45 +940,19 @@ dependencies = [ "syn 2.0.119", ] -[[package]] -name = "windows-interface" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3f7005c3b757b9b82c2f40c0e71094ff1080adddaf3e8b6ce99b545d3c48796" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", -] - [[package]] name = "windows-link" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" -[[package]] -name = "windows-link" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b39de7c7fe78858b0144c50c3fc000bab3be17d5e9b85b1053871693c7f7415" - [[package]] name = "windows-result" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-result" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44873a1ef61c85d5e2991db91fe656cfcf0731097e00dff1ac860f1cb3b752a0" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1149,16 +961,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-strings" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a70b590c684f1d2854f74999896f7c0558f1bdde62f599088599e20ea1d2f60" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1176,7 +979,7 @@ version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" dependencies = [ - "windows-link 0.2.1", + "windows-link", ] [[package]] diff --git a/examples/tokio-spawn-streaming/Cargo.lock b/examples/tokio-spawn-streaming/Cargo.lock index e561862..662b856 100644 --- a/examples/tokio-spawn-streaming/Cargo.lock +++ b/examples/tokio-spawn-streaming/Cargo.lock @@ -130,7 +130,7 @@ dependencies = [ "iana-time-zone", "num-traits", "serde", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -245,20 +245,6 @@ version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893" -[[package]] -name = "generator" -version = "0.8.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea6c6a73cd1aa4f4f00c02b109fa55d3a9d6ecc2fc4f53177b74ed6ee23b0c53" -dependencies = [ - "cc", - "libc", - "log", - "rustversion", - "windows-core 0.100.0", - "windows-sys 0.61.2", -] - [[package]] name = "getrandom" version = "0.2.17" @@ -312,7 +298,7 @@ dependencies = [ "js-sys", "log", "wasm-bindgen", - "windows-core 0.62.2", + "windows-core", ] [[package]] @@ -371,19 +357,6 @@ version = "0.4.29" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" -[[package]] -name = "loom" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1611ddbf89dc6ae42cfbd51fc207836140130257646eab8d6d2fb16577db2d2" -dependencies = [ - "cfg-if", - "generator", - "scoped-tls", - "tracing", - "tracing-subscriber", -] - [[package]] name = "matchers" version = "0.2.0" @@ -464,7 +437,7 @@ dependencies = [ "libc", "redox_syscall", "smallvec", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -475,7 +448,6 @@ dependencies = [ "bytes", "chrono", "futures-core", - "loom", "memchr", "postgres-protocol", "rustls", @@ -643,12 +615,6 @@ version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" -[[package]] -name = "scoped-tls" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" - [[package]] name = "scopeguard" version = "1.2.0" @@ -1048,24 +1014,11 @@ version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" dependencies = [ - "windows-implement 0.60.2", - "windows-interface 0.59.3", - "windows-link 0.2.1", - "windows-result 0.4.1", - "windows-strings 0.5.1", -] - -[[package]] -name = "windows-core" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "803590c6856f51d15fa2e9fabe4f4703122c8737f72ef2741b4ac09d4c2192f5" -dependencies = [ - "windows-implement 0.100.0", - "windows-interface 0.100.0", - "windows-link 0.100.0", - "windows-result 0.100.0", - "windows-strings 0.100.0", + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", ] [[package]] @@ -1079,17 +1032,6 @@ dependencies = [ "syn 2.0.117", ] -[[package]] -name = "windows-implement" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bc1bc82e5a1b1a4d7255861b07881a0407b552f50a4d8543c0c7276fa96f6e8" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.117", -] - [[package]] name = "windows-interface" version = "0.59.3" @@ -1101,45 +1043,19 @@ dependencies = [ "syn 2.0.117", ] -[[package]] -name = "windows-interface" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3f7005c3b757b9b82c2f40c0e71094ff1080adddaf3e8b6ce99b545d3c48796" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.117", -] - [[package]] name = "windows-link" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" -[[package]] -name = "windows-link" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b39de7c7fe78858b0144c50c3fc000bab3be17d5e9b85b1053871693c7f7415" - [[package]] name = "windows-result" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-result" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44873a1ef61c85d5e2991db91fe656cfcf0731097e00dff1ac860f1cb3b752a0" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1148,16 +1064,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-strings" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a70b590c684f1d2854f74999896f7c0558f1bdde62f599088599e20ea1d2f60" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1175,7 +1082,7 @@ version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" dependencies = [ - "windows-link 0.2.1", + "windows-link", ] [[package]] diff --git a/examples/typed-deserialization/Cargo.lock b/examples/typed-deserialization/Cargo.lock index fb17712..1c56077 100644 --- a/examples/typed-deserialization/Cargo.lock +++ b/examples/typed-deserialization/Cargo.lock @@ -2,15 +2,6 @@ # It is not intended for manual editing. version = 4 -[[package]] -name = "aho-corasick" -version = "1.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" -dependencies = [ - "memchr", -] - [[package]] name = "android_system_properties" version = "0.1.5" @@ -149,7 +140,7 @@ dependencies = [ "num-traits", "serde", "wasm-bindgen", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -319,20 +310,6 @@ dependencies = [ "pin-project-lite", ] -[[package]] -name = "generator" -version = "0.8.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea6c6a73cd1aa4f4f00c02b109fa55d3a9d6ecc2fc4f53177b74ed6ee23b0c53" -dependencies = [ - "cc", - "libc", - "log", - "rustversion", - "windows-core 0.100.0", - "windows-sys 0.61.2", -] - [[package]] name = "getrandom" version = "0.2.17" @@ -421,7 +398,7 @@ dependencies = [ "js-sys", "log", "wasm-bindgen", - "windows-core 0.62.2", + "windows-core", ] [[package]] @@ -477,12 +454,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "lazy_static" -version = "1.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb" - [[package]] name = "leb128fmt" version = "0.1.0" @@ -519,28 +490,6 @@ version = "0.4.29" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" -[[package]] -name = "loom" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1611ddbf89dc6ae42cfbd51fc207836140130257646eab8d6d2fb16577db2d2" -dependencies = [ - "cfg-if", - "generator", - "scoped-tls", - "tracing", - "tracing-subscriber", -] - -[[package]] -name = "matchers" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" -dependencies = [ - "regex-automata", -] - [[package]] name = "md-5" version = "0.11.0" @@ -568,15 +517,6 @@ dependencies = [ "windows-sys 0.61.2", ] -[[package]] -name = "nu-ansi-term" -version = "0.50.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" -dependencies = [ - "windows-sys 0.61.2", -] - [[package]] name = "num-traits" version = "0.2.19" @@ -667,7 +607,7 @@ dependencies = [ "libc", "redox_syscall", "smallvec", - "windows-link 0.2.1", + "windows-link", ] [[package]] @@ -684,7 +624,6 @@ dependencies = [ "bytes", "chrono", "futures-core", - "loom", "memchr", "postgres-protocol", "pq-sys", @@ -849,23 +788,6 @@ dependencies = [ "bitflags", ] -[[package]] -name = "regex-automata" -version = "0.4.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" -dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax", -] - -[[package]] -name = "regex-syntax" -version = "0.8.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" - [[package]] name = "ring" version = "0.17.14" @@ -922,12 +844,6 @@ version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" -[[package]] -name = "scoped-tls" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" - [[package]] name = "scopeguard" version = "1.2.0" @@ -994,15 +910,6 @@ dependencies = [ "digest", ] -[[package]] -name = "sharded-slab" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" -dependencies = [ - "lazy_static", -] - [[package]] name = "shlex" version = "1.3.0" @@ -1089,15 +996,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "thread_local" -version = "1.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ad99c4c6d32803332c548b1af0540b357b3f5fc0be8f6c6bfe8b2e6ae784070" -dependencies = [ - "cfg-if", -] - [[package]] name = "tinyvec" version = "1.11.0" @@ -1219,36 +1117,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" dependencies = [ "once_cell", - "valuable", -] - -[[package]] -name = "tracing-log" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" -dependencies = [ - "log", - "once_cell", - "tracing-core", -] - -[[package]] -name = "tracing-subscriber" -version = "0.3.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319" -dependencies = [ - "matchers", - "nu-ansi-term", - "once_cell", - "regex-automata", - "sharded-slab", - "smallvec", - "thread_local", - "tracing", - "tracing-core", - "tracing-log", ] [[package]] @@ -1316,12 +1184,6 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" -[[package]] -name = "valuable" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" - [[package]] name = "vcpkg" version = "0.2.15" @@ -1487,24 +1349,11 @@ version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" dependencies = [ - "windows-implement 0.60.2", - "windows-interface 0.59.3", - "windows-link 0.2.1", - "windows-result 0.4.1", - "windows-strings 0.5.1", -] - -[[package]] -name = "windows-core" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "803590c6856f51d15fa2e9fabe4f4703122c8737f72ef2741b4ac09d4c2192f5" -dependencies = [ - "windows-implement 0.100.0", - "windows-interface 0.100.0", - "windows-link 0.100.0", - "windows-result 0.100.0", - "windows-strings 0.100.0", + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", ] [[package]] @@ -1518,17 +1367,6 @@ dependencies = [ "syn 2.0.117", ] -[[package]] -name = "windows-implement" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bc1bc82e5a1b1a4d7255861b07881a0407b552f50a4d8543c0c7276fa96f6e8" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.117", -] - [[package]] name = "windows-interface" version = "0.59.3" @@ -1540,45 +1378,19 @@ dependencies = [ "syn 2.0.117", ] -[[package]] -name = "windows-interface" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3f7005c3b757b9b82c2f40c0e71094ff1080adddaf3e8b6ce99b545d3c48796" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.117", -] - [[package]] name = "windows-link" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" -[[package]] -name = "windows-link" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b39de7c7fe78858b0144c50c3fc000bab3be17d5e9b85b1053871693c7f7415" - [[package]] name = "windows-result" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-result" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44873a1ef61c85d5e2991db91fe656cfcf0731097e00dff1ac860f1cb3b752a0" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1587,16 +1399,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" dependencies = [ - "windows-link 0.2.1", -] - -[[package]] -name = "windows-strings" -version = "0.100.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a70b590c684f1d2854f74999896f7c0558f1bdde62f599088599e20ea1d2f60" -dependencies = [ - "windows-link 0.100.0", + "windows-link", ] [[package]] @@ -1614,7 +1417,7 @@ version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" dependencies = [ - "windows-link 0.2.1", + "windows-link", ] [[package]] diff --git a/fuzz/Cargo.lock b/fuzz/Cargo.lock index 5dd7425..85c0edc 100644 --- a/fuzz/Cargo.lock +++ b/fuzz/Cargo.lock @@ -34,9 +34,9 @@ checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" [[package]] name = "bytes" -version = "1.12.1" +version = "1.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +checksum = "776dfebd015e2d8732c684a2c71003674ccb49457b539b9e82151ba38e96dd7c" dependencies = [ "serde", ] @@ -331,9 +331,9 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" [[package]] name = "smallvec" -version = "1.16.5" +version = "1.16.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46" +checksum = "3244542535d5de959d90ec55d1b5ff0fd2bb7b1310223907d5f11932847f7b59" dependencies = [ "serde", ] diff --git a/integration-tests/ssl_connections.rs b/integration-tests/ssl_connections.rs index a55771f..0998392 100644 --- a/integration-tests/ssl_connections.rs +++ b/integration-tests/ssl_connections.rs @@ -328,6 +328,30 @@ async fn test_ssl_verify_full_rejects_wrong_hostname() { println!("sslmode=verify-full with hostname mismatch correctly rejected: {err}"); } +/// `hostaddr` is where to connect and `host` is who to trust, as in libpq: the certificate +/// (`DNS:localhost` only) is checked against `host=localhost`, not against the `127.0.0.1` the +/// connection actually goes to. +#[tokio::test(flavor = "multi_thread")] +#[ignore = "requires live PostgreSQL with SSL enabled"] +async fn test_ssl_verify_full_checks_host_not_hostaddr() { + let slot = "it_ssl_hostaddr"; + drop_slot(slot); + + let ca = ca_cert_path(); + let conn_str = append_params( + &ssl_conn_string_with_host("localhost", "verify-full", Some(&ca)), + &[("hostaddr", "127.0.0.1")], + ); + + let stream = LogicalReplicationStream::new(&conn_str, ssl_test_config(slot)).await; + assert!( + stream.is_ok(), + "verify-full against host=localhost hostaddr=127.0.0.1 should check the certificate for \ + `localhost`: {:?}", + stream.err() + ); +} + // ─── End-to-End Streaming ─────────────────────────────────────────────────── /// End-to-end test: verify that WAL events flow correctly over a fully-verified diff --git a/load-tests/Cargo.lock b/load-tests/Cargo.lock index 0f83db7..33c231d 100644 --- a/load-tests/Cargo.lock +++ b/load-tests/Cargo.lock @@ -105,9 +105,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.12.1" +version = "1.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +checksum = "776dfebd015e2d8732c684a2c71003674ccb49457b539b9e82151ba38e96dd7c" dependencies = [ "serde", ] @@ -897,9 +897,9 @@ dependencies = [ [[package]] name = "pq-sys" -version = "0.7.8" +version = "0.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "297a95d6f2378891f949d9556723e15140e50d29eac07458dabcee8688995b1d" +checksum = "f334fec535bd34b8d39b7881dbcff395ccc2c287765a6a99b94354f75cf18751" dependencies = [ "libc", "pkg-config", @@ -1160,9 +1160,9 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" [[package]] name = "smallvec" -version = "1.16.5" +version = "1.16.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46" +checksum = "3244542535d5de959d90ec55d1b5ff0fd2bb7b1310223907d5f11932847f7b59" dependencies = [ "serde", ] diff --git a/src/connection/native/connection.rs b/src/connection/native/connection.rs index 9070837..16b038b 100644 --- a/src/connection/native/connection.rs +++ b/src/connection/native/connection.rs @@ -11,7 +11,7 @@ use std::sync::mpsc as std_mpsc; use std::sync::Arc; use tokio::sync::{mpsc, oneshot}; use tokio_util::sync::CancellationToken; -use tracing::debug; +use tracing::{debug, warn}; use super::conninfo::ConnInfo; use super::startup::{self, Transport}; @@ -623,6 +623,26 @@ where } } +/// Whether a read here would stall: the socket is registered with `handle`'s reactor, and a current-thread runtime turns its reactor only while it is running, so a read from any other runtime (or none) waits for a runtime that may be idle. +fn stalls_off_creating_runtime(handle: &tokio::runtime::Handle) -> bool { + handle.runtime_flavor() == tokio::runtime::RuntimeFlavor::CurrentThread + && tokio::runtime::Handle::try_current().map_or(true, |cur| cur.id() != handle.id()) +} + +/// The silent hang of such a read is the failure, so name it, once, while it can still be fixed. +#[cold] +#[inline(never)] +fn warn_if_read_off_creating_runtime(handle: &tokio::runtime::Handle) { + if stalls_off_creating_runtime(handle) { + warn!( + "this stream's connection was created on a current-thread runtime and is being read \ + from another runtime (or outside one): it makes progress only while the creating \ + runtime is running. Read it there, or build the stream with \ + `ReplicationStreamConfig::with_dedicated_io_thread(true)`" + ); + } +} + /// How a `NativeConnection` drives its socket I/O. /// /// `Inline` runs the connection's `Worker` directly on the caller's runtime, chosen on a multi-thread runtime, where this is safe and avoids the cross-thread channel/second-reactor cost, and on any runtime for a stream's own connection ([`NativeConnection::connect_async_nonblocking`]), which never calls a blocking method. `Threaded` keeps the dedicated worker-thread bridge, used by `connect` and `connect_async` on a current-thread runtime (where the inline `run_sync` `block_in_place` would panic) and with no ambient runtime (where a per-call temporary runtime would orphan the socket). The Inline variant owns a `Worker` (large `Transport`) on the I/O hot path; boxing it would add a pointer indirection to every read, so the size gap with the channel-only Threaded variant is an intentional tradeoff (cf. `Transport`). @@ -634,6 +654,8 @@ enum Driver { pending: VecDeque, /// The runtime the socket was created on; `run_sync` always drives sync I/O on it so the socket never ends up on a foreign or temporary reactor (see `run_sync`). handle: tokio::runtime::Handle, + /// Whether the first stream read has checked it runs on `handle`'s runtime. + runtime_checked: bool, }, /// Worker lives on its own thread; commands cross `cmd_tx`, batches `batch_rx`. Threaded { @@ -808,6 +830,7 @@ impl NativeConnection { worker, pending: VecDeque::with_capacity(256), handle, + runtime_checked: false, }, server_ver, copy: CopyMode::Idle, @@ -1143,8 +1166,15 @@ impl NativeConnection { // Inline: read directly on the caller's runtime. `copy::get_copy_data` // serves from `pending` first, then reads+drains the socket. Driver::Inline { - worker, pending, .. + worker, + pending, + handle, + runtime_checked, } => { + if !*runtime_checked { + *runtime_checked = true; + warn_if_read_off_creating_runtime(handle); + } let result = copy::get_copy_data( &mut worker.transport, &mut worker.read_buf, @@ -1560,6 +1590,7 @@ impl NativeConnection { worker, pending, handle, + .. } => { // Best-effort graceful shutdown (CopyDone + Terminate) on the // connection's original runtime. `close` only borrows the worker, so we can block to completion in the cases where that is safe: @@ -1716,6 +1747,7 @@ impl NativeConnection { worker, pending: VecDeque::new(), handle, + runtime_checked: false, }, server_ver, copy: CopyMode::Idle, @@ -1779,6 +1811,32 @@ mod tests { crate::sql_builder::quote_ident(identifier).unwrap() } + /// A current-thread runtime turns its reactor only while it runs, so only a read off *that* + /// runtime stalls; a multi-thread runtime drives its own reactor from its workers. + #[test] + fn only_a_read_off_a_current_thread_runtime_stalls() { + let current = || { + tokio::runtime::Builder::new_current_thread() + .build() + .unwrap() + }; + let (a, b) = (current(), current()); + let multi = tokio::runtime::Builder::new_multi_thread() + .worker_threads(1) + .build() + .unwrap(); + let (on_a, on_multi) = (a.handle().clone(), multi.handle().clone()); + + assert!(!a.block_on(async { stalls_off_creating_runtime(&on_a) })); + assert!(b.block_on(async { stalls_off_creating_runtime(&on_a) })); + assert!(multi.block_on(async { stalls_off_creating_runtime(&on_a) })); + assert!(stalls_off_creating_runtime(&on_a), "outside any runtime"); + + assert!(!a.block_on(async { stalls_off_creating_runtime(&on_multi) })); + assert!(!b.block_on(async { stalls_off_creating_runtime(&on_multi) })); + assert!(!stalls_off_creating_runtime(&on_multi)); + } + /// A failed query keeps the server's response on the error, next to the /// unchanged message, so the caller can match the SQLSTATE. #[test] @@ -2160,6 +2218,7 @@ mod tests { worker, pending: VecDeque::new(), handle: tokio::runtime::Handle::current(), + runtime_checked: false, }, server_ver: 160000, copy: CopyMode::Idle, @@ -2253,6 +2312,7 @@ mod tests { worker, pending: VecDeque::new(), handle: tokio::runtime::Handle::current(), + runtime_checked: false, }, server_ver: 170000, // `upload_manifest` checks the version before it reaches the guard copy: CopyMode::Idle, @@ -2283,6 +2343,7 @@ mod tests { worker, pending: VecDeque::new(), handle: tokio::runtime::Handle::current(), + runtime_checked: false, }, server_ver: 160000, copy: CopyMode::Idle, @@ -2321,6 +2382,7 @@ mod tests { worker, pending: VecDeque::new(), handle: tokio::runtime::Handle::current(), + runtime_checked: false, }, server_ver: 160000, copy: CopyMode::Replication, // skip the replication-mode gate @@ -2395,6 +2457,7 @@ mod tests { worker, pending: VecDeque::new(), handle: tokio::runtime::Handle::current(), + runtime_checked: false, }, server_ver: 160000, copy: CopyMode::Out { rx: None }, @@ -3008,6 +3071,7 @@ mod tests { worker, pending: VecDeque::new(), handle: tokio::runtime::Handle::current(), + runtime_checked: false, }, server_ver: 160000, copy: CopyMode::Idle, diff --git a/src/connection/native/conninfo.rs b/src/connection/native/conninfo.rs index 52da218..b9775de 100644 --- a/src/connection/native/conninfo.rs +++ b/src/connection/native/conninfo.rs @@ -8,8 +8,10 @@ use crate::error::ReplicationError; /// Parsed connection configuration. #[derive(Clone)] pub(crate) struct ConnInfo { - /// Server name or address. A value starting with `/` is the directory of a Unix-domain socket, `/.s.PGSQL.`, as in libpq. Empty means `localhost`, not libpq's default socket directory. + /// Server name. A value starting with `/` is the directory of a Unix-domain socket, `/.s.PGSQL.`, as in libpq. Empty means `localhost`, not libpq's default socket directory. It is what the server's certificate is checked against; use [`address`](Self::address) to connect. pub(super) host: String, + /// libpq's `hostaddr`, when non-empty: the address to connect to, whatever `host` says. `None` connects to `host`. + pub(super) hostaddr: Option, pub(super) port: u16, pub(super) user: String, pub(super) password: Option, @@ -97,6 +99,7 @@ impl std::fmt::Debug for ConnInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.debug_struct("ConnInfo") .field("host", &self.host) + .field("hostaddr", &self.hostaddr) .field("port", &self.port) .field("user", &self.user) .field( @@ -134,6 +137,20 @@ impl std::fmt::Debug for ConnInfo { } impl ConnInfo { + /// Where to connect: `hostaddr` when given, else `host`. + pub(super) fn address(&self) -> &str { + self.hostaddr.as_deref().unwrap_or(&self.host) + } + + /// The name the server's certificate is checked against: `host`, as in libpq, never `hostaddr`. A socket directory or an empty `host` is no name, so the address stands in. + pub(super) fn tls_name(&self) -> &str { + if self.host.is_empty() || self.host.starts_with('/') { + self.address() + } else { + &self.host + } + } + pub(crate) fn parse(conninfo: &str) -> Result { let info = if conninfo.starts_with("postgresql://") || conninfo.starts_with("postgres://") { Self::parse_uri(conninfo)? @@ -487,14 +504,17 @@ impl RawOpts { self.options, ); + // As in libpq, a non-empty `hostaddr` is where to connect whatever `host` says or where + // it comes in the string, so `host=/dir hostaddr=ip` is TCP; `host` stays the name the + // certificate is checked against. With only a `hostaddr`, it is also the name. + let hostaddr = self.hostaddr.filter(|addr| !addr.is_empty()); + Ok(ConnInfo { - // As in libpq, a non-empty `hostaddr` is the address to connect to whatever - // `host` says or where it comes in the string, so `host=/dir hostaddr=ip` is TCP. host: self - .hostaddr - .filter(|addr| !addr.is_empty()) - .or(self.host) + .host + .or_else(|| hostaddr.clone()) .unwrap_or_else(|| "localhost".to_string()), + hostaddr, port: self.port.unwrap_or(5432), dbname: self.dbname.unwrap_or_else(|| user.clone()), user, @@ -2116,21 +2136,54 @@ mod tests { /// A non-empty `hostaddr` is the address to connect to, whatever `host` says and /// in either order, as in libpq (psql 17: `hostaddr=127.0.0.1 host=/tmp` connects over /// TCP). So it must never fall back to a `/dir` socket host; an empty one is ignored. + /// The certificate is still checked against `host`, never the address + /// (`hostaddr=127.0.0.1 host=localhost sslmode=verify-full` needs a certificate for + /// `localhost`), unless `host` is no name: a socket directory, empty or not given. #[test] - fn a_hostaddr_wins_over_host_in_either_order() { - for (dsn, host) in [ - ("hostaddr=192.0.2.10 host=/tmp/x", "192.0.2.10"), - ("host=/tmp/x hostaddr=192.0.2.10", "192.0.2.10"), - ("host=db.example.com hostaddr=10.0.0.5", "10.0.0.5"), - ("hostaddr=10.0.0.5 host=db.example.com", "10.0.0.5"), + fn a_hostaddr_is_where_to_connect_and_host_is_who_to_trust() { + // (dsn, where to connect, name the certificate is checked against) + for (dsn, address, tls_name) in [ + ( + "hostaddr=192.0.2.10 host=/tmp/x", + "192.0.2.10", + "192.0.2.10", + ), + ( + "host=/tmp/x hostaddr=192.0.2.10", + "192.0.2.10", + "192.0.2.10", + ), + ( + "host=db.example.com hostaddr=10.0.0.5", + "10.0.0.5", + "db.example.com", + ), + ( + "hostaddr=10.0.0.5 host=db.example.com", + "10.0.0.5", + "db.example.com", + ), ( "postgresql:///db?hostaddr=192.0.2.10&host=/tmp/x", "192.0.2.10", + "192.0.2.10", + ), + ( + "postgresql:///db?hostaddr=10.0.0.5&host=db.example.com", + "10.0.0.5", + "db.example.com", ), - ("host=db.example.com hostaddr=''", "db.example.com"), - ("host=/tmp/x hostaddr=''", "/tmp/x"), + ("hostaddr=10.0.0.5", "10.0.0.5", "10.0.0.5"), + ("hostaddr=10.0.0.5 host=''", "10.0.0.5", "10.0.0.5"), + ( + "host=db.example.com hostaddr=''", + "db.example.com", + "db.example.com", + ), + ("host=/tmp/x hostaddr=''", "/tmp/x", "/tmp/x"), ] { - assert_eq!(ConnInfo::parse(dsn).unwrap().host, host, "{dsn}"); + let ci = ConnInfo::parse(dsn).unwrap(); + assert_eq!((ci.address(), ci.tls_name()), (address, tls_name), "{dsn}"); } } diff --git a/src/connection/native/startup.rs b/src/connection/native/startup.rs index 7f34f0b..9cad9a2 100644 --- a/src/connection/native/startup.rs +++ b/src/connection/native/startup.rs @@ -229,17 +229,20 @@ pub(super) async fn connect( .map_err(|_| { ReplicationError::transient_connection(format!( "Connection to {}:{} timed out after {}s before the startup handshake completed", - info.host, info.port, info.connect_timeout + info.address(), + info.port, + info.connect_timeout )) })? } async fn connect_inner(info: &ConnInfo) -> Result<(Transport, i32, BytesMut), ReplicationError> { - if info.host.starts_with('/') { + // A `hostaddr` forces TCP, as in libpq, even when `host` is a socket directory. + if info.hostaddr.is_none() && info.host.starts_with('/') { return connect_unix(info).await; } - let addr = format!("{}:{}", info.host, info.port); + let addr = format!("{}:{}", info.address(), info.port); // Whatever is wrong locally with the TLS setup (an unusable client identity, unreadable // root certificates) is a configuration error, settled before a socket is opened: the @@ -438,7 +441,7 @@ async fn negotiate_tls( ); // The TCP connection is consumed by the failed handshake attempt. // Open a new one for the standard SSLRequest fallback. - let addr = format!("{}:{}", info.host, info.port); + let addr = format!("{}:{}", info.address(), info.port); let tcp = tcp_connect(&addr, info).await?; return negotiate_tls_standard(tcp, info, tls).await; } @@ -466,7 +469,7 @@ async fn negotiate_tls_standard( // Server supports SSL — do the handshake tls_handshake( tcp, - &info.host, + info.tls_name(), TlsConnector::from(tls), "TLS", "TLS connection established", @@ -510,7 +513,7 @@ async fn negotiate_tls_direct( tls_handshake( tcp, - &info.host, + info.tls_name(), TlsConnector::from(Arc::new(tls_config)), "Direct TLS", "Direct TLS connection established (ALPN postgresql)", @@ -1370,6 +1373,7 @@ mod tests { fn test_conninfo(sslmode: SslMode, sslrootcert: Option) -> ConnInfo { ConnInfo { host: "localhost".to_string(), + hostaddr: None, port: 5432, user: "test".to_string(), password: None, diff --git a/src/lsn.rs b/src/lsn.rs index a592d66..ec41717 100644 --- a/src/lsn.rs +++ b/src/lsn.rs @@ -597,23 +597,53 @@ mod loom_tests { /// Whatever the consumer wrote before reporting an LSN is visible to a /// reader that observes it: the `Release` stores and `Acquire` loads. + /// + /// The reader is a spawned thread, not the model's main thread. With the reader on the main + /// thread, loom passed after `Release` -> `Relaxed` on either CAS and after `Acquire` -> + /// `Relaxed` on `get_applied_lsn`; these two tests fail on each of those. #[test] - fn an_observed_lsn_publishes_what_was_written_before_it() { + fn an_observed_applied_lsn_publishes_what_was_written_before_it() { loom::model(|| { let fb = Arc::new(SharedLsnFeedback::new()); let data = Arc::new(AtomicUsize::new(0)); let (writer, written) = (Arc::clone(&fb), Arc::clone(&data)); - let t = thread::spawn(move || { + let w = thread::spawn(move || { written.store(1, core::sync::atomic::Ordering::Relaxed); writer.update_applied_lsn(10); }); - if fb.get_applied_lsn() == 10 { - assert_eq!(data.load(core::sync::atomic::Ordering::Relaxed), 1); - } - if fb.get_flushed_lsn() == 10 { - assert_eq!(data.load(core::sync::atomic::Ordering::Relaxed), 1); - } - t.join().unwrap(); + let (reader, seen) = (Arc::clone(&fb), Arc::clone(&data)); + let r = thread::spawn(move || { + if reader.get_applied_lsn() == 10 { + assert_eq!(seen.load(core::sync::atomic::Ordering::Relaxed), 1); + } + if reader.get_flushed_lsn() == 10 { + assert_eq!(seen.load(core::sync::atomic::Ordering::Relaxed), 1); + } + }); + w.join().unwrap(); + r.join().unwrap(); + }); + } + + /// The same for `update_flushed_lsn`, whose own `Release` CAS the applied path does not use. + #[test] + fn an_observed_flushed_lsn_publishes_what_was_written_before_it() { + loom::model(|| { + let fb = Arc::new(SharedLsnFeedback::new()); + let data = Arc::new(AtomicUsize::new(0)); + let (writer, written) = (Arc::clone(&fb), Arc::clone(&data)); + let w = thread::spawn(move || { + written.store(1, core::sync::atomic::Ordering::Relaxed); + writer.update_flushed_lsn(10); + }); + let (reader, seen) = (Arc::clone(&fb), Arc::clone(&data)); + let r = thread::spawn(move || { + if reader.get_flushed_lsn() == 10 { + assert_eq!(seen.load(core::sync::atomic::Ordering::Relaxed), 1); + } + }); + w.join().unwrap(); + r.join().unwrap(); }); } } diff --git a/src/stream.rs b/src/stream.rs index b3723a6..a99a1f5 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -1022,7 +1022,8 @@ impl LogicalReplicationStream { /// On the native backend the connection's socket stays registered with the runtime that /// calls this, so read the stream on that runtime. On a current-thread runtime it must also /// be running: a stream created inside `rt.block_on(..)` and read from another runtime while - /// `rt` is idle makes no progress. [`with_dedicated_io_thread`](ReplicationStreamConfig::with_dedicated_io_thread) + /// `rt` is idle makes no progress, and the first such read logs a warning. + /// [`with_dedicated_io_thread`](ReplicationStreamConfig::with_dedicated_io_thread) /// lifts that restriction. /// /// # Errors