Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the playground Cargo metadata #192

Open
dns2utf8 opened this issue Jul 28, 2017 · 3 comments
Open

Document the playground Cargo metadata #192

dns2utf8 opened this issue Jul 28, 2017 · 3 comments
Labels
help wanted Not immediately going to be prioritized — ask for mentoring instructions! maintenance Keeping the wheels turning

Comments

@dns2utf8
Copy link
Contributor

dns2utf8 commented Jul 28, 2017

Hey team

I made a test with the shiny new tool: https://play.rust-lang.org/?gist=118112c0ca3014d3683dfd6db7fa99ef&version=stable

Can you enable some the features for the crate?

@shepmaster
Copy link
Member

shepmaster commented Jul 29, 2017

Can you enable some the features for the crate?

No, we do not wish to have anything to do with how any particular crate is exposed. Instead, you can add the playground feature to the libraries Cargo.toml. Here's how Serde does it.

note that this method no longer works. You want to use #192 (comment) instead

@shepmaster
Copy link
Member

I'm going to repurpose this issue for adding documentation about this feature.

@shepmaster shepmaster added help wanted Not immediately going to be prioritized — ask for mentoring instructions! maintenance Keeping the wheels turning labels Jul 29, 2017
@shepmaster shepmaster changed the title Uuid crate is broken Document the playground feature feature Jul 29, 2017
@shepmaster
Copy link
Member

From #326

This is based on the custom metadata configurable for docs.rs -- see https://docs.rs/about. Ours looks like:

# Cargo.toml
[package]
name = "test"

[package.metadata.playground]
default-features = true
features = ["std", "extra-traits"]
all-features = false

@shepmaster shepmaster changed the title Document the playground feature feature Document the playground Cargo metadata May 12, 2018
epage added a commit to epage/clap that referenced this issue Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Not immediately going to be prioritized — ask for mentoring instructions! maintenance Keeping the wheels turning
Projects
None yet
Development

No branches or pull requests

2 participants