Cargo.toml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. [package]
  2. name = "anchor-lang"
  3. version = "0.29.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. anchor-debug = [
  13. "anchor-attribute-access-control/anchor-debug",
  14. "anchor-attribute-account/anchor-debug",
  15. "anchor-attribute-constant/anchor-debug",
  16. "anchor-attribute-error/anchor-debug",
  17. "anchor-attribute-event/anchor-debug",
  18. "anchor-attribute-program/anchor-debug",
  19. "anchor-derive-accounts/anchor-debug"
  20. ]
  21. derive = []
  22. event-cpi = ["anchor-attribute-event/event-cpi"]
  23. idl-build = [
  24. "anchor-attribute-account/idl-build",
  25. "anchor-attribute-constant/idl-build",
  26. "anchor-attribute-event/idl-build",
  27. "anchor-attribute-error/idl-build",
  28. "anchor-attribute-program/idl-build",
  29. "anchor-derive-accounts/idl-build",
  30. "anchor-derive-serde/idl-build",
  31. "anchor-syn/idl-build",
  32. ]
  33. init-if-needed = ["anchor-derive-accounts/init-if-needed"]
  34. [dependencies]
  35. anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.29.0" }
  36. anchor-attribute-account = { path = "./attribute/account", version = "0.29.0" }
  37. anchor-attribute-constant = { path = "./attribute/constant", version = "0.29.0" }
  38. anchor-attribute-error = { path = "./attribute/error", version = "0.29.0" }
  39. anchor-attribute-event = { path = "./attribute/event", version = "0.29.0" }
  40. anchor-attribute-program = { path = "./attribute/program", version = "0.29.0" }
  41. anchor-derive-accounts = { path = "./derive/accounts", version = "0.29.0" }
  42. anchor-derive-serde = { path = "./derive/serde", version = "0.29.0" }
  43. anchor-derive-space = { path = "./derive/space", version = "0.29.0" }
  44. # `anchor-syn` should only be included with `idl-build` feature
  45. anchor-syn = { path = "./syn", version = "0.29.0", optional = true }
  46. arrayref = "0.3"
  47. base64 = "0.21"
  48. bincode = "1"
  49. borsh = ">=0.9, <0.11"
  50. bytemuck = "1"
  51. solana-program = "1.16"
  52. thiserror = "1"
  53. # TODO: Remove. This crate has been added to fix a build error with the 1.16.0 release.
  54. getrandom = { version = "0.2", features = ["custom"] }