Max/mixtcp#6321
Merged
mfahampshire merged 30 commits intodevelopfrom Apr 14, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
bf07b23 to
ab937ab
Compare
Introduces mixtcp, a smoltcp-based device that tunnels TCP/IP through the mixnet via IpMixStream and Exit Gateway IPRs. Components: - NymIprDevice: smoltcp::phy::Device impl using channel-based I/O - NymIprBridge: async task bridging the device to IpMixStream - create_device(): helper to set up the complete stack Examples: - cloudflare_ping: ICMP ping through the mixnet - https_client: HTTPS requests through the mixnet - tls: TLS connections through the mixnet
- Drop sync NymIprDevice, create_device(), and raw/ examples
- Flatten src/tunnel/{mod,device}.rs into src/{tunnel,device}.rs
- Remove unused socket-icmp and proto-ipv6 smoltcp features
- Tighten bridge/device visibility to pub(crate)
- Fix silent error swallowing in handle_incoming() select branch - Remove cargo-cult 1s sleep before disconnect (SDK handles via TaskTracker) - Rename confusing bridge fields: tx_receiver/rx_sender -> outgoing_rx/incoming_tx - Document cancel-safety risk, drop-path shutdown, post-shutdown behavior - Add comment on error loop rate limiting (SDK's internal 10s timeout)
- Add src/ARCHITECTURE.md as single source of truth for architecture - Include in docs.rs via doc = include_str! - Strip duplicated diagrams from tunnel.rs, device.rs, README - Extract tls_connector() helper in HTTPS example to match websocket example - Use consistent 'smolmix' casing in README
- stream_wrapper::{IpMixStream, NetworkEnvironment} → ipr_wrapper::
- connect_tunnel() → check_connected()
- disconnect_stream() → disconnect()
- allocated_ips() returns &IpPair directly (no Option)
- Add Tunnel::new_with_ipr() for targeting a specific exit node - Re-export IpPair and Recipient so users don't need direct deps - Add DNS leak warning to WebSocket example - Await hyper connection task in HTTPS example
- Move core tunnel code to smolmix/core/ - Add smolmix-dns: hickory RuntimeProvider over tunnel - Add smolmix-tls: shared TLS connector extracted from hyper/tungstenite - Add smolmix-hyper: tower Service<Uri> connector for hyper-util - Add smolmix-tungstenite: WebSocket over TLS through tunnel - Add smolmix-libp2p: libp2p 0.56 Transport trait (dial-only) - Rewrite examples for each crate with clearnet/mixnet comparisons
- Explain TCP-layer vs message-layer design and why it matters - Document trait impls and I/O bridges for each companion crate - Add quick start, crate table, and example commands
- Replace stale stream_wrapper description with ipr_wrapper + mixnet::stream - Remove TODO comment
d24e8ef to
0eec857
Compare
jstuczyn
reviewed
Apr 13, 2026
Contributor
jstuczyn
left a comment
There was a problem hiding this comment.
you will also have to definitely resolve the compilation issue. it looks like one of the new dependencies imports different version of one of the crypto libraries - not entirely sure which one, I haven't looked too deeply into that. if we have no choice but try to update something on our end - let's talk about it.
and after that is done, I reckon, CI is going to scream more about different things, but let's take things one at a time : )
smolmix dependencies to import from workspace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 3 of breaking #6129 into smaller chunks.
Should only be looked at after #6320 is merged and this branch is rebased removing most of the commits).DONEThis contains the
mixtcpproof of concept - the-corecrate that we can build connectors from for theTokioasync ecosystem, exposing atunnelabstraction which gives developers something that looks and acts like either a TCP or UDP socket, for client-side-only integrations.This change is