openethereum / sol-rs

Solaris - Solidity testing framework in Rust.
GNU General Public License v3.0
54 stars 14 forks source link

consider using the "standard json" interface of solc #25

Open axic opened 6 years ago

axic commented 6 years ago

The compiler expects a JSON formatted input (with all sources, required outputs and settings) and returns a JSON with all the required outputs.

For more details see https://solidity.readthedocs.io/en/develop/using-the-compiler.html#compiler-input-and-output-json-description

snd commented 6 years ago

working on a wrapper around solc/solcjs over here https://github.com/snd/rust_solc that will use the standard json interface. soon we'll be able to replace the solc part of sol-rs by it.

snd commented 6 years ago

unfortunately "standard json" seems broken for solcjs: https://github.com/ethereum/solc-js/issues/126

i'll might still implement it but this makes it somewhat less useful as people will need solc (C++) to use it and can't choose