polyfill2 0.1.0

Polymarket CLOB V2 Rust client (fork of polyfill-rs). High-performance, EIP-712 signing, WebSocket streaming.
Documentation
# 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 = "polyfill2"
version = "0.1.0"
authors = [
    "Andrey Kuznetsov <andrey@onsails.com>",
    "Julius Tranquilli <jtranqs@gmail.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Polymarket CLOB V2 Rust client (fork of polyfill-rs). High-performance, EIP-712 signing, WebSocket streaming."
homepage = "https://github.com/onsails/polyfill2-rs"
documentation = "https://docs.rs/polyfill2"
readme = "README.md"
keywords = [
    "polymarket",
    "clob",
    "trading",
    "prediction-market",
    "crypto",
]
categories = [
    "api-bindings",
    "network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/onsails/polyfill2-rs"

[features]
default = ["stream"]
integration-v2 = []
side-by-side-benchmark = []
stream = ["tokio-tungstenite"]

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

[[example]]
name = "benchmark_with_keepalive"
path = "examples/benchmark_with_keepalive.rs"

[[example]]
name = "demo"
path = "examples/demo.rs"

[[example]]
name = "final_benchmark"
path = "examples/final_benchmark.rs"

[[example]]
name = "http2_tuning_benchmark"
path = "examples/http2_tuning_benchmark.rs"

[[example]]
name = "performance_benchmark"
path = "examples/performance_benchmark.rs"

[[example]]
name = "quick_demo"
path = "examples/quick_demo.rs"

[[example]]
name = "side_by_side_benchmark"
path = "examples/side_by_side_benchmark.rs"
required-features = ["side-by-side-benchmark"]

[[example]]
name = "snipe"
path = "examples/snipe.rs"

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

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

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

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

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

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

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

[[bench]]
name = "book_updates"
path = "benches/book_updates.rs"
harness = false

[[bench]]
name = "comparison_benchmarks"
path = "benches/comparison_benchmarks.rs"
harness = false

[[bench]]
name = "fill_processing"
path = "benches/fill_processing.rs"
harness = false

[[bench]]
name = "network_benchmarks"
path = "benches/network_benchmarks.rs"
harness = false

[[bench]]
name = "ws_hot_path"
path = "benches/ws_hot_path.rs"
harness = false

[dependencies.alloy-primitives]
version = "1"

[dependencies.alloy-signer]
version = "1"
features = ["eip712"]

[dependencies.alloy-signer-local]
version = "1"
features = ["eip712"]

[dependencies.alloy-sol-types]
version = "1"
features = [
    "eip712-serde",
    "json",
]

[dependencies.anyhow]
version = "1.0"

[dependencies.base64]
version = "0.22"

[dependencies.base64ct]
version = "=1.6.0"

[dependencies.bytes]
version = "1.11.1"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.dotenvy]
version = "0.15"

[dependencies.futures]
version = "0.3"

[dependencies.futures-util]
version = "0.3"

[dependencies.hickory-resolver]
version = "0.24"

[dependencies.hmac]
version = "0.12"

[dependencies.rand]
version = "0.8"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "stream",
    "gzip",
]

[dependencies.rust_decimal]
version = "1.36"
features = ["serde-with-str"]

[dependencies.rust_decimal_macros]
version = "1.36"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.simd-json]
version = "0.13"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.41"
features = ["full"]

[dependencies.tokio-tungstenite]
version = "0.21"
features = ["native-tls"]
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dependencies.url]
version = "2.5"

[dependencies.uuid]
version = "1.0"
features = [
    "v4",
    "serde",
]

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.env_logger]
version = "0.10"

[dev-dependencies.mockito]
version = "1.0"

[dev-dependencies.proptest]
version = "1.0"

[dev-dependencies.tokio-test]
version = "0.4"

[profile.dev]
opt-level = 1

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"

[profile.test]
opt-level = 2
debug = 2