change dependencies to optional metadata field

This commit is contained in:
hosted-fornet 2024-05-13 20:10:17 -07:00
parent 91717f14fa
commit 3194b0377b
2 changed files with 7 additions and 6 deletions

10
Cargo.lock generated
View File

@ -3151,8 +3151,8 @@ dependencies = [
[[package]]
name = "kinode_process_lib"
version = "0.7.1"
source = "git+https://github.com/kinode-dao/process_lib?tag=v0.7.2#61a8de975fd0a812a0a033ee0975fb83dd166224"
version = "0.7.0"
source = "git+https://github.com/kinode-dao/process_lib.git?rev=2aa3a1a#2aa3a1a22e8a88e46864d474d777422eb1f1b60b"
dependencies = [
"alloy-json-rpc 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=cad7935)",
"alloy-primitives 0.7.0",
@ -3173,8 +3173,8 @@ dependencies = [
[[package]]
name = "kinode_process_lib"
version = "0.7.0"
source = "git+https://github.com/kinode-dao/process_lib.git?rev=2aa3a1a#2aa3a1a22e8a88e46864d474d777422eb1f1b60b"
version = "0.7.1"
source = "git+https://github.com/kinode-dao/process_lib?tag=v0.7.2#61a8de975fd0a812a0a033ee0975fb83dd166224"
dependencies = [
"alloy-json-rpc 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=cad7935)",
"alloy-primitives 0.7.0",
@ -3241,7 +3241,7 @@ dependencies = [
"futures-util",
"git2",
"hex",
"kinode_process_lib 0.7.0 (git+https://github.com/kinode-dao/process_lib.git?rev=2aa3a1a)",
"kinode_process_lib 0.7.0",
"nix",
"regex",
"reqwest 0.11.27",

View File

@ -1072,6 +1072,7 @@ pub struct Erc721Metadata {
/// - `license`: An optional field containing the license of the package.
/// - `screenshots`: An optional field containing a list of URLs to screenshots of the package.
/// - `wit_version`: An optional field containing the version of the WIT standard that the package adheres to.
/// - `dependencies`: An optional field containing a list of `PackageId`s: API dependencies
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Erc721Properties {
pub package_name: String,
@ -1082,7 +1083,7 @@ pub struct Erc721Properties {
pub license: Option<String>,
pub screenshots: Option<Vec<String>>,
pub wit_version: Option<(u32, u32, u32)>,
pub dependencies: Vec<String>,
pub dependencies: Option<Vec<String>>,
}
/// the type that gets deserialized from each entry in the array in `manifest.json`