mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 09:08:12 +08:00
Make the cargo-run tool auto-install its wasm-opt build dependency (#4256)
* Allow auto downloading wasm-opt * Fix for mac * Review
This commit is contained in:
@@ -77,6 +77,14 @@ pub fn target_dir() -> PathBuf {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn install_dir() -> PathBuf {
|
||||
target_dir().join("cargo-run")
|
||||
}
|
||||
|
||||
pub fn bin_dir() -> PathBuf {
|
||||
install_dir().join("bin")
|
||||
}
|
||||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum Error {
|
||||
#[error("One or more requirements were not met")]
|
||||
|
||||
Reference in New Issue
Block a user