<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-netdoc/src/doc/netstatus/rs.rs, branch arti-v1.1.8</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.8</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.8'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-05-10T14:52:28Z</updated>
<entry>
<title>netdoc: Rename `ParseError{Kind, Source}` to `NetdocError{Kind, Source}`.</title>
<updated>2023-05-10T14:52:28Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-05-10T14:40:57Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=099b2315b015b96cd8163a364f92810ea4982cfa'/>
<id>urn:sha1:099b2315b015b96cd8163a364f92810ea4982cfa</id>
<content type='text'>
`ParseErrorSource` was originally meant to represent a parsing error,
this enum has since gained some variants that aren't really parsing
related (`Signature`, `CertSignature`, `UntimelyDescriptor`).

Since this error type is now used for general-purpose netdoc errors,
let's rename `ParseError{Kind, Source}` to `NetdocError{Kind, Source}`.

Signed-off-by: Gabriela Moldovan &lt;gabi@torproject.org&gt;
</content>
</entry>
<entry>
<title>netdir: more documentation on MIDDLE_ONLY flag.</title>
<updated>2023-04-17T20:48:15Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-04-17T20:44:38Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=39857002168cfc206a6c136ac92cad4d10f3d255'/>
<id>urn:sha1:39857002168cfc206a6c136ac92cad4d10f3d255</id>
<content type='text'>
Clarify that it isn't anything that most users will need to check.
</content>
</entry>
<entry>
<title>netdoc: Add MiddleOnly flag to RelayFlags</title>
<updated>2023-04-17T09:53:04Z</updated>
<author>
<name>juga</name>
<email>juga@riseup.net</email>
</author>
<published>2023-04-17T09:46:06Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=eee1dbee7a1d993c06cc9e933993514ab6dea093'/>
<id>urn:sha1:eee1dbee7a1d993c06cc9e933993514ab6dea093</id>
<content type='text'>
Closes #833
</content>
</entry>
<entry>
<title>hsdir: Be able to enumerate the hidden service directories</title>
<updated>2023-02-09T13:01:37Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-02-07T15:48:57Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f5c3c1f2777565bb956ccfeb94217edf8b7c9de2'/>
<id>urn:sha1:f5c3c1f2777565bb956ccfeb94217edf8b7c9de2</id>
<content type='text'>
* Provide an accessor for the HSDIR flag
* Provide a function for testing a relay for hsdir inclusion
* Provide an iterator on NetDir that returns the hsdirs
</content>
</entry>
<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>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>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>
</feed>
