Skip to content

Explicitly enable indexmap/std#885

Merged
dtolnay merged 1 commit intoserde-rs:masterfrom
cuviper:indexmap-std
May 3, 2022
Merged

Explicitly enable indexmap/std#885
dtolnay merged 1 commit intoserde-rs:masterfrom
cuviper:indexmap-std

Conversation

@cuviper
Copy link
Copy Markdown
Contributor

@cuviper cuviper commented May 3, 2022

indexmap's use of autocfg doesn't always properly detect std, which is needed if you're using the default S hasher. The "indexmap/std" feature will explicitly force it on.

This does mean that preserve_order requires std, but that was already effectively true by using the default S. Alternatively, we could pick a no_std hasher crate for this, or implement a simple one locally.

Copy link
Copy Markdown
Member

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

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

Thanks!

@dtolnay dtolnay merged commit f34ef95 into serde-rs:master May 3, 2022
dtolnay added a commit that referenced this pull request May 3, 2022
ronaldslc pushed a commit to ronaldslc/serde-json that referenced this pull request Dec 3, 2022
takumi-earth pushed a commit to earthlings-dev/json that referenced this pull request Jan 27, 2026
takumi-earth pushed a commit to earthlings-dev/json that referenced this pull request Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants