mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 19:51:05 +00:00
Change manual dependency on wasm-gc executable to an automatic cargo dependency. (#3854)
Improves user experience.
This commit is contained in:
committed by
Bastian Köcher
parent
141a64cf41
commit
470b62366f
@@ -14,9 +14,7 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
use std::{process::{Command, Stdio}, fs};
|
||||
|
||||
use std::env;
|
||||
use std::{env, fs};
|
||||
use tempfile::tempdir;
|
||||
|
||||
/// Checks that all prerequisites are installed.
|
||||
@@ -28,15 +26,6 @@ pub fn check() -> Option<&'static str> {
|
||||
return Some("Rust nightly not installed, please install it!")
|
||||
}
|
||||
|
||||
if Command::new("wasm-gc")
|
||||
.stdout(Stdio::null())
|
||||
.stderr(Stdio::null())
|
||||
.status()
|
||||
.map(|s| !s.success()).unwrap_or(true)
|
||||
{
|
||||
return Some("`wasm-gc` not installed, please install it!")
|
||||
}
|
||||
|
||||
check_wasm_toolchain_installed()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user