<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-circmgr/src/path, branch ios-sqlite-hacks</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=ios-sqlite-hacks</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=ios-sqlite-hacks'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-09-18T11:25:36Z</updated>
<entry>
<title>arti-client: add exit selection with GeoIP country codes</title>
<updated>2023-09-18T11:25:36Z</updated>
<author>
<name>eta</name>
<email>tor@eta.st</email>
</author>
<published>2023-08-22T15:52:28Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a6fe895eb5c605e9c8de7ba871fc2114d65e098c'/>
<id>urn:sha1:a6fe895eb5c605e9c8de7ba871fc2114d65e098c</id>
<content type='text'>
This threads the country codes work through the rest of the codebase:

- `tor-dirmgr` will now enable GeoIP with the embedded database when the
  `geoip` future is enabled
  - This can be extended later using the `DirMgrConfig` to allow
    specifying a custom database; this is not done here, though
- `tor-circmgr`'s `SupportedCircUsage` and `TargetCircUsage` fields gain
  new `country_code` members to allow filtering circuits by country
  - These are `()` in builds where the `geoip` feature is not enabled --
    doing it this way means we don't have to copy and paste huge swathes
    of code, since we can't use `#[cfg]` in patterns
- `ExitPathBuilder` gains (hacked-in) support for choosing a relay with
  the correct country code
  - Due to the lack of conjuction, we just copy and paste a small bit,
    pending further refactoring
- `StreamPrefs` now lets you specify a country code, letting embedders
  make use of the feature
</content>
</entry>
<entry>
<title>Run maint/add_warning to add lint block everywhere</title>
<updated>2023-08-23T09:34:00Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-08-22T14:28:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=42df88d6bf6dbb460d2e5e1cd4838aafaffbe9ac'/>
<id>urn:sha1:42df88d6bf6dbb460d2e5e1cd4838aafaffbe9ac</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Run maint/add_warning to actually apply new lint allows</title>
<updated>2023-07-10T12:49:51Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-07-10T11:19:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=473447a82e099fd52a674c28f5bc24b3e05208c0'/>
<id>urn:sha1:473447a82e099fd52a674c28f5bc24b3e05208c0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ExitPath: Add an explanation of WeightRole::Exit on non-exit circs</title>
<updated>2023-04-12T13:50:16Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-04-12T13:50:16Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2efdcd38ff009a53ea4b0b8f822c13247cf9ca75'/>
<id>urn:sha1:2efdcd38ff009a53ea4b0b8f822c13247cf9ca75</id>
<content type='text'>
In one case, we use WeightRole::Exit on circuits that can't
actually be used to exit.  This commit adds a comment to explain
why, so that we don't wonder about it in the future, and we have
some indication of whether it's still appropriate.

Closes #785
</content>
</entry>
<entry>
<title>circmgr: Mark a number of internal APIs as hs-only.</title>
<updated>2023-04-06T13:05:12Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-04-06T13:00:41Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=43e1128cdf722d183f337ac36dd3d944259b3e8d'/>
<id>urn:sha1:43e1128cdf722d183f337ac36dd3d944259b3e8d</id>
<content type='text'>
This resolves a few dead-code warnings.

Closes #801.
</content>
</entry>
<entry>
<title>circmgr: Expand an incomplete comment in exitpath.rs</title>
<updated>2023-04-06T12:59:41Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-04-06T12:59:41Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c22cf483fff37fcef4d5cefd18c73ad981750030'/>
<id>urn:sha1:c22cf483fff37fcef4d5cefd18c73ad981750030</id>
<content type='text'>
</content>
</entry>
<entry>
<title>circmgr: Add a usage for building the beginning of an hs circ</title>
<updated>2023-03-22T15:52:17Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-03-15T14:41:07Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=dce4da55ae20d4867d5caf79adc6402fe03559bd'/>
<id>urn:sha1:dce4da55ae20d4867d5caf79adc6402fe03559bd</id>
<content type='text'>
This only builds the first 3 hops. It can be extended to a fourth
hop later -- or not, depending on the circuit kind.
</content>
</entry>
<entry>
<title>Allow clippy::unchecked_duration_subtraction in tests</title>
<updated>2023-01-27T13:28:02Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-01-27T13:01:45Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a6dd92843edf2bd4c58de62a0d562921e4191ada'/>
<id>urn:sha1:a6dd92843edf2bd4c58de62a0d562921e4191ada</id>
<content type='text'>
This panics on error, and we're fine with a panic on misbehavior in
tests.
</content>
</entry>
<entry>
<title>test lint blocks: Add many many automatically</title>
<updated>2022-12-12T18:00:30Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-12-12T17:58:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=125a455bdcca841931f33f83f206e57637ae85c4'/>
<id>urn:sha1:125a455bdcca841931f33f83f206e57637ae85c4</id>
<content type='text'>
This is precisely the result of running the rune in
maint/adhoc-add-lint-blocks.
</content>
</entry>
<entry>
<title>Refactor external guardmgr APIs: Stop taking NetDir arguments.</title>
<updated>2022-11-08T13:10:15Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-11-02T17:54:00Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=95a95076a77f44478736464a6249bee345713ecc'/>
<id>urn:sha1:95a95076a77f44478736464a6249bee345713ecc</id>
<content type='text'>
These arguments were used only for legacy (testing) purposes; the
tests now use `TestNetDirProvider`.  This lets us simplify our
internal logic for passing a `NetDir` to our samples, and prepare
for having a `BridgeSet` to pass there instead.

This is a breaking change to `guardmgr` and `circmgr`.
</content>
</entry>
</feed>
