Skip to content

Commit

Permalink
fix: don't use directory symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Nov 1, 2023
1 parent 8c0db49 commit 418b06a
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/sol-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ 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
rust-version.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
exclude.workspace = true

[lib]
proc_macro = true
Expand Down
1 change: 0 additions & 1 deletion crates/sol-macro/doctests

This file was deleted.

8 changes: 8 additions & 0 deletions crates/sol-macro/doctests/README.md
Original file line number Diff line number Diff line change
@@ -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/
```
1 change: 1 addition & 0 deletions crates/sol-macro/doctests/contracts.rs
1 change: 1 addition & 0 deletions crates/sol-macro/doctests/events.rs
1 change: 1 addition & 0 deletions crates/sol-macro/doctests/function_like.rs
1 change: 1 addition & 0 deletions crates/sol-macro/doctests/json.rs
1 change: 1 addition & 0 deletions crates/sol-macro/doctests/structs.rs
1 change: 1 addition & 0 deletions crates/sol-macro/doctests/types.rs

0 comments on commit 418b06a

Please sign in to comment.