Skip to content

Commit

Permalink
Split dnskey_to_pem.rs out into its own util crate.
Browse files Browse the repository at this point in the history
Move the utility programs into their own crate that complements the main
TRust-DNS crate. This will allow their dependencies to evolve separately
from the main crate. In particular, this is a step towards getting the
fully-DNSSEC-capable client working using only *ring*, because it moves
OpenSSL-specific code out of the client.
  • Loading branch information
briansmith authored and bluejekyll committed Sep 23, 2017
1 parent d1a5fb6 commit 7a7dbca
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 28 deletions.
74 changes: 54 additions & 20 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = ["client", "compatibility-tests", "integration-tests", "native-tls", "resolver", "rustls", "server"]
members = ["client", "compatibility-tests", "integration-tests", "native-tls", "resolver", "rustls", "server", "util"]

[replace]
#"native-tls:0.1.1" = { path = "../rust-native-tls" }
Expand Down
7 changes: 0 additions & 7 deletions client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,9 @@ tls = ["openssl", "tokio-openssl"]
name = "trust_dns"
path = "src/lib.rs"

[[bin]]
name = "dnskey-to-pem"
required-features = ["openssl"]
path = "src/dnskey_to_pem.rs"

[dependencies]
chrono = "^0.4"
clap = "^2.23.3"
data-encoding = "^1.2.0"
env_logger = "0.4.2"
error-chain = "0.1.12"
futures = "^0.1.6"
lazy_static = "^0.2.1"
Expand Down
43 changes: 43 additions & 0 deletions util/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[package]
name = "trust-dns-util"
version = "0.1.0"
authors = ["Benjamin Fry <benjaminfry@me.com>"]

# A short blurb about the package. This is not rendered in any format when
# uploaded to crates.io (aka this is not markdown)
description = """
Utilities that complement TRust-DNS.
"""

# These URLs point to more information about the repository
documentation = "https://docs.rs/trust-dns"
homepage = "http://www.trust-dns.org/index.html"
repository = "https://github.com/bluejekyll/trust-dns"

# This is a small list of keywords used to categorize and search for this
# package.
keywords = ["DNS", "BIND", "dig", "named", "dnssec"]
categories = ["network-programming"]

# This is a string description of the license for this package. Currently
# crates.io will validate the license provided against a whitelist of known
# license identifiers from http://spdx.org/licenses/. Multiple licenses can
# be separated with a `/`
license = "MIT/Apache-2.0"

[badges]
travis-ci = { repository = "bluejekyll/trust-dns" }
appveyor = { repository = "bluejekyll/trust-dns", branch = "master", service = "github" }
coveralls = { repository = "bluejekyll/trust-dns", branch = "master", service = "github" }

[[bin]]
name = "dnskey-to-pem"
path = "src/dnskey_to_pem.rs"

[dependencies]
clap = "^2.23.3"
data-encoding = "^1.2.0"
trust-dns = "0.11.3"
env_logger = "0.4.2"
log = "^0.3.5"
openssl = { version = "^0.9.8", features = ["v102", "v110"] }
File renamed without changes.

0 comments on commit 7a7dbca

Please sign in to comment.