-
Notifications
You must be signed in to change notification settings - Fork 15
/
Cargo.toml
100 lines (80 loc) · 3.22 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
[package]
name = "snapbox"
version = "0.4.3"
description = "Snapshot testing toolbox"
license = "MIT OR Apache-2.0"
repository = "https://github.com/assert-rs/trycmd/"
homepage = "https://github.com/assert-rs/trycmd/tree/main/crates/snapbox"
documentation = "http://docs.rs/snapbox/"
readme = "README.md"
categories = ["development-tools::testing"]
keywords = ["cli", "test", "assert", "command"]
edition = "2021"
rust-version = "1.60.0" # MSRV
include = [
"build.rs",
"src/**/*",
"Cargo.toml",
"LICENSE*",
"README.md",
"benches/**/*",
"examples/**/*"
]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
[package.metadata.release]
pre-release-replacements = [
{file="CHANGELOG.md", search="Unreleased", replace="{{version}}", min=1},
{file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1},
{file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}", min=1},
{file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1},
{file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/assert-rs/trycmd/compare/{{tag_name}}...HEAD", exactly=1},
]
[features]
default = ["color-auto", "diff"]
#! Feature Flags
## Simple input/output test harness
harness = ["dep:libtest-mimic", "dep:ignore"]
## Smarter binary file detection
detect-encoding = ["dep:content_inspector"]
## Snapshotting of paths
path = ["dep:tempfile", "dep:walkdir", "dep:dunce", "detect-encoding", "dep:filetime"]
## Snapshotting of commands
cmd = ["dep:os_pipe", "dep:wait-timeout", "dep:libc", "dep:windows-sys"]
## Snapshotting of json
json = ["structured-data"]
## Snapshotting of structured data
structured-data = ["dep:serde_json"]
## Extra debugging information
debug = ["snapbox-macros/debug", "dep:backtrace"]
#! Default Feature Flags
## Fancy diffs on failure
diff = ["dep:similar"]
## Colored output support
color = ["dep:yansi", "concolor"]
## Auto-detect whether to use colors
color-auto = ["color", "concolor/auto"]
[[bin]]
name = "snap-fixture" # For `snapbox`s tests only
[dependencies]
normalize-line-endings = "0.3.0"
snapbox-macros = { path = "../snapbox-macros", version = "0.3.0" }
libtest-mimic = { version = "0.6.0", optional = true }
ignore = { version = "0.4", optional = true }
content_inspector = { version = "0.2.4", optional = true }
tempfile = { version = "3.0", optional = true }
walkdir = { version = "2.3.2", optional = true }
dunce = { version = "1.0", optional = true }
filetime = { version = "0.2", optional = true }
os_pipe = { version = "1.0", optional = true }
wait-timeout = { version = "0.2.0", optional = true }
libc = { version = "0.2.137", optional = true }
windows-sys = { version = "0.42.0", features = ["Win32_Foundation"], optional = true }
backtrace = { version = "0.3", optional = true }
similar = { version = "2.1.0", features = ["inline"], optional = true }
yansi = { version = "0.5.0", optional = true }
concolor = { version = "0.0.11", features = ["std"], optional = true }
document-features = { version = "0.2.6", optional = true }
serde_json = { version = "1.0.85", optional = true}