This commit is contained in:
Richard Ramos 2023-05-12 08:06:07 -04:00
parent 98144f762f
commit 8b4241ea3f
No known key found for this signature in database
GPG Key ID: 1CE87DB518195760
4 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View File

@ -1674,7 +1674,7 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
[[package]] [[package]]
name = "waku-bindings" name = "waku-bindings"
version = "0.1.0-rc.4" version = "0.1.0"
dependencies = [ dependencies = [
"aes-gcm", "aes-gcm",
"base64 0.21.0", "base64 0.21.0",

2
examples/Cargo.lock generated
View File

@ -1497,7 +1497,7 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
[[package]] [[package]]
name = "waku-bindings" name = "waku-bindings"
version = "0.1.0-rc.3" version = "0.1.0"
dependencies = [ dependencies = [
"aes-gcm", "aes-gcm",
"base64 0.21.0", "base64 0.21.0",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "waku-bindings" name = "waku-bindings"
version = "0.1.0-rc.4" version = "0.1.0"
edition = "2021" edition = "2021"
authors = [ authors = [
"Daniel Sanchez Quiros <danielsq@status.im>" "Daniel Sanchez Quiros <danielsq@status.im>"

View File

@ -79,7 +79,7 @@ impl<T> From<JsonResponse<T>> for Result<T> {
#[derive(Clone, Serialize, Deserialize, Debug)] #[derive(Clone, Serialize, Deserialize, Debug)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
pub struct WakuMessage { pub struct WakuMessage {
#[serde(with = "base64_serde")] #[serde(with = "base64_serde", default = "Vec::new")]
payload: Vec<u8>, payload: Vec<u8>,
/// The content topic to be set on the message /// The content topic to be set on the message
content_topic: WakuContentTopic, content_topic: WakuContentTopic,