Skip to content

Commit

Permalink
Merge pull request #141 from erikh/refactors
Browse files Browse the repository at this point in the history
Refactors
  • Loading branch information
erikh committed Feb 21, 2022
2 parents 786fc52 + 08a1d56 commit e568f65
Show file tree
Hide file tree
Showing 17 changed files with 1,042 additions and 1,115 deletions.
97 changes: 22 additions & 75 deletions Cargo.lock

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

15 changes: 8 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,23 @@ regex = ">= 0"
anyhow = ">= 0"
clap = { version = "^3", features = ["derive"] }
ipnetwork = ">= 0"
trust-dns-resolver = "0.20.2"
trust-dns-server = { version = "0.20.2", features = ["trust-dns-resolver"] }
trust-dns-resolver = { version = "^0.20.4", features = ["tokio-runtime"] }
trust-dns-server = { version = "^0.20.4", features = ["trust-dns-resolver"] }
tokio = { version = "1", features = ["full"] }
zerotier-central-api = "= 1.0.2"
zerotier-one-api = "= 1.0.4"
zerotier-central-api = { version = "= 1.0.3", path = "../zerotier-rust-api/zerotier-central-api" }
zerotier-one-api = { version = "= 1.0.5", path = "../zerotier-rust-api/zerotier-one-api" }
serde = ">= 0"
serde_json = ">= 0"
tinytemplate = ">= 0"
rand = ">= 0"
num_cpus = ">=0"
log = ">=0"
stderrlog = ">=0"
env_logger = ">=0"
hex = ">=0"

[features]
integration-tests = []
[dev-dependencies]
async-trait = ">=0"
lazy_static = ">=0"

[package.metadata.deb]
copyright = "ZeroTier, Inc"
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ test:

test-integration:
ifneq (${SKIP},)
TOKEN=$$(cat test-token.txt) sudo -E bash -c "$$(which cargo) test ${RUN_TEST} --features integration-tests -- --skip '${SKIP}' --nocapture --test-threads 1"
TOKEN=$$(cat test-token.txt) sudo -E bash -c "$$(which cargo) test ${RUN_TEST} -- --skip '${SKIP}' --nocapture --test-threads 1"
else
TOKEN=$$(cat test-token.txt) sudo -E bash -c "$$(which cargo) test ${RUN_TEST} --features integration-tests -- --nocapture --test-threads 1"
TOKEN=$$(cat test-token.txt) sudo -E bash -c "$$(which cargo) test ${RUN_TEST} -- --nocapture --test-threads 1"
endif

generate: central service
Expand Down
2 changes: 1 addition & 1 deletion src/addresses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn get_parts(member: Member) -> Result<(u64, u64), anyhow::Error> {
))
}

pub(crate) trait Calculator {
pub trait Calculator {
fn sixplane(self) -> Result<IpNetwork, anyhow::Error>;
fn rfc4193(self) -> Result<IpNetwork, anyhow::Error>;
}
Expand Down
Loading

0 comments on commit e568f65

Please sign in to comment.