<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-circmgr/src/usage.rs, 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>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>Add some missing imports</title>
<updated>2023-03-28T14:49:45Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-03-28T13:16:17Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=00e522a91ac1ecd59f48dc97a64319d748f2c482'/>
<id>urn:sha1:00e522a91ac1ecd59f48dc97a64319d748f2c482</id>
<content type='text'>
Now
  nailing-cargo +stable clippy -p tor-hsclient --all-features --all-targets
actually works.

squash! Add some missing imports
</content>
</entry>
<entry>
<title>circmgr: Make a separate SupportedCircUsage for HS stuff</title>
<updated>2023-03-22T16:35:41Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-03-21T13:04:29Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=19a229155cbcc0fa16e4e03a6c03b8e6a65ae38d'/>
<id>urn:sha1:19a229155cbcc0fa16e4e03a6c03b8e6a65ae38d</id>
<content type='text'>
This uncovered a bug: NoUsage wasn't correct for Hs circuits because
of its behavior with channel_usage().
</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>circmgr: make some imports conditional</title>
<updated>2022-11-18T13:53:47Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-11-16T18:23:17Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=76e41b8bf608a782a54859a89c0c060b16507fb3'/>
<id>urn:sha1:76e41b8bf608a782a54859a89c0c060b16507fb3</id>
<content type='text'>
This resolves an "unused import" warning when bridges are not
enabled.
</content>
</entry>
<entry>
<title>Remove a spurious log that I committed by mistake. Whoops.</title>
<updated>2022-11-15T18:15:32Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-11-15T18:15:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=db9440464b6037ae87ecdca78a4db5368a59887a'/>
<id>urn:sha1:db9440464b6037ae87ecdca78a4db5368a59887a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement more cases for `DirSpecificTarget`.</title>
<updated>2022-11-15T16:42:54Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-11-15T15:16:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=050eab9bba74c821c68618e6192b31802baf3963'/>
<id>urn:sha1:050eab9bba74c821c68618e6192b31802baf3963</id>
<content type='text'>
Without this fix, any attempt to actually use a circuit for a
`DirSpecificTarget` will fail, since supports() will say false, and
`restrict_mut()` will say `NotSupported`.
</content>
</entry>
<entry>
<title>tor-circmgr: Make get_or_launch_dir_specific feature-specific</title>
<updated>2022-10-21T14:19:18Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-10-21T14:15:58Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a30e42a7404ecc22a8058c08744f8028341e31b5'/>
<id>urn:sha1:a30e42a7404ecc22a8058c08744f8028341e31b5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>circmgr: Plumbing for direct to target directory circuits</title>
<updated>2022-10-20T12:28:30Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-10-17T16:21:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ef5e60c87906456194917ffa098e6756b2740e95'/>
<id>urn:sha1:ef5e60c87906456194917ffa098e6756b2740e95</id>
<content type='text'>
The target is identified by Into&lt;OwnedChanTarget&gt;.
We introduce corresponding TargetCircUsage and SupportedCircUsage.
</content>
</entry>
</feed>
