<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/arti-client/src/config.rs, branch arti-v1.1.5</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.5</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.5'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-05-02T13:10:15Z</updated>
<entry>
<title>arti-client: Only run BridgesConfig doc test if pt-client feature is enabled.</title>
<updated>2023-05-02T13:10:15Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-05-02T13:10:15Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6cb412558d36f4756c0e13a88870b537dbf2f0e1'/>
<id>urn:sha1:6cb412558d36f4756c0e13a88870b537dbf2f0e1</id>
<content type='text'>
One of the tests run as part of `cargo test -p arti-client` fails
because the `pt-client` feature is not enabled by default:

```
failures:

---- src/config.rs - config::BridgesConfig (line 221) stdout ----
error[E0432]: unresolved import `arti_client::config::pt`
 --&gt; src/config.rs:225:26
  |
7 | use arti_client::config::pt::ManagedTransportConfigBuilder;
  |                          ^^ could not find `pt` in `config`

error[E0599]: no method named `bridges` found for mutable reference `&amp;mut BridgesConfigBuilder` in the current scope
  --&gt; src/config.rs:233:19
   |
15 | builder.bridges().bridges().push(bridge_1);
   |                   ^^^^^^^ private field, not a method

error[E0599]: no function or associated item named `default` found for struct `BridgeConfigBuilder` in the current scope
  --&gt; src/config.rs:236:48
   |
18 | let mut bridge2_builder = BridgeConfigBuilder::default();
   |                                                ^^^^^^^ function or associated item not found in `BridgeConfigBuilder`

error[E0599]: no method named `bridges` found for mutable reference `&amp;mut BridgesConfigBuilder` in the current scope
  --&gt; src/config.rs:247:19
   |
29 | builder.bridges().bridges().push(bridge2_builder);
   |                   ^^^^^^^ private field, not a method

error[E0599]: no method named `transports` found for mutable reference `&amp;mut BridgesConfigBuilder` in the current scope
  --&gt; src/config.rs:255:19
   |
37 | builder.bridges().transports().push(transport);
   |                   ^^^^^^^^^^ method not found in `&amp;mut BridgesConfigBuilder`

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0432, E0599.
For more information about an error, try `rustc --explain E0432`.
Couldn't compile the test.

failures:
    src/config.rs - config::BridgesConfig (line 221)

test result: FAILED. 5 passed; 1 failed; 3 ignored; 0 measured; 0 filtered out; finished in 2.10s
```

This disables the `BridgesConfig` doc test if the `pt-client` feature is not enabled.

Closes #843

Signed-off-by: Gabriela Moldovan &lt;gabi@torproject.org&gt;
</content>
</entry>
<entry>
<title>tor_client: Add some example code for BridgeConfig.</title>
<updated>2023-03-24T20:25:10Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-03-23T14:20:28Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4af2c2ec3396be1ee20a1491ca5d747729b22387'/>
<id>urn:sha1:4af2c2ec3396be1ee20a1491ca5d747729b22387</id>
<content type='text'>
Closes #791
</content>
</entry>
<entry>
<title>arti-client: Make TransportConfigListBuilder public.</title>
<updated>2023-03-24T20:25:10Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-03-23T14:06:56Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=455a7a710917965f0b3977d4381752975184def1'/>
<id>urn:sha1:455a7a710917965f0b3977d4381752975184def1</id>
<content type='text'>
Without this there's no convenient way to add a transport without
messing with serde/toml.

Found while working on #791
</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>arti: BridgesConfig is evidently not too high up</title>
<updated>2022-11-30T15:51:10Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-11-30T15:51:10Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=598f4e2e28b99fbc10a7321f503071a203b04f03'/>
<id>urn:sha1:598f4e2e28b99fbc10a7321f503071a203b04f03</id>
<content type='text'>
Since apparently it was possible to write all the other code without
moving it.
</content>
</entry>
<entry>
<title>arti, arti-client: Conditionalise various things on pt-client</title>
<updated>2022-11-29T16:32:14Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-11-29T16:12:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c92dcb5f501d5f3035d3289e5a6a4b8098e8324f'/>
<id>urn:sha1:c92dcb5f501d5f3035d3289e5a6a4b8098e8324f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Temporarily make ptmgr required for arti-client :/</title>
<updated>2022-11-28T22:29:32Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-11-28T21:59:23Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1f4a385d7d437120038071f584eb45bd7054a0d2'/>
<id>urn:sha1:1f4a385d7d437120038071f584eb45bd7054a0d2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Integrate PtMgr into arti-client.</title>
<updated>2022-11-28T22:29:32Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-11-28T19:42:07Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1a9c4c722b94330ec0c730ec8967a4cf311fbf78'/>
<id>urn:sha1:1a9c4c722b94330ec0c730ec8967a4cf311fbf78</id>
<content type='text'>
If support is available at compile-time, then we construct a PtMgr
and register it with the ChanMgr.  We keep a handle to it ourself so
that we can reconfigure it as needed.

Closes #659.
</content>
</entry>
<entry>
<title>Merge branch 'stability' into 'main'</title>
<updated>2022-11-23T17:50:01Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-11-23T17:50:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c0a6fb3e0f30b8f03319573e7b236cdcd01e044a'/>
<id>urn:sha1:c0a6fb3e0f30b8f03319573e7b236cdcd01e044a</id>
<content type='text'>
arti-client, tor-config: Remove stability warning from top-level docs

See merge request tpo/core/arti!878</content>
</entry>
</feed>
