# 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.93"
name = "elisym-core"
version = "0.6.3"
build = false
exclude = [
    "assets/",
    "CLAUDE.md",
    "Cargo.lock",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust SDK for AI agent interaction via Nostr with pluggable payment backends"
homepage = "https://github.com/elisymprotocol/elisym-core"
readme = "README.md"
keywords = [
    "nostr",
    "lightning",
    "ai-agents",
    "solana",
    "nip-90",
]
categories = [
    "network-programming",
    "cryptography::cryptocurrencies",
]
license = "MIT"
repository = "https://github.com/elisymprotocol/elisym-core"

[features]
default = []
payments-ldk = [
    "ldk-node",
    "rustls",
]
payments-solana = [
    "solana-sdk",
    "solana-client",
    "solana-transaction-status-client-types",
    "spl-token",
    "spl-associated-token-account",
    "bs58",
]

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

[[example]]
name = "customer"
path = "examples/customer.rs"

[[example]]
name = "demo_customer"
path = "examples/lightning/demo_customer.rs"
required-features = ["payments-ldk"]

[[example]]
name = "demo_provider"
path = "examples/lightning/demo_provider.rs"
required-features = ["payments-ldk"]

[[example]]
name = "demo_setup"
path = "examples/lightning/demo_setup.rs"
required-features = ["payments-ldk"]

[[example]]
name = "full_demo"
path = "examples/lightning/full_demo.rs"
required-features = ["payments-ldk"]

[[example]]
name = "messaging"
path = "examples/messaging.rs"

[[example]]
name = "open_channel"
path = "examples/lightning/open_channel.rs"
required-features = ["payments-ldk"]

[[example]]
name = "payment_flow"
path = "examples/lightning/payment_flow.rs"
required-features = ["payments-ldk"]

[[example]]
name = "provider"
path = "examples/provider.rs"

[[example]]
name = "solana_demo_customer"
path = "examples/solana/demo_customer.rs"
required-features = ["payments-solana"]

[[example]]
name = "solana_demo_provider"
path = "examples/solana/demo_provider.rs"
required-features = ["payments-solana"]

[[example]]
name = "wallet_info"
path = "examples/lightning/wallet_info.rs"
required-features = ["payments-ldk"]

[[example]]
name = "withdraw"
path = "examples/lightning/withdraw.rs"
required-features = ["payments-ldk"]

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

[dependencies.bs58]
version = "0.5"
optional = true

[dependencies.ldk-node]
version = "0.5"
optional = true

[dependencies.nostr-sdk]
version = "0.37"
features = ["nip59"]

[dependencies.rustls]
version = "0.23"
features = ["aws_lc_rs"]
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.solana-client]
version = "2.2"
optional = true

[dependencies.solana-sdk]
version = "2.2"
optional = true

[dependencies.solana-transaction-status-client-types]
version = "2.2"
optional = true

[dependencies.spl-associated-token-account]
version = "6.0"
features = ["no-entrypoint"]
optional = true

[dependencies.spl-token]
version = "7.0"
features = ["no-entrypoint"]
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tracing]
version = "0.1"

[dev-dependencies.chrono]
version = "0.4"

[dev-dependencies.reqwest]
version = "0.12"
features = ["json"]

[dev-dependencies.tracing-subscriber]
version = "0.3"
