Cargo.toml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. [package]
  2. name = "anchor-lang"
  3. version = "0.28.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. [features]
  11. allow-missing-optionals = ["anchor-derive-accounts/allow-missing-optionals"]
  12. init-if-needed = ["anchor-derive-accounts/init-if-needed"]
  13. derive = []
  14. default = []
  15. event-cpi = ["anchor-attribute-event/event-cpi"]
  16. idl-build = [
  17. "anchor-syn/idl-build",
  18. "anchor-derive-accounts/idl-build",
  19. "anchor-derive-serde/idl-build",
  20. "anchor-attribute-account/idl-build",
  21. "anchor-attribute-constant/idl-build",
  22. "anchor-attribute-event/idl-build",
  23. "anchor-attribute-error/idl-build",
  24. "anchor-attribute-program/idl-build",
  25. ]
  26. anchor-debug = [
  27. "anchor-attribute-access-control/anchor-debug",
  28. "anchor-attribute-account/anchor-debug",
  29. "anchor-attribute-constant/anchor-debug",
  30. "anchor-attribute-error/anchor-debug",
  31. "anchor-attribute-event/anchor-debug",
  32. "anchor-attribute-program/anchor-debug",
  33. "anchor-attribute-program/anchor-debug",
  34. "anchor-derive-accounts/anchor-debug"
  35. ]
  36. [dependencies]
  37. anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.28.0" }
  38. anchor-attribute-account = { path = "./attribute/account", version = "0.28.0" }
  39. anchor-attribute-constant = { path = "./attribute/constant", version = "0.28.0" }
  40. anchor-attribute-error = { path = "./attribute/error", version = "0.28.0" }
  41. anchor-attribute-event = { path = "./attribute/event", version = "0.28.0" }
  42. anchor-attribute-program = { path = "./attribute/program", version = "0.28.0" }
  43. anchor-derive-accounts = { path = "./derive/accounts", version = "0.28.0" }
  44. anchor-derive-serde = { path = "./derive/serde", version = "0.28.0" }
  45. anchor-derive-space = { path = "./derive/space", version = "0.28.0" }
  46. # anchor-syn can and should only be included only for idl-build. It won't compile
  47. # for bpf due to proc-macro2 crate.
  48. anchor-syn = { path = "./syn", version = "0.28.0", optional = true }
  49. arrayref = "0.3"
  50. base64 = "0.13"
  51. bincode = "1"
  52. borsh = ">=0.9, <0.11"
  53. bytemuck = "1"
  54. solana-program = ">=1.14, <1.17"
  55. thiserror = "1"
  56. # TODO: Remove. This crate has been added to fix a build error with the 1.16.0 release.
  57. getrandom = { version = "0.2", features = ["custom"] }