Skip to content

Commit

Permalink
Add plain_username, password and zap_domain socket options (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
iddm authored Oct 1, 2024
1 parent 6a68e55 commit d6d974e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[package]
name = "tmq"
version = "0.4.0"
authors = ["cetra3 <cetra3@hotmail.com>", "skrap <jonah@petri.us>", "kobzol <berykubik@gmail.com>", "YushiOMOTE <yushiomote@gmail.com>"]
version = "0.5.0"
authors = ["cetra3 <cetra3@hotmail.com>", "skrap <jonah@petri.us>", "kobzol <berykubik@gmail.com>", "YushiOMOTE <yushiomote@gmail.com>", "iddm <fx@thefx.co>"]
license = "MIT/Apache-2.0"
description = "ZeroMQ bindings for Tokio"
repository = "https://github.com/cetra3/tmq"
readme = "README.md"
edition = "2018"
edition = "2021"

[dependencies]
futures = { version = "0.3", default-features = false, features = ["alloc"] }
tokio = { version = "1.29", features = ["net"] }
tokio = { version = "1", features = ["net"] }
zmq = "0.10"
log = "0.4"
thiserror = "1"
Expand Down
15 changes: 15 additions & 0 deletions src/socket_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,21 @@ where
bool,
"Setter for the `ZMQ_PLAIN_SERVER` option."
);
setter!(
set_plain_username,
Option<&str>,
"Setter for the `ZMQ_PLAIN_USERNAME` option."
);
setter!(
set_plain_password,
Option<&str>,
"Setter for the `ZMQ_PLAIN_PASSWORD` option."
);
setter!(
set_zap_domain,
&str,
"Setter for the `ZMQ_ZAP_DOMAIN` option."
);
setter!(set_conflate, bool, "Setter for the `ZMQ_CONFLATE` option.");
setter!(
set_probe_router,
Expand Down

0 comments on commit d6d974e

Please sign in to comment.