foundry_config/bind_json.rs
use crate::filter::GlobMatcher;
use serde::{Deserialize, Serialize};
use std::path::PathBuf;
/// Contains the config for `forge bind-json`
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct BindJsonConfig {
/// Path for the generated bindings file.
pub out: PathBuf,
/// Globs to include.
///
/// If provided, only the files matching the globs will be included. Otherwise, defaults to
/// including all project files.
pub include: Vec<GlobMatcher>,
/// Globs to ignore
pub exclude: Vec<GlobMatcher>,
}
impl Default for BindJsonConfig {
fn default() -> Self {
Self {
out: PathBuf::from("utils/JsonBindings.sol"),
exclude: Vec::new(),
include: Vec::new(),
}
}
}