Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(solc): add dependency graph implementation #750

Merged
merged 27 commits into from
Jan 5, 2022
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
49b3e0c
docs: document public functions
mattsse Dec 27, 2021
8697605
add mod
mattsse Dec 27, 2021
79bc6b1
feat(solc): add dependency graph
mattsse Dec 29, 2021
8690a72
detect version
mattsse Dec 30, 2021
9e2a752
add into sources
mattsse Dec 30, 2021
a6c5734
fix: canonicalize temp paths
mattsse Dec 30, 2021
e00bf5d
test: add graph tests
mattsse Dec 30, 2021
97db900
chore(clippy): make clippy happy
mattsse Dec 30, 2021
bc5441a
more wasm compat
mattsse Dec 30, 2021
c4d190e
Merge branch 'master' into matt/dependency-graph
mattsse Dec 30, 2021
45f10a4
chore: update changelog
mattsse Dec 30, 2021
314a703
wasm compat
mattsse Dec 30, 2021
fcb89c7
unused
mattsse Dec 30, 2021
b213efd
fix get source fill function
mattsse Dec 30, 2021
2213b7f
Update ethers-solc/src/resolver.rs
mattsse Dec 30, 2021
eac5de2
perf: use solang_parser to trim down deps
gakonst Dec 31, 2021
5f56668
resolve graph in compile
mattsse Dec 31, 2021
7acb8a0
refactor add node function
mattsse Dec 31, 2021
eacab8f
docs: clear up comment
mattsse Dec 31, 2021
62810d4
docs: typos
mattsse Dec 31, 2021
c748663
fix: make all versions unique based on their major minor path version
mattsse Dec 31, 2021
e0b79cd
prepare test
mattsse Jan 5, 2022
a1d8efd
Merge branch 'master' into matt/dependency-graph
mattsse Jan 5, 2022
42d96bb
docs: add more resolve docs
mattsse Jan 5, 2022
dc205cb
test: add lib change detection test
mattsse Jan 5, 2022
abd61f4
Merge branch 'master' into matt/dependency-graph
mattsse Jan 5, 2022
56fda04
test: update tests
mattsse Jan 5, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

### Unreleased

- Add dependency graph and resolve all imported libraryfiles
[#750](https://github.com/gakonst/ethers-rs/pull/750)
- `Remapping::find_many` does not return a `Result` anymore
[#707](https://github.com/gakonst/ethers-rs/pull/707)
- Add support for hardhat artifacts
Expand Down
233 changes: 233 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions ethers-solc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ tempdir = { version = "0.3.7", optional = true }
fs_extra = { version = "1.2.0", optional = true }
sha2 = { version = "0.9.8", default-features = false }
dunce = "1.0.2"
solang-parser = { git = "https://github.com/hyperledger-labs/solang", default-features = false }
rayon = "1.5.1"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
home = "0.5.3"
Expand All @@ -56,6 +58,10 @@ tokio = { version = "1.12.0", features = ["full"] }
name = "compile_many"
harness = false

[[bench]]
name = "read_all"
harness = false

[[test]]
name = "project"
path = "tests/project.rs"
Expand Down
Loading