Skip to content

Commit

Permalink
Package tests in crates
Browse files Browse the repository at this point in the history
Add tests back to the crates. This allows other to run them as part of
crater or for building distribution packages. Remove the compiler
errormessages tests, since they are fragile and might break with rust
upgrades.
  • Loading branch information
jonasbb committed Apr 22, 2022
1 parent eabd345 commit c821df9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 1 addition & 2 deletions serde_with/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/jonasbb/serde_with"

include = ["src/**/*", "LICENSE-*", "README.*", "CHANGELOG.md"]
include = ["src/**/*", "tests/**/*", "LICENSE-*", "README.md", "CHANGELOG.md"]

[badges]
maintenance = {status = "actively-developed"}
Expand Down Expand Up @@ -103,4 +103,3 @@ rustdoc-args = [
# https://github.com/rust-lang/rust/pull/84176
"-Zunstable-options", "--generate-link-to-definition"
]

10 changes: 9 additions & 1 deletion serde_with_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/jonasbb/serde_with/"

include = ["src/**/*", "LICENSE-*", "README.md", "CHANGELOG.md"]
include = [
"src/**/*",
"tests/**/*",
# These tests are a bit more volatile as future compiler upgrade might break them
"!tests/compile-fail/**",
"LICENSE-*",
"README.md",
"CHANGELOG.md",
]

[lib]
proc-macro = true
Expand Down

0 comments on commit c821df9

Please sign in to comment.