Skip to content

axic/solc-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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