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

Add support for no_run info string #5

Merged
merged 1 commit into from
Jun 7, 2016

Conversation

posborne
Copy link
Contributor

@posborne posborne commented Jun 6, 2016

This commit adds support for the no_run info string
which works similar to how it works for rustdoc (code is
compiled but not executed). Blocks marked as no_run
result in a generated function that is dead code (does
not have test attribute applied).

This is pretty useful for examples in documentation which
have side effects and would frequently fail or do
undesirable things in a test environment.

I also updated the documentation to make getting details on
each info string a bit simpler.

This commit adds support for the `no_run` info string
which works similar to how it works for rustdoc (code is
compiled but not executed).  Blocks marked as `no_run`
result in a generated function that is dead code (does
not have `test` attribute applied).

This is pretty useful for examples in documentation which
have side effects and would frequently fail or do
undesirable things in a test environment.

I also updated the documentation to make getting details on
each info string a bit simpler.

Signed-off-by: Paul Osborne <[email protected]>
@brson brson merged commit a0ce658 into budziq:master Jun 7, 2016
@brson
Copy link
Collaborator

brson commented Jun 7, 2016

Thanks so much!

@brson
Copy link
Collaborator

brson commented Jun 7, 2016

I published 0.5.0 with your change.

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

Successfully merging this pull request may close these issues.

2 participants