Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 689 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 689 Bytes

solc-rust

Rust bindings for the Solidity compiler. It exposes Compiler Input and Output JSON API.

Usage

Add the dependency, as usual:

[dependencies]
solc = { git = "https://github.com/axic/solc-rust" }

In your project use it as:

pub fn main() {
    // Let input be a valid "Standard Solidity Input JSON"
    let input = "{}";
    let output = solc::compile(&input);
    assert_ne!(output.len(), 0);
}

Maintainer(s)

Alex Beregszaszi

License

GPL-3.0