Cargo.toml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. [package]
  2. name = "solana-hash"
  3. description = "Solana wrapper for the 32-byte output of a hashing algorithm."
  4. documentation = "https://docs.rs/solana-hash"
  5. version = { workspace = true }
  6. authors = { workspace = true }
  7. repository = { workspace = true }
  8. homepage = { workspace = true }
  9. license = { workspace = true }
  10. edition = { workspace = true }
  11. [package.metadata.docs.rs]
  12. targets = ["x86_64-unknown-linux-gnu"]
  13. [dependencies]
  14. borsh = { workspace = true, optional = true }
  15. bs58 = { workspace = true, default-features = false }
  16. bytemuck = { workspace = true, optional = true }
  17. bytemuck_derive = { workspace = true, optional = true }
  18. serde = { workspace = true, optional = true }
  19. serde_derive = { workspace = true, optional = true }
  20. solana-atomic-u64 = { workspace = true }
  21. solana-frozen-abi = { workspace = true, optional = true, features = [
  22. "frozen-abi",
  23. ] }
  24. solana-frozen-abi-macro = { workspace = true, optional = true, features = [
  25. "frozen-abi",
  26. ] }
  27. solana-sanitize = { workspace = true }
  28. [dev-dependencies]
  29. solana-hash = { path = ".", features = ["dev-context-only-utils"] }
  30. [target.'cfg(target_arch = "wasm32")'.dependencies]
  31. js-sys = { workspace = true }
  32. wasm-bindgen = { workspace = true }
  33. [features]
  34. borsh = ["dep:borsh", "std"]
  35. bytemuck = ["dep:bytemuck", "dep:bytemuck_derive"]
  36. default = ["std"]
  37. dev-context-only-utils = ["bs58/alloc"]
  38. frozen-abi = [
  39. "dep:solana-frozen-abi",
  40. "dep:solana-frozen-abi-macro",
  41. "std"
  42. ]
  43. serde = ["dep:serde", "dep:serde_derive"]
  44. std = []
  45. [lints]
  46. workspace = true