Skip to content

Commit

Permalink
Use pnet_datalink instead of all of pnet
Browse files Browse the repository at this point in the history
pnet_transport takes a long time to build. It's been especially
painful from within a docker container for reasons I don't care
to understand. pnet_datalink is the only part of pnet we're using
so booting the rest.
  • Loading branch information
garious committed Jun 24, 2018
1 parent 7059ea4 commit c7ce454
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ libc = "0.2.1"
getopts = "0.2"
atty = "0.2"
rand = "0.5.1"
pnet = "0.21.0"
pnet_datalink = "0.21.0"
tokio = "0.1"
tokio-codec = "0.1"
tokio-io = "0.1"
1 change: 0 additions & 1 deletion src/bin/client-demo.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
extern crate atty;
extern crate env_logger;
extern crate getopts;
extern crate pnet;
extern crate rayon;
extern crate serde_json;
extern crate solana;
Expand Down
2 changes: 1 addition & 1 deletion src/crdt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use bincode::{deserialize, serialize};
use byteorder::{LittleEndian, ReadBytesExt};
use hash::Hash;
use packet::{to_blob, Blob, BlobRecycler, SharedBlob, BLOB_SIZE};
use pnet::datalink;
use pnet_datalink as datalink;
use rayon::prelude::*;
use result::{Error, Result};
use ring::rand::{SecureRandom, SystemRandom};
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ extern crate ring;
extern crate serde;
#[macro_use]
extern crate serde_derive;
extern crate pnet;
extern crate pnet_datalink;
extern crate serde_json;
extern crate sha2;
extern crate untrusted;
Expand Down

0 comments on commit c7ce454

Please sign in to comment.