Skip to content

Commit

Permalink
clean: share prost dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
0xB10C committed May 29, 2024
1 parent 4e4bb14 commit f9919ab
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 10 deletions.
3 changes: 0 additions & 3 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 shared/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![cfg_attr(feature = "strict", deny(warnings))]

pub extern crate bitcoin;
pub extern crate prost;

pub mod addrman;
pub mod ctypes;
Expand Down
1 change: 0 additions & 1 deletion tools/addr-connectivity-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ edition = "2021"
[dependencies]
shared = { path = "../../shared" }

prost = "0.10"
nng = "1.0.1"
crossbeam = { version = "0.8.2", features = ["crossbeam-channel"] }
rand = "0.8.5"
Expand Down
2 changes: 1 addition & 1 deletion tools/addr-connectivity-rs/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use shared::net_msg::message::Msg;
use shared::net_msg::Message as NetMessage;
use shared::primitive::address::Address as AddressType;
use shared::primitive::Address;
use shared::prost::Message as ProstMessage;
use shared::util;
use shared::wrapper;
use shared::wrapper::wrapper::Wrap;
Expand All @@ -24,7 +25,6 @@ use crossbeam::channel::{unbounded, Receiver, Sender};
use nng::options::protocol::pubsub::Subscribe;
use nng::options::Options;
use nng::{Protocol, Socket};
use prost::Message as ProstMessage;
use rand::Rng;

mod metrics;
Expand Down
1 change: 0 additions & 1 deletion tools/logger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ edition = "2021"
[dependencies]
shared = { path = "../../shared" }

prost = "0.10"
nng = "1.0.1"

[features]
Expand Down
2 changes: 1 addition & 1 deletion tools/logger/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use nng::options::protocol::pubsub::Subscribe;
use nng::options::Options;
use nng::{Protocol, Socket};

use prost::Message;
use shared::prost::Message;
use shared::wrapper;
use shared::wrapper::wrapper::Wrap;

Expand Down
1 change: 0 additions & 1 deletion tools/metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ lazy_static = "1.4.0"
log = "0.4.14"
simple_logger = "1.9.0"

prost = "0.10"
nng = "1.0.1"

[features]
Expand Down
3 changes: 1 addition & 2 deletions tools/metrics/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ use nng::options::protocol::pubsub::Subscribe;
use nng::options::Options;
use nng::{Protocol, Socket};

use prost::Message;

use shared::addrman::addrman_event;
use shared::mempool::mempool_event;
use shared::net_conn::connection_event;
use shared::net_msg;
use shared::net_msg::{message::Msg, reject::RejectReason};
use shared::prost::Message;
use shared::util;
use shared::validation::validation_event;
use shared::wrapper;
Expand Down

0 comments on commit f9919ab

Please sign in to comment.