the solc binaries list downloader

Signed-off-by: xermicus <bigcyrill@hotmail.com>
This commit is contained in:
xermicus
2025-03-21 14:32:15 +01:00
parent eb685fc668
commit 84a5647a8b
10 changed files with 639 additions and 27 deletions
+6
View File
@@ -39,6 +39,12 @@ pub struct Compiler<T: SolidityCompiler> {
base_path: Option<String>,
}
impl Default for Compiler<solc::Solc> {
fn default() -> Self {
Self::new()
}
}
impl<T> Compiler<T>
where
T: SolidityCompiler,
+23
View File
@@ -1,2 +1,25 @@
//! Implements the [SolidityCompiler] trait with solc for
//! compiling contracts to EVM bytecode.
use revive_solc_json_interface::{SolcStandardJsonInput, SolcStandardJsonOutput};
use semver::Version;
use crate::SolidityCompiler;
pub struct Solc {}
impl SolidityCompiler for Solc {
type Options = ();
fn build(
&self,
_input: &SolcStandardJsonInput,
_extra_options: &Option<Self::Options>,
) -> anyhow::Result<SolcStandardJsonOutput> {
todo!()
}
fn new(_solc_version: &Version) -> Self {
todo!()
}
}