Cargo.toml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. [dependencies]
  38. anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.30.1" }
  39. anchor-attribute-account = { path = "./attribute/account", version = "0.30.1" }
  40. anchor-attribute-constant = { path = "./attribute/constant", version = "0.30.1" }
  41. anchor-attribute-error = { path = "./attribute/error", version = "0.30.1" }
  42. anchor-attribute-event = { path = "./attribute/event", version = "0.30.1" }
  43. anchor-attribute-program = { path = "./attribute/program", version = "0.30.1" }
  44. anchor-derive-accounts = { path = "./derive/accounts", version = "0.30.1" }
  45. anchor-derive-serde = { path = "./derive/serde", version = "0.30.1" }
  46. anchor-derive-space = { path = "./derive/space", version = "0.30.1" }
  47. # `anchor-lang-idl` should only be included with `idl-build` feature
  48. anchor-lang-idl = { path = "../idl", version = "0.1.1", optional = true }
  49. arrayref = "0.3"
  50. base64 = "0.21"
  51. bincode = "1"
  52. borsh = ">=0.9, <0.11"
  53. bytemuck = "1"
  54. solana-program = "1.17.3"
  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"] }