Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 777 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 777 Bytes

solc-rust

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

Build

git clone --recursive git@github.com:Y-Nak/solc-rust.git
cargo build

Usage

Add the dependency, as usual:

[dependencies]
solc = { git = "https://github.com/Y-Nak/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