diff --git a/Cargo.toml b/Cargo.toml index 02be60e..1191d6f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ log = "0.4.7" openssl = { version = "0.10.23", optional = true } quick-xml = { version = "0.31.0", optional = true } ring = { version = "0.17.6", optional = true } -serde = { version = "1.0.103", optional = true, features = [ "derive" ] } +serde = { version = "1.0.103", optional = true, features = [ "derive" , "rc" ] } serde_json = { version = "1.0.40", optional = true } tokio = { version = "1.0", optional = true, features = ["io-util", "net", "rt", "sync", "time"] } uuid = "1.1" diff --git a/src/repository/tal.rs b/src/repository/tal.rs index 62f20f9..17f6082 100644 --- a/src/repository/tal.rs +++ b/src/repository/tal.rs @@ -22,6 +22,7 @@ use serde::{Deserialize, Serialize}; //------------ Tal ----------------------------------------------------------- #[derive(Clone, Debug)] +#[cfg_attr(feature = "serde", derive(Deserialize, Serialize))] pub struct Tal { uris: Vec, key_info: PublicKey,