# 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.94.0"
name = "cow-sdk"
version = "0.1.0-alpha.7"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Facade crate for CoW Protocol Rust SDK surfaces"
homepage = "https://github.com/0xSymbiome/cow-rs"
documentation = "https://docs.rs/cow-sdk"
readme = "README.md"
keywords = [
    "cow-protocol",
    "sdk",
    "trading",
    "defi",
    "ethereum",
]
categories = [
    "api-bindings",
    "cryptography::cryptocurrencies",
]
license = "GPL-3.0-or-later"
repository = "https://github.com/0xSymbiome/cow-rs"

[package.metadata.docs.rs]
features = [
    "cow-shed",
    "testing",
]
default-target = "x86_64-unknown-linux-gnu"
targets = [
    "x86_64-unknown-linux-gnu",
    "wasm32-unknown-unknown",
]

[features]
alloy = [
    "dep:cow-sdk-alloy",
    "cow-sdk-alloy/eip712",
    "alloy-provider",
    "alloy-signer",
]
alloy-provider = ["dep:cow-sdk-alloy-provider"]
alloy-signer = [
    "dep:cow-sdk-alloy-signer",
    "cow-sdk-alloy-signer/eip712",
]
cow-shed = ["cow-sdk-contracts/cow-shed"]
default = []
in-memory-cache = ["cow-sdk-signing/in-memory-cache"]
subgraph = ["dep:cow-sdk-subgraph"]
testing = ["dep:cow-sdk-test"]
tracing = [
    "cow-sdk-app-data/tracing",
    "cow-sdk-contracts/tracing",
    "cow-sdk-core/tracing",
    "cow-sdk-orderbook/tracing",
    "cow-sdk-signing/tracing",
    "cow-sdk-trading/tracing",
    "cow-sdk-subgraph?/tracing",
]

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

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

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

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

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

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

[dependencies.cow-sdk-alloy]
version = "0.1.0-alpha.7"
optional = true
default-features = false

[dependencies.cow-sdk-alloy-provider]
version = "0.1.0-alpha.7"
optional = true
default-features = false

[dependencies.cow-sdk-alloy-signer]
version = "0.1.0-alpha.7"
optional = true
default-features = false

[dependencies.cow-sdk-app-data]
version = "0.1.0-alpha.7"

[dependencies.cow-sdk-contracts]
version = "0.1.0-alpha.7"

[dependencies.cow-sdk-core]
version = "0.1.0-alpha.7"
features = ["transport-policy"]

[dependencies.cow-sdk-orderbook]
version = "0.1.0-alpha.7"

[dependencies.cow-sdk-signing]
version = "0.1.0-alpha.7"

[dependencies.cow-sdk-subgraph]
version = "0.1.0-alpha.7"
optional = true
default-features = false

[dependencies.cow-sdk-test]
version = "0.1.0-alpha.7"
optional = true
default-features = false

[dependencies.cow-sdk-trading]
version = "0.1.0-alpha.7"

[dependencies.thiserror]
version = "2.0.18"

[dev-dependencies.alloy-primitives]
version = "1.5.7"
features = ["serde"]
default-features = false

[dev-dependencies.alloy-sol-types]
version = "1.5.7"
features = ["eip712-serde"]
default-features = false

[dev-dependencies.num-bigint]
version = "0.4.6"

[dev-dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dev-dependencies.serde_json]
version = "1.0.149"

[lints.clippy]
allow_attributes_without_reason = "warn"
future_not_send = "allow"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
must_use_candidate = "warn"
unreadable_literal = "warn"

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

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "deny"
unused_must_use = "deny"

[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1

[lints.rustdoc]
all = "warn"
broken_intra_doc_links = "deny"
