Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

fix(solc): add RuntimeOrHandle & fix solc blocking installation #1260

Merged
merged 8 commits into from
May 14, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
hide import for wasm
rkrasiuk committed May 14, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit e32c312723edd7090f3b8d2a4514055f8afd9bc9
4 changes: 3 additions & 1 deletion ethers-solc/src/utils.rs
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@ use regex::{Match, Regex};
use semver::Version;
use serde::de::DeserializeOwned;
use tiny_keccak::{Hasher, Keccak};
use tokio::runtime::{Handle, Runtime};
use walkdir::WalkDir;

/// A regex that matches the import path and identifier of a solidity import
@@ -331,6 +330,9 @@ pub(crate) fn find_fave_or_alt_path(root: impl AsRef<Path>, fave: &str, alt: &st
p
}

#[cfg(not(target_arch = "wasm32"))]
use tokio::runtime::{Handle, Runtime};

#[cfg(not(target_arch = "wasm32"))]
#[derive(Debug)]
pub enum RuntimeOrHandle {