Skip to content

Commit

Permalink
use workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
timglabisch committed Feb 25, 2022
1 parent 9208c6a commit 27dc9ac
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 25 deletions.
8 changes: 8 additions & 0 deletions Cargo.lock

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

27 changes: 5 additions & 22 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,6 @@
[package]
name = "serverdensity_udpserver"
version = "0.1.0"
authors = ["timglabisch <[email protected]>"]
edition = "2021"
[workspace]

[dependencies]
byteorder = "1.4.*"
reqwest = { version = "0.11.*", features = ["blocking"] }
clap = "3.0.*"
url = "2.2.*"
md5 = "0.7.*"
regex = "1.5.*"
openssl-probe = "0.1.*"
bytes = "1.1.*"

[[bin]]
name = "serverdensity-udp-adgent"
path = "src/main.rs"

[lib]
name = "serverdensity_udp_adgent"
path = "src/lib/lib.rs"
members = [
"serverdensity_udpserver",
"serverdensity_udpserver_lib",
]
16 changes: 16 additions & 0 deletions serverdensity_udpserver/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "serverdensity_udpserver"
version = "0.1.0"
authors = ["timglabisch <[email protected]>"]
edition = "2021"

[dependencies]
byteorder = "1.4.*"
reqwest = { version = "0.11.*", features = ["blocking"] }
clap = "3.0.*"
url = "2.2.*"
md5 = "0.7.*"
regex = "1.5.*"
openssl-probe = "0.1.*"
bytes = "1.1.*"
serverdensity_udpserver_lib = { path = "../serverdensity_udpserver_lib" }
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::sync::mpsc::Receiver;
use crate::Metric;
use ::md5;
use reqwest;
use serverdensity_udp_adgent::MetricType;
use serverdensity_udpserver_lib::MetricType;
use crate::handler::{SumHandler, AverageHandler, PeakHandler, MinHandler};

pub struct Aggregator<'a> {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/main.rs → serverdensity_udpserver/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mod handler;
use clap::{Arg, App};
use std::sync::mpsc::channel;
use std::thread;
use serverdensity_udp_adgent::MetricType;
use serverdensity_udpserver_lib::MetricType;
use crate::config::Config;
use crate::aggregator::Aggregator;
use crate::udpserver::UdpServer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use byteorder::ByteOrder;
use crate::config::Config;
use crate::Metric;
use std::sync::mpsc::Sender;
use serverdensity_udp_adgent::MetricType;
use serverdensity_udpserver_lib::MetricType;


pub struct UdpServer;
Expand Down
8 changes: 8 additions & 0 deletions serverdensity_udpserver_lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[package]
name = "serverdensity_udpserver_lib"
version = "0.1.0"
authors = ["timglabisch <[email protected]>"]
edition = "2021"

[dependencies]
bytes = "1.1.*"
File renamed without changes.

0 comments on commit 27dc9ac

Please sign in to comment.