Sitelet https://github.com/foundry-rs/compilers/commit/c2a6c688ae8048c3b02db8f3268c72017893000f
Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

Commit c2a6c68

Browse files
committed
chore: make metadata values json objects and do not serialize if empty
1 parent 2cf53af commit c2a6c68

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • crates/compilers/src/compilers

‎crates/compilers/src/compilers/mod.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ pub struct CompilerOutput<E, C> {
209209
pub contracts: FileToContractsMap<C>,
210210
#[serde(default)]
211211
pub sources: BTreeMap<PathBuf, SourceFile>,
212-
#[serde(default)]
213-
pub metadata: BTreeMap<String, String>,
212+
#[serde(default, skip_serializing_if = "::std::collections::BTreeMap::is_empty")]
213+
pub metadata: BTreeMap<String, serde_json::Value>,
214214
}
215215

216216
impl<E, C> CompilerOutput<E, C> {

0 commit comments

Comments
 (0)