[package]
name = "ephemeral-rollups-sdk"
description = "Ephemeral Rollups Integration SDK"
version = { workspace = true }
authors = { workspace = true }
repository = { workspace = true }
documentation = { workspace = true }
homepage = { workspace = true }
keywords = { workspace = true }
license = { workspace = true }
edition = { workspace = true }
readme = "README.md"

[features]
default = ["solana-program", "solana-system-interface"]
anchor = ["anchor-lang"]
disable-realloc = []
modular-sdk = [
    "solana-account",
    "solana-account-info",
    "solana-cpi",
    "solana-instruction",
    "solana-pubkey",
    "solana-program-error",
    "solana-program-memory",
    "solana-sysvar",
]

[dependencies]
anchor-lang = { workspace = true, optional = true }
borsh = { workspace = true }
ephemeral-rollups-sdk-attribute-delegate = { workspace = true }
ephemeral-rollups-sdk-attribute-ephemeral = { workspace = true }
ephemeral-rollups-sdk-attribute-commit = { workspace = true }
ephemeral-rollups-sdk-attribute-action = { workspace = true }
solana-program = { workspace = true, optional = true }
solana-account = { workspace = true, optional = true }
solana-account-info = { workspace = true, optional = true }
solana-cpi= { workspace = true, optional = true }
solana-instruction = { workspace = true, optional = true }
solana-pubkey = { workspace = true, optional = true }
solana-program-error = { workspace = true, optional = true }
solana-program-memory = { workspace = true, optional = true }
solana-system-interface = { workspace = true, optional = true }
solana-sysvar = { workspace = true, optional = true }
magicblock-magic-program-api = { workspace = true }
magicblock-delegation-program  = { workspace = true, features = ["no-entrypoint", "core"], default-features = false }

# Fix for older toolchain
base64ct = { workspace = true }
getrandom = { version = "^0.2", features = ["custom"] }

[dev-dependencies]
bincode = "1.3.3"
