Skip to content

Commit

Permalink
feat(net4mqtt): rename netmqtt to net4mqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wing committed Sep 28, 2024
1 parent 6480a3e commit 7033f7b
Show file tree
Hide file tree
Showing 17 changed files with 15 additions and 14 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ members = [
"libs/http-log",
"libs/libwish",
"libs/signal",
"libs/net4mqtt",
"tools/whepfrom",
"tools/whipinto",
"liveion",
Expand Down
2 changes: 1 addition & 1 deletion libs/netmqtt/Cargo.toml → libs/net4mqtt/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "netmqtt"
name = "net4mqtt"
description = "net (TCP/UDP) over mqtt tool"
version.workspace = true
edition.workspace = true
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion libs/netmqtt/bin/main.rs → libs/net4mqtt/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::net::{IpAddr, Ipv4Addr, SocketAddr};
use clap::{ArgAction, Parser, Subcommand};
use tracing::{debug, info, trace, Level};

use netmqtt::proxy;
use net4mqtt::proxy;

#[derive(Parser, Debug)]
#[command(version, about, long_about = None)]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions liveion/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ libwish = { path = "../libs/libwish" }
signal = { path = "../libs/signal" }
utils = { path = "../libs/utils" }

netmqtt = { path = "../libs/netmqtt", optional = true }
net4mqtt = { path = "../libs/net4mqtt", optional = true }

anyhow = { workspace = true, features = ["backtrace"] }
clap = { workspace = true, features = ["derive"] }
Expand Down Expand Up @@ -51,4 +51,4 @@ reqwest = { version = "0.12", optional = true, features = [
[features]
default = ["net4mqtt"]
webhook = ["dep:reqwest"]
net4mqtt = ["dep:netmqtt"]
net4mqtt = ["dep:net4mqtt"]
2 changes: 1 addition & 1 deletion liveion/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ where
tokio::runtime::Runtime::new()
.unwrap()
.block_on(async move {
netmqtt::proxy::agent(
net4mqtt::proxy::agent(
&c.mqtt_url,
cfg.http.listen,
&c.alias.clone(),
Expand Down
4 changes: 2 additions & 2 deletions liveman/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repository.workspace = true

[dependencies]
liveion = { path = "../liveion", optional = true }
netmqtt = { path = "../libs/netmqtt", optional = true }
net4mqtt = { path = "../libs/net4mqtt", optional = true }

api = { path = "../libs/api" }
auth = { path = "../libs/auth" }
Expand Down Expand Up @@ -42,5 +42,5 @@ url = "2.5"
[features]
default = ["net4mqtt"]
liveion = ["dep:liveion"]
net4mqtt = ["dep:netmqtt"]
net4mqtt = ["dep:net4mqtt"]

4 changes: 2 additions & 2 deletions liveman/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ where
tokio::runtime::Runtime::new()
.unwrap()
.block_on(async move {
netmqtt::proxy::local_socks(
net4mqtt::proxy::local_socks(
&c.mqtt_url,
c.listen,
"-",
Expand All @@ -161,7 +161,7 @@ where

std::thread::spawn(move || {
let suffix = "net4mqtt.local";
let dns = netmqtt::kxdns::Kxdns::new(suffix);
let dns = net4mqtt::kxdns::Kxdns::new(suffix);
tokio::runtime::Runtime::new()
.unwrap()
.block_on(async move {
Expand Down

0 comments on commit 7033f7b

Please sign in to comment.