[package]
name = "hpsvm-token"
description = "Helpers for working with spl-token and HPSVM"
license.workspace = true
version.workspace = true
edition.workspace = true
repository.workspace = true

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[features]
default = ["dep:spl-token-interface", "dep:solana-account", "dep:solana-rent"]
token-2022 = ["dep:spl-token-2022-interface"]

[dependencies]
hpsvm.workspace = true
smallvec.workspace = true
solana-account = { workspace = true, optional = true }
solana-address.workspace = true
solana-keypair.workspace = true
solana-program-option.workspace = true
solana-program-pack.workspace = true
solana-rent = { workspace = true, optional = true }
solana-signer.workspace = true
solana-system-interface = { workspace = true, features = ["wincode"] }
solana-transaction = { workspace = true, features = ["verify"] }
solana-transaction-error.workspace = true
spl-associated-token-account-interface.workspace = true
spl-token-2022-interface = { workspace = true, optional = true }
spl-token-interface = { workspace = true, optional = true }

[dev-dependencies]
solana-native-token.workspace = true

[lints]
workspace = true

[[test]]
name = "native_mint"
required-features = ["token-2022"]
