# 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 = "defituna-core"
version = "3.4.1"
build = false
include = ["src/*"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "DefiTuna core library"
homepage = "https://defituna.com"
readme = "README.md"
keywords = [
    "solana",
    "crypto",
    "defi",
    "dex",
    "amm",
]
license-file = "LICENSE"
repository = "https://github.com/DefiTuna/tuna-sdk"

[features]
default = []
wasm = [
    "dep:wasm-bindgen",
    "dep:wasm-bindgen-futures",
    "dep:serde",
    "dep:serde-big-array",
    "dep:serde-wasm-bindgen",
    "dep:js-sys",
    "dep:tsify",
]

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

[dependencies.ethnum]
version = "^1.1"

[dependencies.fusionamm-core]
version = "1.0.73"

[dependencies.fusionamm-macros]
version = "1.0"

[dependencies.js-sys]
version = "^0.3"
optional = true

[dependencies.jup-ag]
version = "0.9"

[dependencies.libm]
version = ">=0.1, <0.3"

[dependencies.once_cell]
version = "1.21.3"

[dependencies.serde]
version = "^1.0"
features = ["derive"]
optional = true

[dependencies.serde-big-array]
version = "^0.5"
optional = true

[dependencies.serde-wasm-bindgen]
version = "^0.6"
optional = true

[dependencies.solana-instruction]
version = "^2.2"

[dependencies.solana-pubkey]
version = "^2.2"

[dependencies.tokio]
version = "1.48"
features = [
    "sync",
    "macros",
    "rt",
]

[dependencies.tsify]
version = "^0.4"
features = ["js"]
optional = true

[dependencies.wasm-bindgen]
version = "^0.2"
optional = true

[dependencies.wasm-bindgen-futures]
version = "0.4"
optional = true

[target.wasm32-unknown-unknown.dependencies.getrandom]
version = "0.3"
features = ["wasm_js"]

[target.wasm32-unknown-unknown.dependencies.getrandom_v2]
version = "0.2"
features = ["js"]
package = "getrandom"
