cowprotocol-orderbook 0.1.0

CoW Protocol orderbook DTOs, quote builders, and HTTP client.
# 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-orderbook"
version = "0.1.0"
authors = ["cow-rs contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CoW Protocol orderbook DTOs, quote builders, and HTTP client."
homepage = "https://github.com/cowdao-grants/cow-rs"
documentation = "https://docs.rs/cowprotocol-orderbook"
readme = "README.md"
keywords = [
    "cow-protocol",
    "ethereum",
    "defi",
    "api",
]
categories = [
    "cryptography::cryptocurrencies",
    "api-bindings",
]
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 = [
    "dep:reqwest",
    "dep:js-sys",
    "dep:wasm-bindgen",
    "dep:wasm-bindgen-futures",
]
subgraph = ["http-client"]

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

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

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

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

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

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.serde_with]
version = "3"

[dependencies.thiserror]
version = "2"

[dependencies.url]
version = "2"

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

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

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

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

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

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

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"
optional = true

[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"