Cargo.toml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. [package]
  2. name = "anchor-lang"
  3. version = "0.31.0"
  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.31.0" }
  40. anchor-attribute-account = { path = "./attribute/account", version = "0.31.0" }
  41. anchor-attribute-constant = { path = "./attribute/constant", version = "0.31.0" }
  42. anchor-attribute-error = { path = "./attribute/error", version = "0.31.0" }
  43. anchor-attribute-event = { path = "./attribute/event", version = "0.31.0" }
  44. anchor-attribute-program = { path = "./attribute/program", version = "0.31.0" }
  45. anchor-derive-accounts = { path = "./derive/accounts", version = "0.31.0" }
  46. anchor-derive-serde = { path = "./derive/serde", version = "0.31.0" }
  47. anchor-derive-space = { path = "./derive/space", version = "0.31.0" }
  48. # `anchor-lang-idl` should only be included with `idl-build` feature
  49. anchor-lang-idl = { path = "../idl", version = "0.1.2", optional = true }
  50. base64 = "0.21"
  51. bincode = "1"
  52. borsh = "0.10.3"
  53. bytemuck = "1"
  54. solana-program = "2"
  55. thiserror = "1"
  56. # v1.9 specifies `rust-version = "1.84"`, which causes compatibility issues with Solana build
  57. # tools' Rust version (1.79.0 at the time of writing this comment).
  58. # TODO: Remove when the Solana version we use comes with Rust version >= 1.84
  59. bytemuck_derive = ">1.0.0, <1.9"