Skip to content

Commit

Permalink
feat: expose waku_version
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-ramos committed Feb 20, 2024
1 parent 685a6ae commit 9c696e6
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 246 deletions.
188 changes: 10 additions & 178 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions waku-bindings/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ mod utils;
use rln;

pub use node::{
waku_create_content_topic, waku_default_pubsub_topic, waku_new, Event, Key, Multiaddr,
PublicKey, SecretKey, WakuMessageEvent, WakuNodeConfig, WakuNodeHandle,
waku_create_content_topic, waku_new, Event, Key, Multiaddr, PublicKey, SecretKey,
WakuMessageEvent, WakuNodeConfig, WakuNodeHandle,
};

pub use general::{Encoding, MessageId, Result, WakuContentTopic, WakuMessage, WakuMessageVersion};
16 changes: 0 additions & 16 deletions waku-bindings/src/node/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,13 @@ pub struct WakuNodeConfig {
/// Libp2p TCP listening port. Default `60000`. Use `0` for **random**
#[default(Some(60000))]
pub port: Option<usize>,
/// External address to advertise to other nodes. Can be ip4, ip6 or dns4, dns6.
/// If null, the multiaddress(es) generated from the ip and port specified in the config (or default ones) will be used.
/// Default: null
pub advertise_addr: Option<Multiaddr>,
/// Secp256k1 private key in Hex format (`0x123...abc`). Default random
#[serde(with = "secret_key_serde", rename = "key")]
pub node_key: Option<SecretKey>,
/// Enable relay protocol. Default `true`
#[default(Some(true))]
pub relay: Option<bool>,
pub relay_topics: Vec<String>,
// /// Enable store protocol to persist message history
// #[default(Some(false))]
// pub store: Option<bool>,
// /// Url connection string. Accepts SQLite and PostgreSQL connection strings
// #[default(Some("sqlite3://store.db".to_string()))]
// pub database_url: Option<String>,
// /// Max number of messages to store in the databas
// #[default(Some(1000))]
// pub store_retention_max_messages: Option<usize>,
// /// Max number of seconds that a message will be persisted in the database, default 1 day
// #[default(Some(86400))]
// pub store_retention_max_seconds: Option<usize>,
}

mod secret_key_serde {
Expand Down
Loading

0 comments on commit 9c696e6

Please sign in to comment.