Cargo.toml 2.3 KB

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