Thanks to visit codestin.com
Credit goes to lib.rs

Cargo Features

[dependencies]
insta = { version = "1.47.2", default-features = false, features = ["redactions", "filters", "glob", "colors", "csv", "json", "ron", "toml", "yaml"] }
default = colors

The colors feature is set by default whenever insta is added without default-features = false somewhere in the dependency tree.

redactions = pest, pest_derive, serde

when the redactions feature is enabled values can be redacted in serialized snapshots.

Affects serialization::serialize_value_redacted, settings::Redactions, settings::ActualSettings.redactions

filters = regex

Enables support for running filters on snapshot

Affects settings::ActualSettings.filters

glob = globset, walkdir

Glob support

Affects settings::ActualSettings.allow_empty_glob

colors default = console

Color support

csv = serde

Serialization formats

Enables csv

json = serde
ron = serde

Enables ron

toml = serde

Enables toml_edit and toml_writer

yaml = serde
_cargo_insta_internal = clap

internal feature exclusive to cargo-insta

Affects env::TestRunner, env::UnreferencedSnapshots, utils::get_cargo

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.

console colors

Enables console

Needs pinning in Cargo.lock because of MSRV (0.16.1+ requires 1.71)

pest redactions?
pest_derive redactions?
globset glob?
walkdir glob?
regex filters?
serde csv? json? redactions? ron? toml? yaml?
clap _cargo_insta_internal?