cowprotocol 0.1.0

Rust SDK for CoW Protocol: orderbook client, EIP-712 order types, signing, and composable-order primitives.
# 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.91"
name = "cowprotocol"
version = "0.1.0"
authors = ["cow-rs contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust SDK for CoW Protocol: orderbook client, EIP-712 order types, signing, and composable-order primitives."
homepage = "https://github.com/cowdao-grants/cow-rs"
documentation = "https://docs.rs/cowprotocol"
readme = "README.md"
keywords = [
    "cow-protocol",
    "ethereum",
    "defi",
    "alloy",
    "sdk",
]
categories = [
    "cryptography::cryptocurrencies",
    "api-bindings",
    "wasm",
]
license = "GPL-3.0-or-later"
repository = "https://github.com/cowdao-grants/cow-rs"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]
targets = [
    "x86_64-unknown-linux-gnu",
    "wasm32-unknown-unknown",
]

[features]
default = [
    "http-client",
    "subgraph",
]
http-client = ["cowprotocol-orderbook/http-client"]
subgraph = [
    "http-client",
    "cowprotocol-orderbook/subgraph",
]

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

[[example]]
name = "get_quote"
path = "examples/get_quote.rs"
required-features = ["http-client"]

[[example]]
name = "post_order"
path = "examples/post_order.rs"
required-features = ["http-client"]

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

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

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

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

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

[dependencies.cowprotocol-appdata]
version = "0.1.0"

[dependencies.cowprotocol-orderbook]
version = "0.1.0"
default-features = false

[dependencies.cowprotocol-primitives]
version = "0.1.0"

[dependencies.cowprotocol-signing]
version = "0.1.0"

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

[dev-dependencies.alloy-signer]
version = "1.8.3"
default-features = false

[dev-dependencies.alloy-signer-local]
version = "1.8.3"
default-features = false

[dev-dependencies.const-hex]
version = "1"

[dev-dependencies.hex-literal]
version = "1"

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

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.http]
version = "1"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.wiremock]
version = "0.6"

[lints.clippy]
missing-const-for-fn = "warn"
option-if-let-else = "warn"
redundant-clone = "warn"
use-self = "warn"

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

[lints.rust]
missing-debug-implementations = "warn"
missing-docs = "warn"
rust-2018-idioms = "deny"
unreachable-pub = "warn"
unused-must-use = "deny"