mirror of https://github.com/zkat/miette.git
docs: update readme with info about fancy feature
This commit is contained in:
parent
468843aa5c
commit
f92c75f176
10
README.md
10
README.md
|
|
@ -24,6 +24,11 @@ but it's definitely a bug and should be reported.
|
|||
diagnostic error code: ruget::api::bad_json
|
||||
" />
|
||||
|
||||
**NOTE: You must enable the `"fancy"` crate feature to get fancy report output
|
||||
like in the screenshots here.** You should only do this in your toplevel
|
||||
crate, as the fancy feature pulls in a number of dependencies that libraries
|
||||
and such might not want.
|
||||
|
||||
## Table of Contents <!-- omit in toc -->
|
||||
|
||||
- [About](#about)
|
||||
|
|
@ -232,6 +237,11 @@ pub fn some_tool() -> Result<Version> {
|
|||
`Result` as your return value, and it will pretty-print your
|
||||
diagnostics automatically.
|
||||
|
||||
**NOTE: You must enable the `"fancy"` crate feature to get fancy report output
|
||||
like in the screenshots here.** You should only do this in your toplevel
|
||||
crate, as the fancy feature pulls in a number of dependencies that libraries
|
||||
and such might not want.
|
||||
|
||||
```rust
|
||||
use miette::{Result, IntoDiagnostic};
|
||||
use semver::Version;
|
||||
|
|
|
|||
Loading…
Reference in New Issue