Repository navigation
Conversation
Port owly-userspace into crates/owly-userspace on top of workspace owly-awdl and owly-airdrop (v0.4.3): - Inherit workspace package metadata, edition, version, and lints - Drop unused crc32fast dependency and gate rustls/ring behind an optional default feature so cross-target checks (Windows, Android, macOS) succeed without C toolchains, matching owly-airdrop - Add owly-userspace to justfile portability checks and version bump - Keep all integration suites (7-layer sim, OWL wire vectors & fuzzing, UDP radiotap bridge, and MT7612U/AR9271 USB bulk framing)
Add examples/showcase.rs demonstrating what owly-userspace does that the other workspace crates cannot do on their own: a single rootless, zero-TAP, zero-hardware process running a 4-node AWDL mesh with channel isolation and 5% RF packet loss, userspace IPv6/mDNS/TLS, interactive /Ask decline, in-memory DVZip and Gzip transfers, URL sharing, MT7612U USB bulk URB framing, and Radiotap PCAP capture/verification.
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.
What
This PR adds the missing composition layer between Owly’s sans-I/O protocol cores and its OS-specific drivers. It allows the complete AWDL-to-AirDrop stack to run and be tested inside one rootless process, without TAP interfaces, system sockets, disk staging, or Wi-Fi hardware. The crate originated as a standalone experiment and is being moved into the workspace to prevent API drift and provide a maintained integration testbed for the Owly protocol stack.
Why
This crate originated as the integration and bring-up track that ran in parallel with an original (unrelated-to-owly) AWDL implementation and the effort to make AirDrop work on non-Apple devices. It connected the AWDL state machine to userspace IPv6, mDNS, TLS, and AirDrop so the complete protocol could be developed and tested before the Linux TAP, privileged radio, and physical-hardware paths were ready. Moving it into the Owly workspace preserves that end-to-end harness, prevents it from drifting from owly-awdl and owly-airdrop, and provides a rootless environment for continued protocol and userspace-radio development.
See also the History section at the bottom.
Summary
Add
owly-userspaceas a new workspace crate that composes:owly-awdlfor AWDL synchronization, election, scheduling, and framingsmoltcpfor userspace IPv6, TCP, and UDPrustlsfor TLS insidesmoltcpsocketsowly-airdropfor mDNS,/Discover,/Ask, uploads, and URL sharesThe stack runs without root, TAP interfaces, or Wi-Fi hardware when using its deterministic simulator. It also provides a Radiotap-over-UDP transport and USB radio framing and firmware-transfer primitives.
Highlights
_airdrop._tcpmDNS discovery overff02::fb:5353smoltcpTCP socketsShowcase
The showcase exercises a four-node AWDL simulation, channel isolation, packet loss, mDNS, TLS,
/Discover, an interactive decline, DVZip and Gzip transfers, URL sharing, simulated USB TX/RX framing, and PCAP inspection.Feature behavior
Default features are
udpandring.With
default-features = false, applications must install a rustls crypto provider before creating TLS connections. USB enumeration and transport are available throughnusbon Linux, macOS, and Windows; Android retains the framing APIs but reports enumeration as unsupported.USB scope
This PR does not claim complete MT7612U hardware bring-up. It provides framing, endpoint selection, image parsing, control-transfer construction, and firmware image transfer. Reset, patch enablement, firmware startup, EEPROM handling, calibration, and MCU channel configuration remain future work.
Verification
cargo fmt --all --checkcargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo test -p owly-userspace --all-features --lockedcargo test -p owly-userspace --no-default-features --lockedcargo xtask coveragecargo xtask hardware --checkHistory
owly-userspace was originally created as a companion to a standalone (and unrelated-to-owly) AWDL crate during the early bring-up of AirDrop support for non-Apple devices. At that point, the work was progressing along two parallel tracks:
Implement and validate AWDL itself: the synchronization, election, channel scheduling, peer discovery, and 802.11 framing needed to communicate with Apple devices.
Bring up the higher-level AirDrop protocol: IPv6, mDNS discovery, TLS, /Discover, /Ask, and file transfer without making that work depend on a finished Linux radio driver, TAP interface, or particular Wi-Fi chipset.
owly-userspace (awdl-userspace at that time) connected those tracks. It supplied an in-process IPv6/TCP stack with smoltcp, drove TLS through rustls, and connected the result to the AirDrop protocol state machines. Its deterministic simulated radio made it possible to exercise the complete path while physical-radio support and OS integration were still being developed independently.
In other words, it was created as a bring-up and integration harness for proving that a non-Apple device could run the full AWDL-to-AirDrop stack and not just parse AWDL frames. It allowed protocol development, debugging, packet-loss testing, PCAP inspection, and early transport experimentation to continue before the privileged Linux and hardware paths were ready.
Now that owly-awdl and owly-airdrop live together in the Owly workspace and have evolved beyond their original standalone versions, this PR brings that parallel integration track back into the main project. Doing so prevents API drift and preserves it as a maintained end-to-end testbed, embedding example, and foundation for future userspace radio work.