<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-netdir/src/lib.rs, branch arti-v1.4.2</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.4.2</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.4.2'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2025-03-25T12:05:56Z</updated>
<entry>
<title>netdir: Add a (hopefully) temporary workaround</title>
<updated>2025-03-25T12:05:56Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-03-24T18:46:05Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=57c7a289513e2f0faf0844c6dee7513a59e703f3'/>
<id>urn:sha1:57c7a289513e2f0faf0844c6dee7513a59e703f3</id>
<content type='text'>
Instead of doing the more sensible thing when every relay has weight
0, give a warning message.
</content>
</entry>
<entry>
<title>netdir: Another test for choose_multiple_weighted.</title>
<updated>2025-03-25T12:05:56Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-03-24T12:57:02Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8c411a9d7394477cc9ad4dc6b5f3813cbe23a359'/>
<id>urn:sha1:8c411a9d7394477cc9ad4dc6b5f3813cbe23a359</id>
<content type='text'>
Here we test the (arguably inconsistent behavior) where can we
return fewer items than requested if no item had zero weight.
(If this ever becomes an error, we need to modify the calling code.)
</content>
</entry>
<entry>
<title>netdir: Warn on unexpected WeightedErrors</title>
<updated>2025-03-25T12:05:56Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-03-24T12:49:54Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=80553fb534303f7a10c34c5a52b90ae875eb0620'/>
<id>urn:sha1:80553fb534303f7a10c34c5a52b90ae875eb0620</id>
<content type='text'>
WeightedError::InsufficientNonzero is expected under some
circumstances, but the other instances would mean that we have a
bug.
</content>
</entry>
<entry>
<title>netdir: add a test to verify weighted sampling</title>
<updated>2025-03-25T12:05:56Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-03-24T12:34:36Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=69bf56db10dfc9ab439360c24e34988316630856'/>
<id>urn:sha1:69bf56db10dfc9ab439360c24e34988316630856</id>
<content type='text'>
We want to make sure that behavior for 0-weighted elements is
consistent for choose_multiple_weighted and choose_weighted.
</content>
</entry>
<entry>
<title>tor-netdir: Handle InsufficientNonZero error.</title>
<updated>2025-03-20T19:06:50Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-03-20T19:06:50Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a4ef9d0677f1e6b873189b8cd7360bec31a8edd9'/>
<id>urn:sha1:a4ef9d0677f1e6b873189b8cd7360bec31a8edd9</id>
<content type='text'>
Possible fix for #1902.
</content>
</entry>
<entry>
<title>squash! Upgrade rand dependency to 0.9.</title>
<updated>2025-03-18T16:09:44Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-03-18T14:26:16Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0805d27122b929f2eaa75f56761cb0da210d5b13'/>
<id>urn:sha1:0805d27122b929f2eaa75f56761cb0da210d5b13</id>
<content type='text'>
- Several methods have been moved out of SliceRandom.
</content>
</entry>
<entry>
<title>squash! Upgrade rand dependency to 0.9.</title>
<updated>2025-03-18T16:09:44Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-03-18T13:02:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e57c16e03ddf07dffaa4dda4fa1b4101ac02a233'/>
<id>urn:sha1:e57c16e03ddf07dffaa4dda4fa1b4101ac02a233</id>
<content type='text'>
- The rand::distributions module has been renamed to rand::distr
</content>
</entry>
<entry>
<title>netdir: Consider RelayFamilyIds based on family rules</title>
<updated>2025-02-25T14:29:50Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-02-10T21:10:15Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9650d0b75d6a5ce5c554cb0ac04077374a889538'/>
<id>urn:sha1:9650d0b75d6a5ce5c554cb0ac04077374a889538</id>
<content type='text'>
This implements the client side of proposal 321.

It's a breaking change in netdir, since in_same_family now takes an
extra argument.
</content>
</entry>
<entry>
<title>relay-selection: Add FamilyRules to exclude_relays_in_same_family.</title>
<updated>2025-02-25T14:29:50Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-02-10T20:51:36Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5ce84e59b6031416a7d404d20c3a2efce0ec5f2a'/>
<id>urn:sha1:5ce84e59b6031416a7d404d20c3a2efce0ec5f2a</id>
<content type='text'>
When we're trying to exclude relays by family,
we need to know which lists to look at.
This information ultimately comes from the network parameters.

We could avoid this change if we just told clients
"look at all family information all the time",
but that's not what the proposal says.

This is a breaking change.
</content>
</entry>
<entry>
<title>clippy: deny `mod_module_files`</title>
<updated>2025-01-06T23:09:41Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2025-01-06T23:02:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=252a3a803b2db65792db5bd51dee8950d8557e0d'/>
<id>urn:sha1:252a3a803b2db65792db5bd51dee8950d8557e0d</id>
<content type='text'>
Denies 'mod.rs' files for consistency.

https://rust-lang.github.io/rust-clippy/master/index.html#mod_module_files
</content>
</entry>
</feed>
