# 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 = "2024"
rust-version = "1.85"
name = "af-switchboard-wrapper"
version = "0.0.30"
authors = ["Aftermath Finance <admin@aftermath.finance>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Move types for Aftermath's `SwitchboardWrapper` package that extends `AfOracle`"
readme = "README.md"
categories = ["cryptography::cryptocurrencies"]
license = "Apache-2.0"
repository = "https://github.com/AftermathFinance/aftermath-sdk-rust"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--generate-link-to-definition",
    "-Zunstable-options",
]

[features]
graphql = [
    "dep:af-move-type",
    "dep:af-sui-types",
    "dep:bcs",
    "dep:extension-traits",
    "dep:thiserror",
    "dep:trait-variant",
    "sui-gql-client/move-type",
    "sui-gql-client/queries",
]
ptb = [
    "dep:af-ptbuilder",
    "dep:extension-traits",
]

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

[dependencies.af-move-type]
version = "0.15.0"
optional = true

[dependencies.af-ptbuilder]
version = "10.0.0"
optional = true
public = true

[dependencies.af-sui-pkg-sdk]
version = "0.12.0"
public = true

[dependencies.af-sui-types]
version = "0.15.0"
optional = true

[dependencies.bcs]
version = "0.1"
optional = true

[dependencies.extension-traits]
version = "2"
optional = true

[dependencies.sui-framework-sdk]
version = "0.14.0"
public = true

[dependencies.sui-gql-client]
version = "0.22"
optional = true
default-features = false
public = true

[dependencies.sui-sdk-types]
version = "0.0.8"
public = true

[dependencies.thiserror]
version = "2"
optional = true

[dependencies.trait-variant]
version = "0.1"
optional = true

[lints.clippy]
double_parens = "allow"
todo = "warn"
uninlined_format_args = "allow"
unwrap_used = "warn"

[lints.clippy.nursery]
level = "warn"
priority = 1

[lints.clippy.redundant_pub_crate]
level = "allow"
priority = 2

[lints.rust]
exported_private_dependencies = "allow"
