Skip to content

Commit

Permalink
deps: disable proc-macro-error default features (#134)
Browse files Browse the repository at this point in the history
* .github: add scheduled build

This will help PR authors determine if CI failures are caused by their
changes or by e.g. Rust releases.

* deps: disable proc-macro-error default features

proc-macro-error has an optional dependency on syn@1 whereas much of the
ecosystem has migrated to syn@2, resulting in dependents of test-case
having to compile syn twice. This avoids that by removing the optional
dependency.
  • Loading branch information
tamird authored Oct 19, 2023
1 parent 7ce34ca commit bf3ee27
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
branches:
- master
- develop
schedule:
- cron: "0 0 * * *"

jobs:
validate:
Expand Down
2 changes: 1 addition & 1 deletion crates/test-case-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ path = "src/lib.rs"
[dependencies]
cfg-if = "1.0"
proc-macro2 = { version = "1.0", features = [] }
proc-macro-error = "1.0"
proc-macro-error = { version = "1.0", default-features = false }
quote = "1.0"
syn = { version = "2.0", features = ["full", "extra-traits"] }
2 changes: 1 addition & 1 deletion crates/test-case-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ path = "src/lib.rs"

[dependencies]
proc-macro2 = { version = "1.0", features = [] }
proc-macro-error = "1.0"
proc-macro-error = { version = "1.0", default-features = false }
quote = "1.0"
syn = { version = "2.0", features = ["full", "extra-traits", "parsing"] }
test-case-core = { version = "3.2.1", path = "../test-case-core", default-features = false }

0 comments on commit bf3ee27

Please sign in to comment.