diff --git a/crates/sol-macro/Cargo.toml b/crates/sol-macro/Cargo.toml index d01956fe1e..86c4d20a9b 100644 --- a/crates/sol-macro/Cargo.toml +++ b/crates/sol-macro/Cargo.toml @@ -4,6 +4,7 @@ description = "Solidity to Rust procedural macro" keywords = ["ethereum", "abi", "encoding", "evm", "solidity"] categories = ["encoding", "cryptography::cryptocurrencies"] homepage = "https://github.com/alloy-rs/core/tree/main/crates/sol-macro" +exclude = ["../doctests/README.md"] version.workspace = true edition.workspace = true @@ -11,7 +12,6 @@ rust-version.workspace = true authors.workspace = true license.workspace = true repository.workspace = true -exclude.workspace = true [lib] proc_macro = true diff --git a/crates/sol-macro/doctests b/crates/sol-macro/doctests deleted file mode 120000 index 777b79669b..0000000000 --- a/crates/sol-macro/doctests +++ /dev/null @@ -1 +0,0 @@ -../sol-types/tests/doctests \ No newline at end of file diff --git a/crates/sol-macro/doctests/README.md b/crates/sol-macro/doctests/README.md new file mode 100644 index 0000000000..d33cba7c82 --- /dev/null +++ b/crates/sol-macro/doctests/README.md @@ -0,0 +1,8 @@ +This folder contains symlinks to the `sol!` macro tests in `../sol-types/tests/doctests/*`. +We can't use a directory symlink because Git on Windows doesn't support them, so we use file +symlinks instead. + +Run at the root of the repo: +```bash +ln -rs crates/sol-types/tests/doctests/* crates/sol-macro/doctests/ +``` diff --git a/crates/sol-macro/doctests/contracts.rs b/crates/sol-macro/doctests/contracts.rs new file mode 120000 index 0000000000..de4e688337 --- /dev/null +++ b/crates/sol-macro/doctests/contracts.rs @@ -0,0 +1 @@ +../../sol-types/tests/doctests/contracts.rs \ No newline at end of file diff --git a/crates/sol-macro/doctests/events.rs b/crates/sol-macro/doctests/events.rs new file mode 120000 index 0000000000..760aef9c9f --- /dev/null +++ b/crates/sol-macro/doctests/events.rs @@ -0,0 +1 @@ +../../sol-types/tests/doctests/events.rs \ No newline at end of file diff --git a/crates/sol-macro/doctests/function_like.rs b/crates/sol-macro/doctests/function_like.rs new file mode 120000 index 0000000000..82800b313f --- /dev/null +++ b/crates/sol-macro/doctests/function_like.rs @@ -0,0 +1 @@ +../../sol-types/tests/doctests/function_like.rs \ No newline at end of file diff --git a/crates/sol-macro/doctests/json.rs b/crates/sol-macro/doctests/json.rs new file mode 120000 index 0000000000..82470d0454 --- /dev/null +++ b/crates/sol-macro/doctests/json.rs @@ -0,0 +1 @@ +../../sol-types/tests/doctests/json.rs \ No newline at end of file diff --git a/crates/sol-macro/doctests/structs.rs b/crates/sol-macro/doctests/structs.rs new file mode 120000 index 0000000000..f4be2b4af1 --- /dev/null +++ b/crates/sol-macro/doctests/structs.rs @@ -0,0 +1 @@ +../../sol-types/tests/doctests/structs.rs \ No newline at end of file diff --git a/crates/sol-macro/doctests/types.rs b/crates/sol-macro/doctests/types.rs new file mode 120000 index 0000000000..bd5788f465 --- /dev/null +++ b/crates/sol-macro/doctests/types.rs @@ -0,0 +1 @@ +../../sol-types/tests/doctests/types.rs \ No newline at end of file