Cargo.toml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. [package]
  2. authors = ["The Tor Project",
  3. "Isis Lovecruft <isis@torproject.org>"]
  4. name = "crypto"
  5. version = "0.0.1"
  6. publish = false
  7. build = "../build.rs"
  8. [lib]
  9. name = "crypto"
  10. path = "lib.rs"
  11. [dependencies]
  12. libc = "=0.2.39"
  13. digest = "=0.7.2"
  14. rand_core = { version = "=0.2.0-pre.0", default-features = false }
  15. external = { path = "../external" }
  16. smartlist = { path = "../smartlist" }
  17. tor_allocate = { path = "../tor_allocate" }
  18. tor_log = { path = "../tor_log" }
  19. [dev-dependencies]
  20. rand = { version = "=0.5.0-pre.2", default-features = false }
  21. rand_core = { version = "=0.2.0-pre.0", default-features = false }
  22. [features]
  23. # If this feature is enabled, test code which calls Tor C code from Rust will
  24. # execute with `cargo test`. Due to numerous linker issues (#25386), this is
  25. # currently disabled by default.
  26. test-c-from-rust = []
  27. # We have to define a feature here because doctests don't get cfg(test),
  28. # and we need to disable some C dependencies when running the doctests
  29. # because of the various linker issues. See
  30. # https://github.com/rust-lang/rust/issues/45599
  31. test_linking_hack = []