Show Ferris the crab on docs.rs code examples, just like on the Rust book.
From The Rust Book
| Ferris | Shortcode | Meaning |
|---|---|---|
does_not_compile |
This code does not compile! | |
panics |
This code panics! | |
not_desired_behavior |
This code does not produce the desired behavior. |
Here's a list of rustdoc attributes and their corresponding Ferris:
| Attribute | Ferris | When |
|---|---|---|
should_panic |
panics |
Always |
compile_fail |
does_not_compile |
Always |
ignore |
not_desired_behavior |
If Show Ferris on ignore is enabled |
no_run |
not_desired_behavior |
If Show Ferris on no_run is enabled |
Show the attribute above the code block. Only supports attributes mentioned in the Details section.
Show not_desired_behavior Ferris on ignore attributes.
Show not_desired_behavior Ferris on no_run attributes.
Configure the opacity of Ferris.
Configure the size of Ferris.
Configure the right offset of Ferris.
Configure the top offset of Ferris.


