# 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 = "gmsol-model"
version = "0.9.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "GMX-Solana is an extension of GMX on the Solana blockchain."
documentation = "https://docs.rs/gmsol-model"
readme = "README.md"
keywords = [
    "gmx-solana",
    "gmx",
    "solana",
]
license-file = "LICENSE"
repository = "https://github.com/gmsol-labs/gmx-solana"

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

[features]
glv = []
js = [
    "tsify-next",
    "serde",
    "wasm-bindgen",
]
serde = ["dep:serde"]
solana = [
    "anchor-lang",
    "borsh",
    "gmsol-utils",
]
strum = ["dep:strum"]
test = []
u128 = ["ruint"]

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

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

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

[dependencies.anchor-lang]
version = "0.31.1"
optional = true

[dependencies.borsh]
version = "0.10.4"
optional = true

[dependencies.gmsol-utils]
version = "0.9.0"
optional = true

[dependencies.num-traits]
version = "0.2.18"

[dependencies.num_enum]
version = "0.7.3"

[dependencies.ruint]
version = "1.15.0"
optional = true
default-features = false

[dependencies.rust_decimal]
version = "1.34"
features = ["maths"]
default-features = false

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

[dependencies.strum]
version = "0.27.1"
features = ["derive"]
optional = true

[dependencies.thiserror]
version = "1.0.69"

[dependencies.tsify-next]
version = "0.5.5"
features = ["js"]
optional = true

[dependencies.typed-builder]
version = "0.21.0"

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

[dev-dependencies]
