<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-netdir/src/weight.rs, branch arti-v0.2.0</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v0.2.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v0.2.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2022-03-30T12:55:58Z</updated>
<entry>
<title>Remove allow(clippy::disallowed_methods) lint.</title>
<updated>2022-03-30T12:55:58Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-03-30T12:55:58Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=700e491813f84d76446193aef7121a329b774717'/>
<id>urn:sha1:700e491813f84d76446193aef7121a329b774717</id>
<content type='text'>
</content>
</entry>
<entry>
<title>use wallclock where possible in tests</title>
<updated>2022-02-25T23:33:44Z</updated>
<author>
<name>trinity-1686a</name>
<email>trinity@deuxfleurs.fr</email>
</author>
<published>2022-02-25T23:33:44Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f06b25601006ba42c427349837dca6d5634bc718'/>
<id>urn:sha1:f06b25601006ba42c427349837dca6d5634bc718</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdir: Resolve an XXXX about type ugliness</title>
<updated>2021-12-08T17:32:44Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-12-08T17:21:58Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a25960b44c17e32102d553bf716a542c196882d3'/>
<id>urn:sha1:a25960b44c17e32102d553bf716a542c196882d3</id>
<content type='text'>
We had no function to infallibly convert BoundedInt32&lt;{0 or 1},H&gt;
into a u32, even though we could have.  Because of that, we were
treating weight_scale as an i32 when logically it's a u32 or a
NonZeroU32.

Moreover, it turns out we were using an incorrect minimum for the
bwweightscale param, which would in theory have allowed the
authorities to make us divide by zero.

This patch introduces the necessary From&lt;&gt; implementation and uses
it.  It corrects the binimum bwweightscale, and prevents a
division-by-zero issue in case weight_scale is zero.
</content>
</entry>
<entry>
<title>tor-netdir: Use bitflags for WeightKind</title>
<updated>2021-11-30T23:16:12Z</updated>
<author>
<name>Neel Chauhan</name>
<email>neel@neelc.org</email>
</author>
<published>2021-11-30T23:16:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d5869253882e41625aa0a0c1ec6d0dec6e755783'/>
<id>urn:sha1:d5869253882e41625aa0a0c1ec6d0dec6e755783</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'origin/mr/71'</title>
<updated>2021-09-08T18:14:39Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-09-08T18:14:39Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=949313e2880e9b55973cdc9b4f3406c8ca60b415'/>
<id>urn:sha1:949313e2880e9b55973cdc9b4f3406c8ca60b415</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add validation function to WeightSet</title>
<updated>2021-09-08T16:38:20Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-09-08T16:38:20Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=929cf840730911ffec6d74d0325788918c983ae2'/>
<id>urn:sha1:929cf840730911ffec6d74d0325788918c983ae2</id>
<content type='text'>
Our relay selection code can give wrong answers if we overflow
u64::MAX, so let's make sure we never do that.
</content>
</entry>
<entry>
<title>fix/silence clippy lints in test modules</title>
<updated>2021-09-08T15:28:31Z</updated>
<author>
<name>Daniel Eades</name>
<email>danieleades@hotmail.com</email>
</author>
<published>2021-08-30T07:52:16Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=fb3b8b84b5709ebe8a29051c43b82c4eef85decc'/>
<id>urn:sha1:fb3b8b84b5709ebe8a29051c43b82c4eef85decc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move all crates into a `crates` subdirectory.</title>
<updated>2021-08-27T13:53:09Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-08-27T13:53:09Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=557a0ff40b3731d4690767de27010bbeff08777d'/>
<id>urn:sha1:557a0ff40b3731d4690767de27010bbeff08777d</id>
<content type='text'>
This will cause some pain for now, but now is really the best time
to do this kind of thing.
</content>
</entry>
</feed>
