Skip to content

Update ipc-channel to 0.22 to drop bincode dependency#5115

Merged
RalfJung merged 2 commits into
rust-lang:masterfrom
Turbo87:update-ipc-channel
Jun 18, 2026
Merged

Update ipc-channel to 0.22 to drop bincode dependency#5115
RalfJung merged 2 commits into
rust-lang:masterfrom
Turbo87:update-ipc-channel

Conversation

@Turbo87

@Turbo87 Turbo87 commented Jun 18, 2026

Copy link
Copy Markdown
Member

ipc-channel 0.21 switched serialization from bincode to postcard, removing the transitive dependency on the unmaintained bincode crate (RUSTSEC-2025-0141). I've updated straight to 0.22, which appears to be compatible too.

Note that I haven't actually managed to compile this, since the dependency is limited to target_os = "linux" and I'm on macOS, but I hope that CI will be able to confirm that it works.

Related

@rustbot rustbot added the S-waiting-on-review Status: Waiting for a review to complete label Jun 18, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Jun 18, 2026
…llaumeGomez

rustdoc-json-types: Replace bincode dev-dependency with postcard

bincode is flagged as unmaintained by [RUSTSEC-2025-0141](https://rustsec.org/advisories/RUSTSEC-2025-0141), and the advisory covers the entire crate with no patched version available. The only use in `rustdoc-json-types` was the binary serde roundtrip in the type tests.

[postcard](https://crates.io/crates/postcard) is a maintained serde-based binary serialization format that covers the same roundtrip testing need.

bincode is still pulled in transitively by the miri subtree (via `ipc-channel`), which needs to be [addressed upstream](rust-lang/miri#5115).

### Related

- rust-lang/miri#5115
@RalfJung

Copy link
Copy Markdown
Member

Looks like this does not actually compile on Linux any more, unfortunately.

@Turbo87 Turbo87 marked this pull request as draft June 18, 2026 15:39
@rustbot rustbot added S-waiting-on-author Status: Waiting for the PR author to address review comments and removed S-waiting-on-review Status: Waiting for a review to complete labels Jun 18, 2026
Turbo87 added 2 commits June 18, 2026 18:03
ipc-channel 0.21 switched serialization from bincode to postcard,
removing the transitive dependency on the unmaintained bincode 1.x
(RUSTSEC-2025-0141). All APIs Miri uses remain unchanged.
ipc-channel 0.22 re-exports `TryRecvError` at the crate root instead
of the `ipc` module, where it is now a private import.
@Turbo87 Turbo87 force-pushed the update-ipc-channel branch from 2dd7f3f to 7c208dd Compare June 18, 2026 16:05
@Turbo87

Turbo87 commented Jun 18, 2026

Copy link
Copy Markdown
Member Author

Looks like this does not actually compile on Linux any more, unfortunately.

yeah, sorry, I meant to open this in draft mode from the start but forgot 🙈

the Priroda job was failing because I missed the second lockfile in the repo. the linux jobs were failing because apparently an import path had changed, but it's looking promising now :)

@RalfJung

Copy link
Copy Markdown
Member

@rustbot author
matching the draft state

@Turbo87

Turbo87 commented Jun 18, 2026

Copy link
Copy Markdown
Member Author

looks like CI is green now :)

@Turbo87 Turbo87 marked this pull request as ready for review June 18, 2026 16:37
@rustbot rustbot added S-waiting-on-review Status: Waiting for a review to complete and removed S-waiting-on-author Status: Waiting for the PR author to address review comments labels Jun 18, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Jun 18, 2026
…llaumeGomez

rustdoc-json-types: Replace bincode dev-dependency with postcard

bincode is flagged as unmaintained by [RUSTSEC-2025-0141](https://rustsec.org/advisories/RUSTSEC-2025-0141), and the advisory covers the entire crate with no patched version available. The only use in `rustdoc-json-types` was the binary serde roundtrip in the type tests.

[postcard](https://crates.io/crates/postcard) is a maintained serde-based binary serialization format that covers the same roundtrip testing need.

bincode is still pulled in transitively by the miri subtree (via `ipc-channel`), which needs to be [addressed upstream](rust-lang/miri#5115).

### Related

- rust-lang/miri#5115
@RalfJung RalfJung added this pull request to the merge queue Jun 18, 2026
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Jun 18, 2026
…llaumeGomez

rustdoc-json-types: Replace bincode dev-dependency with postcard

bincode is flagged as unmaintained by [RUSTSEC-2025-0141](https://rustsec.org/advisories/RUSTSEC-2025-0141), and the advisory covers the entire crate with no patched version available. The only use in `rustdoc-json-types` was the binary serde roundtrip in the type tests.

[postcard](https://crates.io/crates/postcard) is a maintained serde-based binary serialization format that covers the same roundtrip testing need.

bincode is still pulled in transitively by the miri subtree (via `ipc-channel`), which needs to be [addressed upstream](rust-lang/miri#5115).

### Related

- rust-lang/miri#5115
Merged via the queue into rust-lang:master with commit c3ec75a Jun 18, 2026
14 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Waiting for a review to complete label Jun 18, 2026
rust-timer added a commit to rust-lang/rust that referenced this pull request Jun 18, 2026
Rollup merge of #158077 - Turbo87:bincode-replacement, r=GuillaumeGomez

rustdoc-json-types: Replace bincode dev-dependency with postcard

bincode is flagged as unmaintained by [RUSTSEC-2025-0141](https://rustsec.org/advisories/RUSTSEC-2025-0141), and the advisory covers the entire crate with no patched version available. The only use in `rustdoc-json-types` was the binary serde roundtrip in the type tests.

[postcard](https://crates.io/crates/postcard) is a maintained serde-based binary serialization format that covers the same roundtrip testing need.

bincode is still pulled in transitively by the miri subtree (via `ipc-channel`), which needs to be [addressed upstream](rust-lang/miri#5115).

### Related

- rust-lang/miri#5115
github-actions Bot pushed a commit to rust-lang/stdarch that referenced this pull request Jun 19, 2026
rustdoc-json-types: Replace bincode dev-dependency with postcard

bincode is flagged as unmaintained by [RUSTSEC-2025-0141](https://rustsec.org/advisories/RUSTSEC-2025-0141), and the advisory covers the entire crate with no patched version available. The only use in `rustdoc-json-types` was the binary serde roundtrip in the type tests.

[postcard](https://crates.io/crates/postcard) is a maintained serde-based binary serialization format that covers the same roundtrip testing need.

bincode is still pulled in transitively by the miri subtree (via `ipc-channel`), which needs to be [addressed upstream](rust-lang/miri#5115).

### Related

- rust-lang/miri#5115
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants