# 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"
name = "spl-token-2022-interface"
version = "3.1.1"
authors = ["Anza Maintainers <maintainers@anza.xyz>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Solana Program Library Token 2022 Interface"
homepage = "https://solana-program.com"
documentation = "https://docs.rs/spl-token-2022-interface"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/solana-program/token-2022"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[package.metadata.solana]
program-id = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"

[features]
serde = [
    "dep:serde",
    "dep:serde_with",
    "serde/alloc",
    "solana-address/serde",
    "solana-address/decode",
    "solana-nullable/serde",
    "solana-nullable/serde-with",
    "solana-zero-copy/serde",
    "solana-zk-sdk-pod/serde",
]

[lib]
name = "spl_token_2022_interface"
crate-type = ["lib"]
path = "src/lib.rs"

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

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

[dependencies.arrayref]
version = "0.3.9"

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

[dependencies.num-derive]
version = "0.4"

[dependencies.num-traits]
version = "0.2"
features = ["libm"]
default-features = false

[dependencies.num_enum]
version = "0.7.6"
default-features = false

[dependencies.serde]
version = "1.0.219"
optional = true
default-features = false

[dependencies.serde_with]
version = "3.21.0"
optional = true
default-features = false

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

[dependencies.solana-address]
version = "2.6.1"
features = [
    "bytemuck",
    "nullable",
]

[dependencies.solana-instruction]
version = "3.0.0"
default-features = false

[dependencies.solana-nullable]
version = "1.1.1"
features = ["bytemuck"]

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

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

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

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

[dependencies.solana-zero-copy]
version = "1.1.1"
features = ["bytemuck"]

[dependencies.solana-zk-elgamal-proof-interface]
version = "0.1.3"

[dependencies.solana-zk-sdk-pod]
version = "0.1.2"

[dependencies.spl-token-confidential-transfer-proof-extraction]
version = "0.6.0"

[dependencies.spl-token-group-interface]
version = "0.7.2"

[dependencies.spl-token-metadata-interface]
version = "1.0.0"

[dependencies.spl-type-length-value]
version = "0.9.1"

[dependencies.thiserror]
version = "2.0"
default-features = false

[dev-dependencies.base64]
version = "0.22.1"

[dev-dependencies.proptest]
version = "1.11"

[dev-dependencies.serde_json]
version = "1.0.150"

[dev-dependencies.solana-address]
version = "2.6.1"
features = ["curve25519"]

[dev-dependencies.spl-token-interface]
version = "3.0"

[dev-dependencies.strum]
version = "0.28"

[dev-dependencies.strum_macros]
version = "0.28"

[dev-dependencies.test-case]
version = "3.3.1"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.getrandom]
version = "0.2"
features = ["js"]

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    'cfg(target_os, values("solana"))',
    'cfg(feature, values("frozen-abi", "no-entrypoint", "custom-heap", "custom-panic"))',
]
