Implement the dyn compiler trait for compilers

This commit is contained in:
Omar Abdulla
2025-09-17 19:29:23 +03:00
parent 1a25c8e0ab
commit 7aadd0a7f7
3 changed files with 70 additions and 10 deletions
+4 -1
View File
@@ -37,7 +37,10 @@ pub trait DynSolidityCompiler {
fn path(&self) -> &Path;
/// The low-level compiler interface.
fn build(&self, input: CompilerInput) -> Pin<Box<dyn Future<Output = Result<CompilerOutput>>>>;
fn build(
&self,
input: CompilerInput,
) -> Pin<Box<dyn Future<Output = Result<CompilerOutput>> + '_>>;
/// Does the compiler support the provided mode and version settings.
fn supports_mode(