<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-dirclient/src/util.rs, branch main</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=main</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2026-06-09T15:36:01Z</updated>
<entry>
<title>maint: Run maint/add_warning to deny string slices</title>
<updated>2026-06-09T15:36:01Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-06-09T15:36:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9f5752a77fb57052c06ead0eeae606831f1e8e97'/>
<id>urn:sha1:9f5752a77fb57052c06ead0eeae606831f1e8e97</id>
<content type='text'>
This commit executes maint/add_warning with the just added change to
deny string slices except in tests.

I recommend auditing this by checking out the previous commit followed
by running the script yourself and then verifying that the diff is
identical to this commit.

This commit makes cargo clippy fail.  We will add exceptions in the next
commit.
</content>
</entry>
<entry>
<title>dirclient: Split EncodedRequest and RequestBody.</title>
<updated>2026-05-12T12:11:58Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-05-11T13:07:42Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=803fbaccf0721290bdfc86977b646b274a608a1b'/>
<id>urn:sha1:803fbaccf0721290bdfc86977b646b274a608a1b</id>
<content type='text'>
RequestBody is now just an `Option&lt;Arc&lt;str&gt;&gt;` internally,
and EncodedRequest is much simpler.
</content>
</entry>
<entry>
<title>tor-dirclient: Avoid copying bytes that we want to POST.</title>
<updated>2026-05-12T12:10:03Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-04-25T21:13:45Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1f6d57019a4b2a1e5955e6b89e066d58718902d5'/>
<id>urn:sha1:1f6d57019a4b2a1e5955e6b89e066d58718902d5</id>
<content type='text'>
This required a change to the hsservice tests, which previously
assumed that we'd perform one write per request.
</content>
</entry>
<entry>
<title>tor-dirclient: Introduce a new RequestBody type.</title>
<updated>2026-05-12T12:10:03Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-04-25T20:45:54Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2ca3429618434b70c07b9da67c98708ecc11e9e0'/>
<id>urn:sha1:2ca3429618434b70c07b9da67c98708ecc11e9e0</id>
<content type='text'>
I'm going to use this to avoid copying when uploading large
documents.
</content>
</entry>
<entry>
<title>Fix name of clippy lint to unchecked_time_subtraction (2)</title>
<updated>2025-11-06T11:28:22Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-11-06T11:23:25Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a5fd5c48ea059a80cc1f6c50e248654b5ff3aaff'/>
<id>urn:sha1:a5fd5c48ea059a80cc1f6c50e248654b5ff3aaff</id>
<content type='text'>
Run maint/add_warning
</content>
</entry>
<entry>
<title>arti, cell, dirclient: Use expect instead of unwrap.</title>
<updated>2025-05-29T14:21:17Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-05-21T13:58:34Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=684d6a02fd044c33e9c40c15012d18853c3bc4c3'/>
<id>urn:sha1:684d6a02fd044c33e9c40c15012d18853c3bc4c3</id>
<content type='text'>
Clippy nightly detects this problem, though earlier clippy verisons
haven't.  The common element here is applying unwrap() to the result
from a write!().
</content>
</entry>
<entry>
<title>Run maint/add_warning.</title>
<updated>2024-03-13T16:30:53Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-03-13T16:30:53Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c0c9bd15d42897825dd0ab3d3b8dd1c17bd6320c'/>
<id>urn:sha1:c0c9bd15d42897825dd0ab3d3b8dd1c17bd6320c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Only send Content-Length when needed.</title>
<updated>2023-11-27T14:38:00Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-11-27T14:38:00Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=babebf2a9dc471c8de4bde0cc81e7f2c4c0aafff'/>
<id>urn:sha1:babebf2a9dc471c8de4bde0cc81e7f2c4c0aafff</id>
<content type='text'>
According to RFC 9110:

  A user agent SHOULD send Content-Length in a request when the
  method defines a meaning for enclosed content and it is not sending
  Transfer-Encoding. For example, a user agent normally sends
  Content-Length in a POST request even when the value is 0
  (indicating empty content). A user agent SHOULD NOT send a
  Content-Length header field when the request message does not
  contain content and the method semantics do not anticipate such
  data.

Part of #1024
</content>
</entry>
<entry>
<title>tor-dirclient, tor-netdoc: Add TODO SPECs.</title>
<updated>2023-10-24T14:42:35Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-10-24T12:06:53Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8cdcced5e612709d6c4c4ae9d27211818d4ab285'/>
<id>urn:sha1:8cdcced5e612709d6c4c4ae9d27211818d4ab285</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-dirclient: Always set the Content-Length header (fmt).</title>
<updated>2023-10-24T14:42:35Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-10-24T12:09:41Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=fdf4a81ca5586d571d65bffbb358515466ebc59c'/>
<id>urn:sha1:fdf4a81ca5586d571d65bffbb358515466ebc59c</id>
<content type='text'>
</content>
</entry>
</feed>
