Cargo.toml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. [package]
  2. name = "anchor-syn"
  3. version = "0.30.0"
  4. authors = ["Anchor Maintainers <accounts@200ms.io>"]
  5. repository = "https://github.com/coral-xyz/anchor"
  6. license = "Apache-2.0"
  7. description = "Anchor syntax parsing and code generation tools"
  8. rust-version = "1.60"
  9. edition = "2021"
  10. [package.metadata.docs.rs]
  11. all-features = true
  12. rustdoc-args = ["--cfg", "docsrs"]
  13. [features]
  14. allow-missing-optionals = []
  15. anchor-debug = []
  16. event-cpi = []
  17. hash = []
  18. idl-build = ["cargo_toml"]
  19. init-if-needed = []
  20. interface-instructions = []
  21. [dependencies]
  22. anyhow = "1"
  23. bs58 = "0.5"
  24. heck = "0.3"
  25. proc-macro2 = { version = "1", features = ["span-locations"] }
  26. quote = "1"
  27. serde = { version = "1", features = ["derive"] }
  28. serde_json = "1"
  29. sha2 = "0.10"
  30. syn = { version = "1", features = ["full", "extra-traits", "parsing"] }
  31. thiserror = "1"
  32. # `idl-build` feature only
  33. cargo_toml = { version = "0.19", optional = true }
  34. # https://blog.rust-lang.org/2024/05/06/check-cfg.html#expecting-custom-cfgs
  35. [lints.rust]
  36. unexpected_cfgs = { level = "allow", check-cfg = ["cfg(procmacro2_semver_exempt)"] }