rust-lang / rust-playground

The Rust Playground
https://play.rust-lang.org/
Apache License 2.0
1.24k stars 207 forks source link

Add the feature "serde" to the crate `either` #1051

Closed masklinn closed 6 months ago

masklinn commented 6 months ago

The playground is nice to demo various things including serde. either has serde support, but both the basic externally tagged support and the opt-in untagged support are gated behind a "serde" feature: https://github.com/rayon-rs/either/blob/main/Cargo.toml#L21 so that can't be used on the playground without "vendoring" the crate (at which point having it seems a shame)

shepmaster commented 6 months ago

You'll need to ask the either maintainers to enable that in their Cargo.toml.