Skip to content

Commit 5869a23

Browse files
fix: prevent cycle by moving macro tests to a separate package (#40)
1 parent a249314 commit 5869a23

62 files changed

Lines changed: 57 additions & 30 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ version = "0.1.1"
1212
[workspace.dependencies]
1313
chrono = "0.4.42"
1414
email_address = { version = "0.2.9", default-features = false }
15-
fortifier = { path = "./packages/fortifier", version = "0.1.0" }
16-
fortifier-macros = { path = "./packages/fortifier-macros", version = "0.1.0" }
15+
fortifier = { path = "./packages/fortifier", version = "0.1.1" }
16+
fortifier-macros = { path = "./packages/fortifier-macros", version = "0.1.1" }
1717
indexmap = "2.12.0"
1818
phonenumber = "0.3.7"
1919
pretty_assertions = "1.4.1"
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
[package]
2+
name = "fortifier-macros-tests"
3+
description = "Tests for Fortifier macros. Separate package to prevent a cycle."
4+
publish = false
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
9+
repository.workspace = true
10+
version.workspace = true
11+
12+
[package.metadata.docs.rs]
13+
all-features = true
14+
15+
# TODO: Remove after adding more tests.
16+
[package.metadata.cargo-machete]
17+
ignored = ["chrono", "rust_decimal", "uuid"]
18+
19+
[dependencies]
20+
21+
[dev-dependencies]
22+
chrono.workspace = true
23+
email_address.workspace = true
24+
fortifier = { workspace = true, features = [
25+
"all-types",
26+
"all-validations",
27+
"serde",
28+
] }
29+
indexmap.workspace = true
30+
phonenumber.workspace = true
31+
pretty_assertions.workspace = true
32+
regex.workspace = true
33+
rust_decimal.workspace = true
34+
serde.workspace = true
35+
serde_json.workspace = true
36+
trybuild = "1.0.114"
37+
url.workspace = true
38+
uuid.workspace = true
39+
40+
[lints]
41+
workspace = true
Lines changed: 3 additions & 0 deletions
File renamed without changes.

packages/fortifier-macros/tests/integrations/serde_pass.rs renamed to packages/fortifier-macros-tests/tests/integrations/serde_pass.rs

File renamed without changes.
File renamed without changes.

packages/fortifier-macros/tests/validate/context_pass.rs renamed to packages/fortifier-macros-tests/tests/validate/context_pass.rs

File renamed without changes.

packages/fortifier-macros/tests/validate/enum_mixed_pass.rs renamed to packages/fortifier-macros-tests/tests/validate/enum_mixed_pass.rs

File renamed without changes.

packages/fortifier-macros/tests/validate/enum_named_pass.rs renamed to packages/fortifier-macros-tests/tests/validate/enum_named_pass.rs

File renamed without changes.

0 commit comments

Comments
 (0)