Crates.io | elabs-solc |
lib.rs | elabs-solc |
version | 0.1.1 |
source | src |
created_at | 2022-02-09 05:35:15.348016 |
updated_at | 2022-02-09 09:05:51.150479 |
description | Elabs Solc: The solc wrapper |
homepage | |
repository | https://github.com/pentalabs/elabs/tree/master/elabs-solc |
max_upload_size | |
id | 529524 |
size | 40,973 |
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.
To use the library, you need to import it in your project:
[dependencies]
elabs-solc = "0.1"
use elabs_solc::Solc;
fn main() {
let solc = Solc::new();
let input_path = "contracts/Simple.sol";
let output_path = "artifacts";
match solc.compile(input_path, output_path, vec![]) {
Ok(_) => println!("{} compiled", input_path),
Err(e) => panic!("{}", e),
}
}