feat: add insta as dependency

We are going to start to add "golden"/snapshot tests, so we are using
[insta](https://insta.rs) to do so.
This commit is contained in:
Cainã Costa 2023-06-30 12:28:48 -03:00 committed by rvcas
parent eea94fc9a4
commit 58c854fd3f
No known key found for this signature in database
GPG Key ID: C09B64E263F7D68C
3 changed files with 67 additions and 0 deletions

54
Cargo.lock generated vendored
View File

@ -83,6 +83,7 @@ dependencies = [
"hex",
"indexmap",
"indoc",
"insta",
"itertools",
"miette",
"num-bigint",
@ -525,6 +526,18 @@ dependencies = [
"windows-sys 0.45.0",
]
[[package]]
name = "console"
version = "0.15.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c926e00cc70edefdc64d3a5ff31cc65bb97a3460097762bd23afb4d8145fccf8"
dependencies = [
"encode_unicode",
"lazy_static",
"libc",
"windows-sys 0.45.0",
]
[[package]]
name = "const-oid"
version = "0.9.2"
@ -738,6 +751,12 @@ dependencies = [
"zeroize",
]
[[package]]
name = "encode_unicode"
version = "0.3.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f"
[[package]]
name = "encoding_rs"
version = "0.8.32"
@ -1208,6 +1227,20 @@ version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9f2cb48b81b1dc9f39676bf99f5499babfec7cd8fe14307f7b3d747208fb5690"
[[package]]
name = "insta"
version = "1.30.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "28491f7753051e5704d4d0ae7860d45fae3238d7d235bc4289dcd45c48d3cec3"
dependencies = [
"console",
"lazy_static",
"linked-hash-map",
"serde",
"similar",
"yaml-rust",
]
[[package]]
name = "instant"
version = "0.1.12"
@ -1341,6 +1374,12 @@ dependencies = [
"vcpkg",
]
[[package]]
name = "linked-hash-map"
version = "0.5.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f"
[[package]]
name = "linux-raw-sys"
version = "0.3.1"
@ -2385,6 +2424,12 @@ dependencies = [
"rand_core",
]
[[package]]
name = "similar"
version = "2.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "420acb44afdae038210c99e69aae24109f32f15500aa708e81d46c9f29d55fcf"
[[package]]
name = "slab"
version = "0.4.8"
@ -3257,6 +3302,15 @@ dependencies = [
"winapi",
]
[[package]]
name = "yaml-rust"
version = "0.4.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85"
dependencies = [
"linked-hash-map",
]
[[package]]
name = "yansi"
version = "0.5.1"

View File

@ -7,3 +7,9 @@ strip = true
[workspace.metadata.release]
shared-version = true
tag-name = "v{{version}}"
[profile.dev.package.insta]
opt-level = 3
[profile.dev.package.similar]
opt-level = 3

View File

@ -34,4 +34,11 @@ chumsky = { version = "0.9.2", features = ["ahash", "std"], default-features = f
[dev-dependencies]
indoc = "2.0.1"
insta = { version = "1.30.0", features = ["yaml"] }
pretty_assertions = "1.3.0"
[profile.dev.package.insta]
opt-level = 3
[profile.dev.package.similar]
opt-level = 3