mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-07 08:23:08 +00:00
compilation fixes and update wakusys/vendor
This commit is contained in:
parent
51ea3be78f
commit
a5338bf03c
@ -16,10 +16,6 @@ use crate::utils::{get_trampoline, handle_json_response, handle_no_response, han
|
|||||||
/// Instantiates a Waku node
|
/// Instantiates a Waku node
|
||||||
/// as per the [specification](https://rfc.vac.dev/spec/36/#extern-char-waku_newchar-jsonconfig)
|
/// as per the [specification](https://rfc.vac.dev/spec/36/#extern-char-waku_newchar-jsonconfig)
|
||||||
pub fn waku_new(config: Option<WakuNodeConfig>) -> Result<WakuNodeContext> {
|
pub fn waku_new(config: Option<WakuNodeConfig>) -> Result<WakuNodeContext> {
|
||||||
unsafe {
|
|
||||||
waku_sys::waku_setup();
|
|
||||||
}
|
|
||||||
|
|
||||||
let config = config.unwrap_or_default();
|
let config = config.unwrap_or_default();
|
||||||
let config_ptr = CString::new(
|
let config_ptr = CString::new(
|
||||||
serde_json::to_string(&config)
|
serde_json::to_string(&config)
|
||||||
|
|||||||
@ -8,7 +8,7 @@ use libc::*;
|
|||||||
// internal
|
// internal
|
||||||
use crate::general::contenttopic::{Encoding, WakuContentTopic};
|
use crate::general::contenttopic::{Encoding, WakuContentTopic};
|
||||||
use crate::general::pubsubtopic::PubsubTopic;
|
use crate::general::pubsubtopic::PubsubTopic;
|
||||||
use crate::general::{MessageHash, Result, WakuMessage};
|
use crate::general::{messagehash::MessageHash, Result, WakuMessage};
|
||||||
use crate::node::context::WakuNodeContext;
|
use crate::node::context::WakuNodeContext;
|
||||||
use crate::utils::{get_trampoline, handle_no_response, handle_response, LibwakuResponse};
|
use crate::utils::{get_trampoline, handle_no_response, handle_response, LibwakuResponse};
|
||||||
|
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
Subproject commit 6f5f8b835cd65381988658642bdbbd7b7281e367
|
Subproject commit 5cff6069590957405bb5d7f2ab05bf3621c6df0f
|
||||||
Loading…
x
Reference in New Issue
Block a user