<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-netdoc/src/doc/netstatus/rs, branch arti-v1.1.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.1.2</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.2'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2022-09-30T13:00:42Z</updated>
<entry>
<title>Work around a new nightly clippy warning</title>
<updated>2022-09-30T13:00:42Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-09-30T13:00:42Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6a04188d59e2bd2365340b60643c91d4b9c78e9b'/>
<id>urn:sha1:6a04188d59e2bd2365340b60643c91d4b9c78e9b</id>
<content type='text'>
The warning `clippy::bool_to_int_with_if` is meant to shout at you
when you say `if x { 1 } else { 0 }` and instead suggest that you
say `inttype::from(x)`.

I agreed with this for the case in tor-cert, where we are literally
converting a boolean into a flag.

I don't agree with this in tor-netdoc, where we are using a boolean
to decide how many fields to skip in a given document format.  So
for this case, I decided to clean up the code a little by renaming
"skip" to "n_skip", and changing the boolean to use an enum instead.
</content>
</entry>
<entry>
<title>add feature annotation to fields made visible through visible::StructFields</title>
<updated>2022-08-24T16:22:41Z</updated>
<author>
<name>trinity-1686a</name>
<email>trinity@deuxfleurs.fr</email>
</author>
<published>2022-08-18T00:24:22Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ca99e9f63587fcf8164b813f4ca265507002ea53'/>
<id>urn:sha1:ca99e9f63587fcf8164b813f4ca265507002ea53</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add feature annotation not added by doc_auto_cfg</title>
<updated>2022-08-24T16:22:41Z</updated>
<author>
<name>trinity-1686a</name>
<email>trinity@deuxfleurs.fr</email>
</author>
<published>2022-08-18T00:04:46Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=426a59b2ba591e20a13c568d665310c55e2f8e53'/>
<id>urn:sha1:426a59b2ba591e20a13c568d665310c55e2f8e53</id>
<content type='text'>
</content>
</entry>
<entry>
<title>netdoc: add a new type for Nicknames</title>
<updated>2022-05-09T19:59:38Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-03-10T21:38:23Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3b0336e841f537196408f43a4928df20398c160d'/>
<id>urn:sha1:3b0336e841f537196408f43a4928df20398c160d</id>
<content type='text'>
Relay nicknames are always between 1 and 19 characters long, and
they're always ASCII: That means that storing them in a [u8;19] will
always be possible, and always use less resources than storing them
in a String.

Fortunately, the tinystr crate already helps us with this kind of
thing.
</content>
</entry>
<entry>
<title>squash! Bump every crate's edition to 2021.</title>
<updated>2022-04-25T17:06:26Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-04-25T16:40:33Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2f6bc6bdc431fa36de70a167eea777dcf3f60bf2'/>
<id>urn:sha1:2f6bc6bdc431fa36de70a167eea777dcf3f60bf2</id>
<content type='text'>
Remove all `use` statements for `TryFrom` and `TryInto`.  These are
now redundant in Rust 2021.
</content>
</entry>
<entry>
<title>Re-order attributes so that we can build with Rust 1.53.</title>
<updated>2022-03-31T15:11:02Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-03-31T15:06:58Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0725e388a592a8ab7e2235fef2b2d7a396fe64d0'/>
<id>urn:sha1:0725e388a592a8ab7e2235fef2b2d7a396fe64d0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdoc: Conditionally expose document fields.</title>
<updated>2022-03-31T13:27:27Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-03-31T13:20:21Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b1b7ef00a0f96c3d878788cd890ed67656bcc1f4'/>
<id>urn:sha1:b1b7ef00a0f96c3d878788cd890ed67656bcc1f4</id>
<content type='text'>
This commit uses the `visibility` and `visible` crates to
conditionally make certain structs and their fields public
(respectively).  This is incredibly dangerous to use for anything
besides testing, and I've tried to write the documentation for the
feature accordingly.
</content>
</entry>
<entry>
<title>Canonicalize and intern protover lines on descriptors</title>
<updated>2022-03-11T21:56:12Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-03-10T16:39:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a98ae2a1f06a50238a4eb89d5d181ccc5c1a65c2'/>
<id>urn:sha1:a98ae2a1f06a50238a4eb89d5d181ccc5c1a65c2</id>
<content type='text'>
This should save around 1MB per consensus, since every relay has a
'protocols' lines, but there are only a few distinct possibilities
for such a line.

Closes #385.
</content>
</entry>
<entry>
<title>netdoc: Make versions smaller in GenericRouterStatus</title>
<updated>2022-03-11T19:03:29Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-03-11T14:59:41Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e7c584f1b322d40f0bc50189000958d8dbadeec1'/>
<id>urn:sha1:e7c584f1b322d40f0bc50189000958d8dbadeec1</id>
<content type='text'>
When the version is a Tor version, we can just parse it; otherwise,
we can intern it.  This shrinks GenericRouterStatus and avoids a lot
of extra help allocations.
</content>
</entry>
<entry>
<title>tor-netdoc: Remove unused or_port field from RS.</title>
<updated>2022-03-11T19:03:29Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-03-10T20:57:34Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=da82c76399896fae8ccc31568727f1fae2ec69dd'/>
<id>urn:sha1:da82c76399896fae8ccc31568727f1fae2ec69dd</id>
<content type='text'>
Part of #387
</content>
</entry>
</feed>
