Cargo.toml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. [package]
  2. name = "anchor-lang"
  3. version = "0.31.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.31.1" }
  40. anchor-attribute-account = { path = "./attribute/account", version = "0.31.1" }
  41. anchor-attribute-constant = { path = "./attribute/constant", version = "0.31.1" }
  42. anchor-attribute-error = { path = "./attribute/error", version = "0.31.1" }
  43. anchor-attribute-event = { path = "./attribute/event", version = "0.31.1" }
  44. anchor-attribute-program = { path = "./attribute/program", version = "0.31.1" }
  45. anchor-derive-accounts = { path = "./derive/accounts", version = "0.31.1" }
  46. anchor-derive-serde = { path = "./derive/serde", version = "0.31.1" }
  47. anchor-derive-space = { path = "./derive/space", version = "0.31.1" }
  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 = { version = "1", features = ["derive"] }
  54. solana-account-info = "2"
  55. solana-clock = "2"
  56. solana-cpi = "2"
  57. solana-define-syscall = "2"
  58. solana-feature-gate-interface = "2"
  59. solana-instruction = "2"
  60. solana-instructions-sysvar = "2"
  61. solana-loader-v3-interface = { version = "3", features = ["bincode"] }
  62. solana-msg = "2"
  63. solana-program-entrypoint = "2"
  64. solana-program-error = { version = "2", features = ["borsh"] }
  65. solana-program-memory = "2"
  66. solana-program-option = "2"
  67. solana-program-pack = "2"
  68. solana-pubkey = { version = "2", features = ["borsh", "bytemuck", "serde"] }
  69. solana-sdk-ids = "2"
  70. solana-system-interface = "1"
  71. solana-sysvar = { version = "2", features = ["bincode"] }
  72. solana-sysvar-id = "2"
  73. thiserror = "1"
  74. [lints.rust.unexpected_cfgs]
  75. level = "warn"
  76. check-cfg = ['cfg(target_os, values("solana"))']