ferrotype 0.1.2

An opinionated wrapper for insta.rs
Documentation
[package]
name = "ferrotype"
description = "An opinionated wrapper for insta.rs"
version = "0.1.2"
license = "BlueOak-1.0.0"
repository = "https://github.com/gold-build/laburnum/crates/ferrotype"
edition.workspace = true


[lints]
workspace = true

[dependencies]
insta = { workspace = true }

bluegum = { path = "../bluegum", version = "0", optional = true }

proc-macro2 = { version = "1", optional = true }
syn = { version = "2", features = ["extra-traits", "full"], optional = true }
prettyplease = { version = "0.2.12", optional = true }
anstream = { version = "0.3.2", optional = true }
pretty-hex = { version = "0.4.0", optional = true }

[features]
default = ["dot_snapshots", "tokenstream", "bluegum", "anstream", "hex"]

# Enable to place snaphots in a dot directory, otherwise they go in the default location
dot_snapshots = []

# Enables support for adding a TokenStream to the snapshot
tokenstream = ["dep:proc-macro2", "dep:syn", "dep:prettyplease"]

# Enables support for adding a bluegum tree to the snapshot
bluegum = ["dep:bluegum"]

# Enables support for removing control characters from the snapshot
anstream = ["dep:anstream"]

# Enables support for adding a hexdump to the snapshot
hex = ["dep:pretty-hex"]

[[example]]
name = "basic"
required-features = []

[[example]]
name = "filtering"
required-features = []

[[example]]
name = "features"
required-features = ["hex", "tokenstream", "anstream", "bluegum"]

[[example]]
name = "testing"
required-features = []