Skip to content

Conversation

BurntSushi
Copy link
Member

In rust-lang/rust#138907, the doc_auto_cfg
feature was subsumed by doc_cfg. This does overall look like we're on
a path toward stabilization, which is great.

One problem here though is that a bunch of crates use the cfg docsrs
to enable doc_auto_cfg. So if we enable it, then it causes those
crates to stop compiling. This is overall very annoying, and I don't
know how to unfuck things. So I changed the cfg knob to docsrs_regex
which, doesn't quite provide a guarantee, but gets us closer to being
masters of our own destiny.

In rust-lang/rust#138907, the `doc_auto_cfg`
feature was subsumed by `doc_cfg`. This does overall look like we're on
a path toward stabilization, which is great.

One problem here though is that a bunch of crates use the `cfg` `docsrs`
to enable `doc_auto_cfg`. So if we enable it, then it causes those
crates to stop compiling. This is overall very annoying, and I don't
know how to unfuck things. So I changed the `cfg` knob to `docsrs_regex`
which, doesn't quite provide a guarantee, but gets us closer to being
masters of our own destiny.
@BurntSushi BurntSushi merged commit 1dd9077 into master Oct 13, 2025
19 checks passed
@BurntSushi BurntSushi deleted the ag/doc-cfg branch October 13, 2025 14:37
BurntSushi added a commit to BurntSushi/jiff that referenced this pull request Oct 13, 2025
In rust-lang/rust#138907, the `doc_auto_cfg`
feature was subsumed by `doc_cfg`. This does overall looks like we're on
a path toward stabilization, which is great.

One problem here though is that a bunch of crates use the `cfg`
`docsrs` to enable `doc_auto_cfg`. So if we enable it, then it causes
those crates to emit hard errors. This is overall very annoying, and
I don't know how to unfuck things. So I changed the `cfg` knob to
`docsrs_jiff` which, doesn't quite provide a guarantee, but gets us
closer to being masters of our own destiny.

See also a similar change made to `regex`:
rust-lang/regex#1305
BurntSushi added a commit to BurntSushi/jiff that referenced this pull request Oct 13, 2025
In rust-lang/rust#138907, the `doc_auto_cfg`
feature was subsumed by `doc_cfg`. This does overall looks like we're on
a path toward stabilization, which is great.

One problem here though is that a bunch of crates use the `cfg`
`docsrs` to enable `doc_auto_cfg`. So if we enable it, then it causes
those crates to emit hard errors. This is overall very annoying, and
I don't know how to unfuck things. So I changed the `cfg` knob to
`docsrs_jiff` which, doesn't quite provide a guarantee, but gets us
closer to being masters of our own destiny.

See also a similar change made to `regex`:
rust-lang/regex#1305
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant