Skip to content

Rust bindings for the Solidity compiler.

License

Notifications You must be signed in to change notification settings

Zokrates/solc-rust

 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 99.4%
  • Shell 0.6%