Cargo.toml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. [package]
  2. name = "anchor-lang"
  3. version = "0.30.0"
  4. authors = ["Anchor Maintainers <accounts@200ms.io>"]
  5. repository = "https://github.com/coral-xyz/anchor"
  6. rust-version = "1.60"
  7. edition = "2021"
  8. license = "Apache-2.0"
  9. description = "Solana Sealevel eDSL"
  10. [package.metadata.docs.rs]
  11. all-features = true
  12. rustdoc-args = ["--cfg", "docsrs"]
  13. [features]
  14. allow-missing-optionals = ["anchor-derive-accounts/allow-missing-optionals"]
  15. anchor-debug = [
  16. "anchor-attribute-access-control/anchor-debug",
  17. "anchor-attribute-account/anchor-debug",
  18. "anchor-attribute-constant/anchor-debug",
  19. "anchor-attribute-error/anchor-debug",
  20. "anchor-attribute-event/anchor-debug",
  21. "anchor-attribute-program/anchor-debug",
  22. "anchor-derive-accounts/anchor-debug"
  23. ]
  24. derive = []
  25. event-cpi = ["anchor-attribute-event/event-cpi"]
  26. idl-build = [
  27. "anchor-attribute-account/idl-build",
  28. "anchor-attribute-constant/idl-build",
  29. "anchor-attribute-event/idl-build",
  30. "anchor-attribute-error/idl-build",
  31. "anchor-attribute-program/idl-build",
  32. "anchor-derive-accounts/idl-build",
  33. "anchor-derive-serde/idl-build",
  34. "anchor-lang-idl/build",
  35. ]
  36. init-if-needed = ["anchor-derive-accounts/init-if-needed"]
  37. interface-instructions = ["anchor-attribute-program/interface-instructions"]
  38. [dependencies]
  39. anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.30.0" }
  40. anchor-attribute-account = { path = "./attribute/account", version = "0.30.0" }
  41. anchor-attribute-constant = { path = "./attribute/constant", version = "0.30.0" }
  42. anchor-attribute-error = { path = "./attribute/error", version = "0.30.0" }
  43. anchor-attribute-event = { path = "./attribute/event", version = "0.30.0" }
  44. anchor-attribute-program = { path = "./attribute/program", version = "0.30.0" }
  45. anchor-derive-accounts = { path = "./derive/accounts", version = "0.30.0" }
  46. anchor-derive-serde = { path = "./derive/serde", version = "0.30.0" }
  47. anchor-derive-space = { path = "./derive/space", version = "0.30.0" }
  48. # `anchor-lang-idl` should only be included with `idl-build` feature
  49. anchor-lang-idl = { path = "../idl", version = "0.1.0", optional = true }
  50. arrayref = "0.3"
  51. base64 = "0.21"
  52. bincode = "1"
  53. borsh = ">=0.9, <0.11"
  54. bytemuck = "1"
  55. solana-program = "1.16"
  56. thiserror = "1"
  57. # TODO: Remove. This crate has been added to fix a build error with the 1.16.0 release.
  58. getrandom = { version = "0.2", features = ["custom"] }