elabs-solc

Crates.ioelabs-solc
lib.rselabs-solc
version0.1.1
sourcesrc
created_at2022-02-09 05:35:15.348016
updated_at2022-02-09 09:05:51.150479
descriptionElabs Solc: The solc wrapper
homepage
repositoryhttps://github.com/pentalabs/elabs/tree/master/elabs-solc
max_upload_size
id529524
size40,973
Ade Ramdani (noobiescoder)

documentation

README

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:

[dependencies]
elabs-solc = "0.1"

Example

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),
	}
}
Commit count: 0

cargo fmt