<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/maint/check_doc_features, branch arti-v1.2.7</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.7</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.7'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2024-08-07T10:30:45Z</updated>
<entry>
<title>tor-hsservice: Remove unnecessary docsrs cfg_attr.</title>
<updated>2024-08-07T10:30:45Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-07T10:30:45Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=20003ae47bc5c15814e107d2a6a64712f860d186'/>
<id>urn:sha1:20003ae47bc5c15814e107d2a6a64712f860d186</id>
<content type='text'>
The module is correctly documented as "only available on crate feature
restricted-discovery" without it.
</content>
</entry>
<entry>
<title>maint/check_doc_features: Add restricted_discovery to additional_required.</title>
<updated>2024-08-06T15:29:44Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-06T15:29:44Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=68e074cb42cf1271f8550df1a0a35ca91e8c1aba'/>
<id>urn:sha1:68e074cb42cf1271f8550df1a0a35ca91e8c1aba</id>
<content type='text'>
The script isn't handling the `cfg_attr` on `pub mod restricted_discovery`
very well, so we need to use the `additional_required` escape hatch.
</content>
</entry>
<entry>
<title>maint/check_doc_features: Include ; in end of item pattern.</title>
<updated>2024-08-06T14:50:20Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-06T14:33:31Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b8e487ea9ca0bdf3278be2b0f01c780d13517bb6'/>
<id>urn:sha1:b8e487ea9ca0bdf3278be2b0f01c780d13517bb6</id>
<content type='text'>
This makes the script work on `cfg_attr`s applied to `mod` declarations
ending in `;`.

Without this change, the script fails with
```
processing tor-hsservice
    res += fn(os.path.join(dir_, file))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builds/nickm/arti/./maint/check_doc_features", line 112, in extract_cfg_attr
    end = min(subline.find(pat) for pat in ' (&lt;' if subline.find(pat) !=-1)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: min() arg is an empty sequence
```

when run on code with `cfg_attr`s applied to `mod` declarations.

Note: this change just improves the UX a bit, but doesn't actually fix
the issue: the script still isn't able to handle `cfg_attr`'d `mod`s: it
assumes all `#[cfg_attr(docsrs, ..)]` statements are applied to
feature-gated `pub use`s, and if there aren't any (such as in the case
of `cfg_attr`d modules, it assumes the feature gating is missing.
</content>
</entry>
<entry>
<title>Rename list_crates_publish to list_crates</title>
<updated>2024-05-08T16:51:07Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-05-08T16:50:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=176fea6716120d892c26f7d5f090b08975bc18a6'/>
<id>urn:sha1:176fea6716120d892c26f7d5f090b08975bc18a6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>maint/check_doc_features: Use new list_crates_publish (nfc)</title>
<updated>2024-05-08T15:05:12Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-05-08T15:05:02Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5dbc5c0e026d30003988a81c0656d1afb49a9d64'/>
<id>urn:sha1:5dbc5c0e026d30003988a81c0656d1afb49a9d64</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename bucket-array-api feature to bucket-array</title>
<updated>2024-05-07T18:52:36Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-05-07T18:52:36Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0ef90866793c1529a3cfb697fd834181e684b451'/>
<id>urn:sha1:0ef90866793c1529a3cfb697fd834181e684b451</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update check_doc_features for equix cfg(fuzzing) change.</title>
<updated>2024-05-07T16:27:52Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-05-07T16:27:52Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=158cebf02322d37d851a110b7aa86cb678beddfb'/>
<id>urn:sha1:158cebf02322d37d851a110b7aa86cb678beddfb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>equix/fuzz: CI and doc fixes</title>
<updated>2023-08-02T21:46:46Z</updated>
<author>
<name>Micah Elizabeth Scott</name>
<email>beth@torproject.org</email>
</author>
<published>2023-08-02T21:46:46Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=21dfc6d58c15256f8115a756029aa8a5c87bc91b'/>
<id>urn:sha1:21dfc6d58c15256f8115a756029aa8a5c87bc91b</id>
<content type='text'>
The build found a stale private doc comment as well as an exception
that needed to be made in check_doc_features.

The check_doc_features change solidifies a decision that things marked
with cfg(fuzzing) aren't part of the documented API.
</content>
</entry>
<entry>
<title>tor-proto: Add a suppression to "fix" the CI</title>
<updated>2023-07-12T14:32:27Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-07-12T14:30:34Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0251e99680cbeccc7f6d9c3bfafb9e52c641af37'/>
<id>urn:sha1:0251e99680cbeccc7f6d9c3bfafb9e52c641af37</id>
<content type='text'>
This is failing in CI.  I have no idea what the rules are and AFAICT
no-one is alleging that there is an actual bug in the attributes.

Empirically this suppression causes the script to pass.
</content>
</entry>
<entry>
<title>tor-rtcompat: Simplify trivial all() expressions.</title>
<updated>2023-07-06T18:26:43Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-07-03T12:38:41Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=486b6b8c82cb96c1a03e2b800955cdf6e4e9a6db'/>
<id>urn:sha1:486b6b8c82cb96c1a03e2b800955cdf6e4e9a6db</id>
<content type='text'>
Clippy nightly doesn't like `#[cfg(all(...))]` with only a single
expression inside the `all(...)`.

This requires an adjustment in check_doc_features.
</content>
</entry>
</feed>
