Skip to content

Commit 5d0a172

Browse files
authored
Move trybuild tests and remove usage crate (#13)
The usage crate was mostly used as a home for the try-build tests. We can move these and eliminate the unneeded crate.
1 parent c6bec0a commit 5d0a172

18 files changed

Lines changed: 13 additions & 273 deletions

Cargo.lock

Lines changed: 2 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[workspace]
22
resolver = "2"
33
members = [
4-
"usage",
54
"cache_diff",
65
"cache_diff_derive",
76
]
@@ -15,6 +14,6 @@ repository = "https://github.com/heroku-buildpacks/cache_diff"
1514
documentation = "https://docs.rs/cache_diff"
1615

1716
[workspace.dependencies]
18-
pretty_assertions = "1.4.1"
19-
indoc = "2"
20-
serde = {version = "1.0", features = ["derive"] }
17+
pretty_assertions = "1.4"
18+
indoc = "2.0"
19+
serde = { version = "1.0", features = ["derive"] }

cache_diff/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ derive = ["dep:cache_diff_derive"]
1919

2020
# Formats values with `bullet_stream::style::value` which includes ANSI colors
2121
bullet_stream = ["derive", "dep:bullet_stream"]
22+
23+
[dev-dependencies]
24+
trybuild = "1.0"
25+
serde.workspace = true

cache_diff/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,11 @@ $ cargo install cargo-release
259259
Release readiness for all crates can be checked by running:
260260

261261
```
262-
$ cargo release --workspace --exclude usage --dry-run
262+
$ cargo release --workspace --dry-run
263263
```
264264

265265
When satisfied, contributors with permissions can release by running:
266266

267267
```
268-
$ cargo release --workspace --exclude usage --execute
268+
$ cargo release --workspace --execute
269269
```
File renamed without changes.
File renamed without changes.
File renamed without changes.

usage/tests/fails/generic_missing_bounds.stderr renamed to cache_diff/tests/fails/generic_missing_bounds.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ error[E0277]: `T` doesn't implement `std::fmt::Display`
1919
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
2020
= note: required for `&T` to implement `std::fmt::Display`
2121
note: required by a bound in `fmt_value`
22-
--> $WORKSPACE/cache_diff/src/lib.rs
22+
--> src/lib.rs
2323
|
2424
| fn fmt_value<T: std::fmt::Display>(&self, value: &T) -> String {
2525
| ^^^^^^^^^^^^^^^^^ required by this bound in `CacheDiff::fmt_value`

0 commit comments

Comments
 (0)