gakonst / solc-rust

Rust bindings for the Solidity compiler.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Rust bindings for the Solidity compiler.

License:GNU General Public License v3.0


Languages

Language:Rust 100.0%