Skip to content
forked from axic/solc-rust

Rust bindings for the Solidity compiler.

License

Notifications You must be signed in to change notification settings

g-r-a-n-t/solc-rust

This branch is 19 commits ahead of axic/solc-rust:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f8bc7f1 · Jul 6, 2022

History

40 Commits
Jul 6, 2022
Dec 17, 2021
Jan 16, 2019
Jan 15, 2019
Dec 17, 2021
Jan 15, 2019
Dec 10, 2019
Dec 17, 2021
Dec 17, 2021
Dec 10, 2019

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%