Adding support for idl.json (#2114)

This commit is contained in:
Italo Casas 2022-12-05 18:41:02 +01:00 committed by GitHub
parent 98f26ce8cf
commit 11af9a6624
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -588,6 +588,7 @@ fn deser_programs(
path: None,
idl: None,
},
serde_json::Value::Object(_) => {
serde_json::from_value(program_id.clone())
.map_err(|_| anyhow!("Unable to read toml"))?

View File

@ -2916,6 +2916,10 @@ fn publish(
println!("PACKING: README.md");
tar.append_path("README.md")?;
}
if Path::new("idl.json").exists() {
println!("PACKING: idl.json");
tar.append_path("idl.json")?;
}
// All workspace programs.
for path in cfg.get_program_list()? {