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

How to disable playpen feature? #747

Closed
killercup opened this issue Jul 28, 2018 · 9 comments
Closed

How to disable playpen feature? #747

killercup opened this issue Jul 28, 2018 · 9 comments
Labels
A-Documentation Area: Documentation A-Playground Area: Playground

Comments

@killercup
Copy link
Member

I'm currently writing a book on CLI applications in Rust (https://github.com/rust-lang-nursery/cli-wg/pull/47). Executing the code snippets in playpen will sadly not be very useful.

Is there a way to disable the playpen feature globally?

@mattico mattico self-assigned this Jul 28, 2018
@mattico
Copy link
Contributor

mattico commented Jul 28, 2018

Apparently not! This should be easy to fix.

@badboy
Copy link
Member

badboy commented Sep 19, 2018

This should be covered by #744:

```rust,noplaypen
fn main(){
    println!("Don't run it.");
}
\```

@mattico mattico removed their assignment Oct 12, 2018
@ehuss
Copy link
Contributor

ehuss commented May 17, 2019

noplaypen needs documentation.

Also, @killercup, is that good enough?

@ehuss ehuss added A-Documentation Area: Documentation A-Playground Area: Playground labels May 17, 2019
@detly
Copy link

detly commented May 12, 2021

Could this be a global thing, set in book.toml? I had hoped that eg. [output.html.playground] would let me control it, but alas no.

@pineapplehunter
Copy link
Contributor

I thought a global flag in book.toml would be nice as @detly said. So I tried implementing in a draft PR #1546. Would this help?

@adpaco-aws
Copy link

@pineapplehunter a global flag would be helpful. Does #1546 work? If it does, why not mark as ready for review?

@schungx
Copy link

schungx commented Mar 25, 2022

Yes, I keep having to put no_run in all my code examples just to disable the playpen.

@pineapplehunter
Copy link
Contributor

@adpaco-aws Thanks.
I'll check my code again and mark it as ready for review.

@ehuss
Copy link
Contributor

ehuss commented Mar 27, 2022

Closing as resolved by #1546.

@ehuss ehuss closed this as completed Mar 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Documentation Area: Documentation A-Playground Area: Playground
Projects
None yet
Development

No branches or pull requests

8 participants