foundry-rs / compilers

Utilities for working with native solc and compiling projects.
Apache License 2.0
58 stars 34 forks source link

feat: respect `paths.libraries` for Vyper #159

Closed klkvr closed 6 days ago

klkvr commented 6 days ago

Vyper 0.4 added search_paths key which is basically equivalent to solc's include_paths which we are already populating during import resolution.

Adds this key to compiler input and also tries going through paths.libs while resolving Vyper imports.

This allows users to normally configure dependencies outside of their src directory (i.e. from venv/.../site-packages or lib)

mattsse commented 6 days ago

pedantic clippy