-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustdoc should support submitting code to play.rust-lang.org #14654
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
Comments
How will this work for non- It seems like that for vast majority of 3rd party documentation this feature would not produce useful results, although at the same time, an interested party with sufficient resources could host their own rust interpreter with the necessary crates pre-installed. |
Ah that is a good point, it sounds like if this is done then it should be an opt-in basis per crate. |
This grows a new option inside of rustdoc to add the ability to submit examples to an external website. If the `--markdown-playground-url` command line option or crate doc attribute `html_playground_url` is present, then examples will have a button on hover to submit the code to the playground specified. This commit enables submission of example code to play.rust-lang.org. The code submitted is that which is tested by rustdoc, not necessarily the exact code shown in the example. Closes rust-lang#14654
This grows a new option inside of rustdoc to add the ability to submit examples to an external website. If the `--markdown-playground-url` command line option or crate doc attribute `html_playground_url` is present, then examples will have a button on hover to submit the code to the playground specified. This commit enables submission of example code to play.rust-lang.org. The code submitted is that which is tested by rustdoc, not necessarily the exact code shown in the example. Closes rust-lang#14654
fix: Fix status command panicking when additional LRU caches are set up
relates to rust-lang/rust-clippy#14653 changelog: [`elidable_lifetime_names`]: Fix clippy version that this lint was introduced in. It might be good to have some automation to check that the version is correct. IIUC the version should be the current nightly version at the time a PR is merged. If a release happens while a PR is open, the version needs to be bumped - this is easy to forget.
There should be a button on code snippets to submit them to http://play.rust-lang.org/ and have them run.
I don't think that the code snippets should be live-editable in rustdoc like the one on the website.
Note that the repository is located here: https://github.com/rust-lang/rust-playpen
The text was updated successfully, but these errors were encountered: