summaryrefslogtreecommitdiff
path: root/crates/tor-netdir/semver.md
Commit message (Collapse)AuthorAgeFilesLines
* FlagEvent trait: Implement using macrosIan Jackson2022-10-251-1/+1
| | | | | | | | | | | The explicit list of variant names, that needs to be kept in sync, and is a test failure semver break hazard, is now gone. All the necessary code is now generated automatically, and cannot be wrong. I want this because I find myself wanting to add a second implementation of FlagEvent, for another type.
* netdir: Expose addrs-in-same-subnets calculation from SubnetConfigNick Mathewson2022-10-241-0/+2
| | | | | Previously this was a private method only visible from Relay, but now we can use it on any two HasAddrs objects.
* Remove semver.md from arti-1.0.0Nick Mathewson2022-09-071-4/+0
|
* Merge branch 'main' into 'linkspec_refactor_v3'Nick Mathewson2022-08-101-0/+1
|\ | | | | | | # Conflicts: # crates/tor-netdir/semver.md
| * Add params() method to NetDirProvider, and partial implementationNick Mathewson2022-08-021-0/+1
| | | | | | | | | | | | | | | | This method will let users get the latest `NetParameters`, with user-configured overrides, even if there is no current directory at all. Part of #528
* | netdir: remove long-unused missing_descriptor_for codeNick Mathewson2022-08-101-0/+2
| |
* | tor-linkspec: Refactor out traits to represent a relay's ID set.Nick Mathewson2022-08-021-0/+1
|/ | | | | | | | | | | | | | We want the set of identities supported by a relay to be extensible in the future with minimal fuss; we'd also like to make working with these ID sets more convenient. To handle that, this commit adds a new trait for "Something that has the same IDs as a relay" and a new object for "an owned representation of a relay's IDs." This commit introduces a similar trait for "Something with a list of SocketAddr, like a relay has." There's no owned equivelent for that, since Vec<SocketAddr> is already a thing. Closes #428.
* Now that versions have bumped, remove semver.md files.Nick Mathewson2022-08-011-4/+0
|
* tor-netdir: Remove latest_netdir method.Nick Mathewson2022-07-261-0/+1
|
* Add new APIs to NetDirProvider to better support timeliness.Nick Mathewson2022-07-261-0/+2
| | | | | | | | | | | | | | | | | Over the years we've found that most callers who want a netdir want what C Tor calls a "reasonably live" network directory: One that is not expired by too much, or too far in the future. But a few want a _strictly_ live directory: one that says it is valid now, with no tolerances. And a few want _any_ directory, no matter how expired it is. This commit adds net methods to NetDirProvider to provide these directories. I think that most use cases will want to explicitly think about what kind of directory they want, so I've made `netdir` the simplest method. I might remove `timely_netdir` by the end of this branch; see TODO comments. Part of #518.
* netdir: Make pick() functions take FnMut closures.Nick Mathewson2022-07-121-0/+1
| | | | | | There's no reason to enforce their being Fn closures, and allowing them to be FnMut allows us to count which filters make us rejected given relays.
* Remove semver.md files now that 0.5.0 is outNick Mathewson2022-06-241-2/+0
|
* Make NetDirProvider require Send and Sync.Nick Mathewson2022-06-071-0/+2
Our own code is the only stuff that consumes NetDirProvider, and all the code that consumes it wants it to be Send and Sync. Making this change avoids our having to define a new function to upcast Arc<dyn Foo> to Arc<dyn NetDirProvider + Send + Sync>.