Cargo.toml 714 B

1234567891011121314151617181920212223242526272829303132
  1. [package]
  2. name = "dns-transport"
  3. version = "0.1.0"
  4. authors = ["Benjamin Sago <[email protected]>"]
  5. edition = "2018"
  6. [dependencies]
  7. derive_more = "0.99"
  8. # dns wire protocol
  9. dns = { path = "../dns" }
  10. # logging
  11. log = "0.4"
  12. # base networking
  13. async-trait = "0.1"
  14. tokio = { version = "0.2", features = ["dns", "tcp", "udp", "io-util"] } # dns is used to resolve nameservers
  15. tokio-tls = { version = "0.3", optional = true }
  16. # tls
  17. native-tls = { version = "0.2", optional = true }
  18. # https
  19. hyper = { version = "0.13", optional = true }
  20. hyper-tls = { version = "0.4", optional = true }
  21. [features]
  22. default = [] # these are enabled in the main dog crate
  23. tls = ["native-tls", "tokio-tls"]
  24. https = ["hyper", "hyper-tls"]