Function ethers::solc::utils::source_files[][src]

pub fn source_files(
    root: impl AsRef<Path>
) -> Result<Vec<PathBuf, Global>, Error>
Expand description

Returns a list of absolute paths to all the solidity files under the root

NOTE: this does not resolve imports from other locations

Example

use ethers_solc::utils;
let sources = utils::source_files("./contracts").unwrap();