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

Commit

Permalink
fix(libs/foundry-wrapper): added missing serde feature
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmemorygrinder committed Dec 6, 2023
1 parent 63c8c7c commit 5c8c203
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions libs/foundry-wrapper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ glob = "0.3.1"
clap = "4.4.8"
thiserror = "1.0.50"
which = "5.0"
serde = "1.0.193"
serde_json = "1.0.108"
serde = { version = "1.0.149", features = ["derive"] }
serde_json = "1.0.108"
1 change: 0 additions & 1 deletion libs/foundry-wrapper/src/compiler.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::process::Command;
use serde_json;
use crate::{types::ProjectCompileOutput, error::Error, utils::{find_projects_paths, find_forge_executable, check_executable_argument}};

#[derive(Debug)]
Expand Down
1 change: 1 addition & 0 deletions libs/foundry-wrapper/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ impl ProjectCompileOutput {
}
}


#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct CompilationError {
#[serde(rename = "sourceLocation")]
Expand Down
2 changes: 0 additions & 2 deletions libs/foundry-wrapper/src/utils/path.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use glob::glob;
use std::path::PathBuf;

use crate::Error;

pub fn find_projects_paths(root_path: &str) -> Result<Vec<PathBuf>, glob::PatternError> {
let pattern = format!("{}/**/foundry.toml", root_path);
let filespaths = glob(&pattern)?
Expand Down

0 comments on commit 5c8c203

Please sign in to comment.