[package]
name = "light-token"
version = "0.4.0"
edition = { workspace = true }
description = "SDK for Light Tokens"
license = "Apache-2.0"
repository = "https://github.com/Lightprotocol/light-protocol"
[features]
default = ["anchor-discriminator"]
v1 = []
anchor-discriminator = ["light-sdk/anchor-discriminator"]
anchor = ["anchor-lang", "light-token-types/anchor", "light-token-interface/anchor", "dep:light-sdk-macros"]
idl-build = ["anchor", "anchor-lang/idl-build", "light-sdk/idl-build"]
cpi-context = ["light-sdk/cpi-context"]
profile-program = [
"light-program-profiler/profile-program",
"light-compressed-account/profile-program",
"light-token-interface/profile-program",
]
profile-heap = [
"light-program-profiler/profile-heap",
"light-compressed-account/profile-heap",
"light-token-interface/profile-heap",
]
[dependencies]
light-token-types = { workspace = true }
light-compressed-account = { workspace = true, features = ["std", "solana"] }
light-compressible = { workspace = true }
light-token-interface = { workspace = true }
light-sdk = { workspace = true, features = ["v2", "cpi-context"] }
light-batched-merkle-tree = { workspace = true }
light-macros = { workspace = true }
thiserror = { workspace = true }
borsh = { workspace = true }
solana-msg = { workspace = true }
solana-pubkey = { workspace = true, features = ["sha2", "curve25519"] }
solana-instruction = { workspace = true }
solana-account-info = { workspace = true }
solana-cpi = { workspace = true }
solana-program-error = { workspace = true }
arrayvec = { workspace = true }
spl-pod = { workspace = true }
light-account-checks = { workspace = true, features = ["solana"] }
light-sdk-types = { workspace = true, features = ["v2"] }
light-zero-copy = { workspace = true }
light-program-profiler = { workspace = true }
anchor-lang = { workspace = true, optional = true }
light-sdk-macros = { workspace = true, optional = true }
[dev-dependencies]
light-account-checks = { workspace = true, features = ["test-only", "pinocchio", "std"] }
anchor-lang = { workspace = true }
light-compressed-token = { workspace = true }
pinocchio = { workspace = true }
[lints.rust.unexpected_cfgs]
level = "allow"
check-cfg = [
'cfg(target_os, values("solana"))',
'cfg(feature, values("frozen-abi", "no-entrypoint"))',
]