Skip to content
forked from Y-Nak/solc-rust

Rust bindings for the Solidity compiler.

License

Notifications You must be signed in to change notification settings

fe-lang/solc-rust

 
 

Repository files navigation

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

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%