Skip to content

Use my crate in playable snippets #1467

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

Closed
ManevilleF opened this issue Feb 18, 2021 · 2 comments
Closed

Use my crate in playable snippets #1467

ManevilleF opened this issue Feb 18, 2021 · 2 comments

Comments

@ManevilleF
Copy link

Hello,

I don't know if this is possible but I would like to use my crate, which my mdbook is about in the playable snippets.

How do I do this? If I simply use mycrate compilation fails, if I use extern crate mycrate the snippet is no longer playable.

I don't find any information about this in the playground documentation nor in the mdbook book.

@ehuss
Copy link
Contributor

ehuss commented Feb 18, 2021

It's not possible with the Rust Playground, it uses a closed Docker container to run examples, and only includes a set of the most common crates.

There is #706 to track adding the ability to link to external crates for mdbook test.

@ManevilleF
Copy link
Author

Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants