summaryrefslogtreecommitdiff
path: root/crates/tor-rtcompat/src/general.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove re-export of "general::*" from tor-rtcompat.Nick Mathewson2024-10-291-17/+15
|
* Remove re-export of "unix" from tor_rtcompat.Nick Mathewson2024-10-291-2/+2
|
* Extract general::SocketAddr and its unix friends to their own crate.Nick Mathewson2024-10-291-477/+21
| | | | This is mostly code motion.
* general::SocketAddr: Say "inet" rather than "tcp"Nick Mathewson2024-10-171-35/+35
| | | | | | | | | | "inet" makes more sense, since in principle these can also be used for udp, etc. Also making a corresponding change in rpc-connect-sketch.md, which uses this format. Closes #1701.
* rtcompat: Fix android compilation in `general`Nick Mathewson2024-10-171-1/+3
| | | | | | | | Previously I had assumed that `std::os::linux` also existed on android, based on the documentation of `std::os::linux::net::SocketAddrExt`. That is not, however, true. This should fix the `check-targets` CI job.
* rtcompat: Add a fuzzer for round-trip general::SocketAddr parsing.Nick Mathewson2024-10-161-0/+48
| | | | (This turned up another place where we need documentation.)
* general::SocketAddr: Format the unnamed address as "unix:"Nick Mathewson2024-10-161-5/+12
| | | | | This matches our parsing, and our general rule that our parser defers to SocketAddr::from_pathname.
* Add reverse-enginered description of Rust socketaddr formats.Nick Mathewson2024-10-161-0/+32
|
* general::SocketAddr: Add unit testsNick Mathewson2024-10-161-38/+69
|
* general::SocketAddr: Implement PartialEq.Nick Mathewson2024-10-161-0/+39
| | | | Needed for tests.
* general::SocketAddr: Specify and implement string representations.Nick Mathewson2024-10-161-1/+285
| | | | Closes #1681.
* rtcompat: Finalize names for general::SocketAddr.Nick Mathewson2024-09-241-0/+153