Elabs

Elabs-solc is a wrapper around the Solidity compiler. It is designed to be used as a library, and not as a command line tool. It will wrap solc cli tools, and provide a simple interface to compile solidity contracts.

Usage

To use the library, you need to import it in your project: toml [dependencies] elabs-solc = "0.1"

Example

```rust use elabs_solc::Solc;

fn main() { let solc = Solc::new(); let inputpath = "contracts/Simple.sol"; let outputpath = "artifacts"; match solc.compile(inputpath, outputpath, vec![]) { Ok() => println!("{} compiled", inputpath), Err(e) => panic!("{}", e), } } ```