Cargo Features

[dependencies]
miden-miette = { version = "8.0.0", default-features = false, features = ["std", "derive", "no-format-args-capture", "fancy-base", "fancy-no-syscall", "fancy-no-backtrace", "fancy", "syntect-highlighter", "serde"] }
default = derive, std

These default features are set whenever miden-miette is added without default-features = false somewhere in the dependency tree.

std default = fancy-no-syscall

Enables std of thiserror

thiserror:

Std feature enables support for formatting std::path::{Path, PathBuf}
conveniently in an error message.

#[derive(Error, Debug)]
#[error("failed to create configuration file {path}")]
pub struct MyError {
pub path: PathBuf,
pub source: std::io::Error,
}

Without std, this would need to be written #[error("... {}", path.display())].

Affects eyreish::set_hook

derive default = miette-derive
no-format-args-capture
fancy-base fancy-no-backtrace? fancy-no-syscall? = owo-colors, textwrap

Affects miden-miette::highlighters

fancy-no-syscall std = fancy-base
fancy-no-backtrace fancy? syntect-highlighter? = fancy-base, supports-color, supports-hyperlinks, supports-unicode, terminal_size
fancy = backtrace, backtrace-ext, fancy-no-backtrace
syntect-highlighter = fancy-no-backtrace, syntect

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

miette-derive derive

Enables miden-miette-derive

owo-colors fancy-base?
textwrap fancy-base?
supports-color fancy-no-backtrace?
supports-unicode fancy-no-backtrace?
backtrace fancy?
terminal_size fancy-no-backtrace?

Enables terminal_size ^0.3.0

backtrace-ext fancy?
serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

syntect syntect-highlighter?