Skip to content

Fix conditional configuration options usage#1871

Merged
apoelstra merged 2 commits intorust-bitcoin:masterfrom
tcharding:05-24-cfg-not-feature
May 28, 2023
Merged

Fix conditional configuration options usage#1871
apoelstra merged 2 commits intorust-bitcoin:masterfrom
tcharding:05-24-cfg-not-feature

Conversation

@tcharding
Copy link
Copy Markdown
Member

These build cfg options are not features, fix broken usage. And remove stale docsrs attribute while we are at it. Bad rust-bitcoin devs.

Found while reviewing #1870

tcharding added 2 commits May 24, 2023 22:02
We no longer need to use `doc(cfg())` because we use `doc_cfg_auto`,
remove it.
Our custom conditional configuration options enables for various
versions of the compiler are not features.

Fix the incorrect usage.
Copy link
Copy Markdown
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 0046bb8

@tcharding
Copy link
Copy Markdown
Member Author

cc @yancyribbens just FYI.

Copy link
Copy Markdown
Collaborator

@Kixunil Kixunil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 0046bb8

@apoelstra apoelstra merged commit 7315eac into rust-bitcoin:master May 28, 2023
@tcharding tcharding deleted the 05-24-cfg-not-feature branch May 30, 2023 04:49
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.

3 participants