Skip to content

Commit

Permalink
feat(snapbox): Add initial JSON support
Browse files Browse the repository at this point in the history
  • Loading branch information
Muscraft committed Sep 1, 2022
1 parent 3ba3af6 commit 3ed730d
Show file tree
Hide file tree
Showing 3 changed files with 353 additions and 15 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions crates/snapbox/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ path = ["dep:tempfile", "dep:walkdir", "dep:dunce", "detect-encoding", "dep:file
## Snapshotting of commands
cmd = ["dep:os_pipe", "dep:wait-timeout"]

## Snapshotting of json
json = ["structured-data"]
## Snapshotting of structured data
structured-data = ["dep:serde_json"]

## Extra debugging information
debug = ["snapbox-macros/debug", "dep:backtrace"]

Expand Down Expand Up @@ -89,3 +94,5 @@ yansi = { version = "0.5.0", optional = true }
concolor = { version = "0.0.8", features = ["std"], optional = true }

document-features = { version = "0.2.3", optional = true }

serde_json = { version = "1.0.85", optional = true}
Loading

0 comments on commit 3ed730d

Please sign in to comment.