<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/arti-client/examples/readme.rs, branch derive-traits</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=derive-traits</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=derive-traits'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2022-02-28T16:41:13Z</updated>
<entry>
<title>arti-client: use PreferredRuntime by default, doc cleanups</title>
<updated>2022-02-28T16:41:13Z</updated>
<author>
<name>eta</name>
<email>tor@eta.st</email>
</author>
<published>2022-02-25T18:13:02Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=13ba0ea005ddd87bba2d53ab738ce948f031e1e8'/>
<id>urn:sha1:13ba0ea005ddd87bba2d53ab738ce948f031e1e8</id>
<content type='text'>
This makes using the `PreferredRuntime` the first-class option inside
`arti-client`, freeing users who don't want to think about runtimes from
having to do so.

`TorClient::create_unbootstrapped` and `builder` now automatically
use this runtime, leaving only `builder_custom` for users who wish to
manually specify a runtime.

This lets us clean up the docs a lot: mentions of using custom runtimes
are now relegated to nearer the end of the crate-level documentation,
and we mostly just link to `tor_rtcompat`'s docs to explain more there.
Instead, we take some more time to explain how you use the builder API
to create clients synchronously.

Other doc cleanups included getting rid of the explanation of `TorAddr`
in the main crate-level doc; this is already well-documented elsewhere,
and is something users should discover organically later.

fixes arti#326
</content>
</entry>
<entry>
<title>Allow creating unbootstrapped `TorClient`s (and `DirMgr`s)</title>
<updated>2022-02-11T16:42:19Z</updated>
<author>
<name>eta</name>
<email>tor@eta.st</email>
</author>
<published>2022-02-09T16:27:34Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=882e75cd280ede6dc284f11db9e8f17947435ebe'/>
<id>urn:sha1:882e75cd280ede6dc284f11db9e8f17947435ebe</id>
<content type='text'>
This commit changes how the `TorClient` type works, enabling it to be
constructed synchronously without initiating the bootstrapping process.
Daemon tasks are still started on construction (although some of them
won't do anything if the client isn't bootstrapped).

The old bootstrap() methods are now reimplemented in terms of the new
create_unbootstrapped() and bootstrap_existing() methods.

This required refactoring how the `DirMgr` works to enable the same sort
of thing there.

closes #293
</content>
</entry>
<entry>
<title>Make current/create functions into runtime member functions.</title>
<updated>2022-01-26T19:06:58Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-01-26T13:40:35Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6f29d485e460b30cba992bcb407bf3c7e2a479b7'/>
<id>urn:sha1:6f29d485e460b30cba992bcb407bf3c7e2a479b7</id>
<content type='text'>
This should help avoid some amount of temptation towards API
proliferation.
</content>
</entry>
<entry>
<title>Use *_with_prefs() for Option&lt;ConnectPrefs&gt; callers in TorClient::connect</title>
<updated>2022-01-08T21:36:49Z</updated>
<author>
<name>Neel Chauhan</name>
<email>neel@neelc.org</email>
</author>
<published>2022-01-08T21:36:42Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=439b8b3e64f6f4cb5a032ee3ceafb4675003f259'/>
<id>urn:sha1:439b8b3e64f6f4cb5a032ee3ceafb4675003f259</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'readme_fixes'</title>
<updated>2021-11-30T14:12:51Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-11-30T14:12:51Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3b072c542064002f71d2a6a6a9fc22a83dbe5962'/>
<id>urn:sha1:3b072c542064002f71d2a6a6a9fc22a83dbe5962</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Example needs to be the same as the readme</title>
<updated>2021-11-30T14:09:42Z</updated>
<author>
<name>dagon</name>
<email>dagon12@tutanota.com</email>
</author>
<published>2021-11-29T14:29:37Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0162ea82101be4eb6af5ae5bca20d86313b1f079'/>
<id>urn:sha1:0162ea82101be4eb6af5ae5bca20d86313b1f079</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MR review feedback</title>
<updated>2021-11-30T14:09:42Z</updated>
<author>
<name>dagon</name>
<email>dagon12@tutanota.com</email>
</author>
<published>2021-11-29T14:15:15Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=bd1c37fe8ad6195dfe83c8caba47305e581df901'/>
<id>urn:sha1:bd1c37fe8ad6195dfe83c8caba47305e581df901</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change sane_defaults() and with_directories()</title>
<updated>2021-11-29T19:20:34Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-11-29T19:20:34Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f107794b742fb075c673249999362afd28d77772'/>
<id>urn:sha1:f107794b742fb075c673249999362afd28d77772</id>
<content type='text'>
The sane_defaults() call is now the same as you get from a default
builder: by convention, we just call that method Default::default().

The with_directories() constructor makes more sense as a constructor
for the TorClientConfigBuilder than for TorClientConfig.
</content>
</entry>
<entry>
<title>Improve top-level arti-client documentation, add example code</title>
<updated>2021-10-28T18:20:42Z</updated>
<author>
<name>eta</name>
<email>tor@eta.st</email>
</author>
<published>2021-10-28T17:32:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=dcdd8c59dfa6afd3ee903d5eacab4a99c1258e7d'/>
<id>urn:sha1:dcdd8c59dfa6afd3ee903d5eacab4a99c1258e7d</id>
<content type='text'>
This overhauls the top-level `arti-client` documentation significantly:

- the "Using arti-client" section walks the user through all of the
  necessary steps to initiate a Torified TCP connection, and then
  provides a code example
  - this example is also available as `examples/readme.rs`; it's not run
    as a doctest, since it involves connecting to Tor
  - a "More advanced usage" subheading provides information about stream
    isolation (and can potentially be used for other interesting
    features once we get them).
- a new "Multiple runtime support" section was added to explain the
  purpose and usage of the `tor-rtcompat` crate
- the section on design and privacy considerations was removed; this is
  probably okay to keep in a README, but users of the crate aren't going
  to be interested in this (at least I don't think)

(also, the doc comment for `arti_client::Error` was fixed to make actual
sense)
</content>
</entry>
</feed>
