# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.89"
name = "anchor-lang"
version = "1.1.2"
authors = ["Anchor Maintainers <accounts@200ms.io>"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Solana Sealevel eDSL"
readme = false
license = "Apache-2.0"
repository = "https://github.com/otter-sec/anchor"

[package.metadata.docs.rs]
workspace = true

[features]
allow-missing-optionals = ["anchor-derive-accounts/allow-missing-optionals"]
anchor-debug = [
    "anchor-attribute-account/anchor-debug",
    "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",
    "anchor-attribute-account/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"]
lazy-account = [
    "anchor-attribute-account/lazy-account",
    "anchor-derive-serde/lazy-account",
]

[lib]
name = "anchor_lang"
path = "src/lib.rs"

[[test]]
name = "account_reload"
path = "tests/account_reload.rs"

[[test]]
name = "cpi_return_data"
path = "tests/cpi_return_data.rs"

[[test]]
name = "generics_test"
path = "tests/generics_test.rs"

[[test]]
name = "macros"
path = "tests/macros.rs"

[[test]]
name = "primitive_space"
path = "tests/primitive_space.rs"

[[test]]
name = "seeds_compile"
path = "tests/seeds_compile.rs"

[[test]]
name = "serialization"
path = "tests/serialization.rs"

[[test]]
name = "space"
path = "tests/space.rs"

[[test]]
name = "zero_copy"
path = "tests/zero_copy.rs"

[dependencies.anchor-attribute-access-control]
version = "=1.1.2"

[dependencies.anchor-attribute-account]
version = "=1.1.2"

[dependencies.anchor-attribute-constant]
version = "=1.1.2"

[dependencies.anchor-attribute-error]
version = "=1.1.2"

[dependencies.anchor-attribute-event]
version = "=1.1.2"

[dependencies.anchor-attribute-program]
version = "=1.1.2"

[dependencies.anchor-derive-accounts]
version = "=1.1.2"

[dependencies.anchor-derive-serde]
version = "=1.1.2"

[dependencies.anchor-derive-space]
version = "=1.1.2"

[dependencies.anchor-lang-error]
version = "=1.1.2"

[dependencies.anchor-lang-idl]
version = "=0.1.4"
optional = true

[dependencies.base64]
version = "0.21"

[dependencies.bincode]
version = "1"

[dependencies.borsh]
version = "1.5.7"

[dependencies.bytemuck]
version = "1"
features = ["derive"]

[dependencies.const-crypto]
version = "0.3.0"

[dependencies.solana-account-info]
version = "3.1.0"

[dependencies.solana-clock]
version = "3.0.1"

[dependencies.solana-cpi]
version = "3.0.0"

[dependencies.solana-define-syscall]
version = "3.0.0"

[dependencies.solana-feature-gate-interface]
version = "3.0.0"

[dependencies.solana-instruction]
version = "3.0.0"

[dependencies.solana-instructions-sysvar]
version = "3.0.0"

[dependencies.solana-invoke]
version = "0.5.0"

[dependencies.solana-loader-v3-interface]
version = "6.0.1"
features = ["bincode"]

[dependencies.solana-msg]
version = "3.1.0"

[dependencies.solana-program-entrypoint]
version = "3.1.1"

[dependencies.solana-program-error]
version = "3.0.0"
features = ["borsh"]

[dependencies.solana-program-memory]
version = "3.1.0"

[dependencies.solana-program-option]
version = "3.0.1"

[dependencies.solana-program-pack]
version = "3.1.0"

[dependencies.solana-pubkey]
version = "3.0.0"
features = [
    "borsh",
    "bytemuck",
    "serde",
]

[dependencies.solana-sdk-ids]
version = "3.1.0"

[dependencies.solana-stake-interface]
version = "2.0.2"
features = [
    "sysvar",
    "bincode",
]

[dependencies.solana-system-interface]
version = "2.0.0"

[dependencies.solana-sysvar]
version = "3.1.1"
features = ["bincode"]

[dependencies.solana-sysvar-id]
version = "3.1.0"

[dependencies.thiserror]
version = "1"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ['cfg(target_os, values("solana"))']
