<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-dirserver/src/http.rs, branch arti-v2.0.0</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v2.0.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v2.0.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2026-01-27T19:11:05Z</updated>
<entry>
<title>dirserver: Allow clippy::unused_async</title>
<updated>2026-01-27T19:11:05Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2026-01-27T18:28:48Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3599bd9e56864ae220d7c2126b1e1a66cded9d8b'/>
<id>urn:sha1:3599bd9e56864ae220d7c2126b1e1a66cded9d8b</id>
<content type='text'>
This code is still WIP, no need to address the lint yet.
</content>
</entry>
<entry>
<title>tor-dirserver: Remove FromStr for DocumentId</title>
<updated>2026-01-22T15:20:19Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-01-22T15:20:19Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e17869b7bc0e7c674d5d770aec8c5cd120246a4c'/>
<id>urn:sha1:e17869b7bc0e7c674d5d770aec8c5cd120246a4c</id>
<content type='text'>
This commit removes FromStr for DocumentId because it was only used in
testing anyways.

Instead, it replaces it with a simple From&lt;[u8; 32]&gt; only enabled in
test builds, which is sufficient for what we are trying to do.

An alternative would be to make the inner field pub, but this seems to
aggressive for a testing only thing.
</content>
</entry>
<entry>
<title>tor-dirserver: Rename `doc_id` to `docid`</title>
<updated>2026-01-19T10:01:59Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-01-15T14:53:39Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0ba6540a84dc6ee15b79cdb49137fa659f4a4de8'/>
<id>urn:sha1:0ba6540a84dc6ee15b79cdb49137fa659f4a4de8</id>
<content type='text'>
Because we went with `docid` in the database (due to `rowid`), it is
only natural to call the code variables `docid` too.
</content>
</entry>
<entry>
<title>tor-dirserver: Rename sha256 to docid in schema</title>
<updated>2026-01-19T10:01:59Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-01-15T14:50:28Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=30d43c6384c57c7f90dbac7f40d496143cec6102'/>
<id>urn:sha1:30d43c6384c57c7f90dbac7f40d496143cec6102</id>
<content type='text'>
This commit renames the sha256 column to docid for the reason that we
agreed upon making the schema visible to all modules, so if we were to
encapsulate docid properly, this change is only natural.
</content>
</entry>
<entry>
<title>database: Introduce DocumentId</title>
<updated>2026-01-19T10:01:59Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-01-15T14:33:19Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2e0bf76a2878e7f9979dcac4bebe5b986596d6aa'/>
<id>urn:sha1:2e0bf76a2878e7f9979dcac4bebe5b986596d6aa</id>
<content type='text'>
This commit introduces a new type in the database module named
`DocumentId` for abstracting the underlying content-addressable hash
algorithm we are using.
</content>
</entry>
<entry>
<title>tor-dirserver: Move ContentEncoding to database</title>
<updated>2026-01-15T10:49:14Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2025-12-18T11:54:41Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=23cc9de36869513ea39ad6a8929bf2c31d26de99'/>
<id>urn:sha1:23cc9de36869513ea39ad6a8929bf2c31d26de99</id>
<content type='text'>
This commit moves the ContentEncoding enum from the http module to the
database module, primarily because the content encoding is more of a
matter to the database, as this is where the data actually resides.
</content>
</entry>
<entry>
<title>tor-dirserver: Support for inserting into store</title>
<updated>2026-01-15T10:49:12Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2025-12-18T11:51:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2770569e0b23da07b543c0c9719e17beaf2e1162'/>
<id>urn:sha1:2770569e0b23da07b543c0c9719e17beaf2e1162</id>
<content type='text'>
This commit implements support for adding arbitrary documents into the
store table.

It is non-trivial because the relevant data has to be compressed into
various formats, so it can be retrieved without delays.
</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>tor-dirserver: clippy fixes</title>
<updated>2025-11-03T12:59:27Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2025-11-03T12:59:27Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=325a6a476f931ea8aa62b177af5268824141e948'/>
<id>urn:sha1:325a6a476f931ea8aa62b177af5268824141e948</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-dirserver: Apply database changes to http</title>
<updated>2025-11-03T12:41:07Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2025-10-22T13:49:11Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=011a8d597aa04ad3277599ae541e962995b2b154'/>
<id>urn:sha1:011a8d597aa04ad3277599ae541e962995b2b154</id>
<content type='text'>
This commit applies the recent changes to the database module into the
http and http::cache module.

Notably, this includes the use of the database::sql! macro as well as
the use of database::read_tx and database::rw_tx for creation
transaction and saving, as well as retrying, although the latter one is
subject to SQLite's own busy handler
</content>
</entry>
</feed>
