anchor/lang/Cargo.toml

61 lines
2.3 KiB
TOML
Raw Normal View History

2021-01-30 21:14:45 +08:00
[package]
name = "anchor-lang"
2024-06-20 23:20:02 +08:00
version = "0.30.1"
authors = ["Anchor Maintainers <accounts@200ms.io>"]
repository = "https://github.com/coral-xyz/anchor"
2022-03-13 06:39:21 +08:00
edition = "2021"
2021-01-30 21:14:45 +08:00
license = "Apache-2.0"
description = "Solana Sealevel eDSL"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
2021-01-30 21:14:45 +08:00
[features]
Feat: Optional Positional Accounts (#2101) * optional accounts initial implementation * cargo fmt * panic if Account related traits are run on none * Allow empty accounts to deserialize to None for optional accounts * implement constraints for optional accounts * optional accounts to idl gen * accountstruct helper method * implemented to_account_metas and infos * add test program * Rename optional to is_optional * added more traits * added TryKey error * fix has_one * update prelude * is_optional * add is_optional helper method * Add TryAccountInfos trait * improve constraint parser * initial work on TryToAccountInfo * Rename to TryToAccountInfo * finished implementing tryToAccountInfo * Using program method * Formatting * Fix program function call * Remove function return borrow * Fix access to program field * finished implementing tryToAccountInfo * add exit try_to_account_infos * descriptive ID path * try_to_account_info * fix close constraint * update test files * completed typescript optional accounts implementation * fix try accounts for init * update tests * fix to_account_metas * update tests * fix linting * remove types/node * update yarn.lock maybe? * update optional test * update optional test * update optional rust cli test * fix linting and tests * fix tests * update try_accounts to pass in accs during constraint gen * Add default impl for TryToAccountInfos * Removed TryToAccountInfos trait * Formatting * remove unneccesary traits and improve constraint gen drastically * fix exit generation * clippy * improve cross check error message * improve comments * more comments * update constraints hopefully good now? * add new errors to ts client * add new errors to ts client * update optional test * update anchor ts client * update misc crate * linting * temporarily comment out optional rs tests * update ts * remove local test files * linting * optional client tests * fix other lints to make the test pass * remove comments * remove misc-optional for now * update optional program * update optional program and client tests again * update optional program and client tests again again * added initialize tests that should pass * undo unrelated anchor.toml change * update close on optional program and improve tests * update optional program again. * update optional program and optional tests * fix has one error message * fix client example tests * update lockfile * update lockfile * regenerate lockfile * reset lockfile * reset ts yarn lockfile * update no caching tests * update exit codegen to use generate_optional_check * remove `try_to_account_infos` * update parser to ignore method calls in constraints * refactor and improve optional checks in constraints * add misc-optional program and tests * enable cpi for optional tests * Revert "enable cpi for optional tests" This reverts commit c864cd5d4f019e6bd5f93641e01bd82fc74041d4. * simplify misc tests * update version * fix rust version and resolve merge conflicts * prevent Option on composite accounts * hopefully fixed ts stuff? * hopefully fixed ts stuff? * testing * hopefully done? * update misc test * fix optional tests * fix ts * fix ts again! * linting urg * allow-missing-optionals feature * fix client tests * add bnjs types to tests Co-authored-by: febo <febo@kent.ac.uk> Co-authored-by: Henry-E <henry.elder@adaptcentre.ie>
2022-12-12 23:32:59 +08:00
allow-missing-optionals = ["anchor-derive-accounts/allow-missing-optionals"]
anchor-debug = [
"anchor-attribute-access-control/anchor-debug",
"anchor-attribute-account/anchor-debug",
2021-12-04 07:49:38 +08:00
"anchor-attribute-constant/anchor-debug",
"anchor-attribute-error/anchor-debug",
"anchor-attribute-event/anchor-debug",
"anchor-attribute-program/anchor-debug",
"anchor-derive-accounts/anchor-debug"
]
derive = []
event-cpi = ["anchor-attribute-event/event-cpi"]
idl-build = [
"anchor-attribute-account/idl-build",
"anchor-attribute-constant/idl-build",
"anchor-attribute-event/idl-build",
"anchor-attribute-error/idl-build",
"anchor-attribute-program/idl-build",
"anchor-derive-accounts/idl-build",
"anchor-derive-serde/idl-build",
"anchor-lang-idl/build",
]
init-if-needed = ["anchor-derive-accounts/init-if-needed"]
interface-instructions = ["anchor-attribute-program/interface-instructions"]
2024-09-01 09:16:38 +08:00
lazy-account = ["anchor-attribute-account/lazy-account", "anchor-derive-serde/lazy-account"]
2021-01-30 21:14:45 +08:00
[dependencies]
2024-06-20 23:20:02 +08:00
anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.30.1" }
anchor-attribute-account = { path = "./attribute/account", version = "0.30.1" }
anchor-attribute-constant = { path = "./attribute/constant", version = "0.30.1" }
anchor-attribute-error = { path = "./attribute/error", version = "0.30.1" }
anchor-attribute-event = { path = "./attribute/event", version = "0.30.1" }
anchor-attribute-program = { path = "./attribute/program", version = "0.30.1" }
anchor-derive-accounts = { path = "./derive/accounts", version = "0.30.1" }
anchor-derive-serde = { path = "./derive/serde", version = "0.30.1" }
anchor-derive-space = { path = "./derive/space", version = "0.30.1" }
2023-09-16 05:59:18 +08:00
# `anchor-lang-idl` should only be included with `idl-build` feature
2024-06-20 23:20:02 +08:00
anchor-lang-idl = { path = "../idl", version = "0.1.1", optional = true }
2023-09-16 05:59:18 +08:00
2023-10-29 05:00:00 +08:00
base64 = "0.21"
bincode = "1"
borsh = "0.10.3"
bytemuck = "1"
solana-program = "2"
thiserror = "1"