lighter-sdk 0.1.1

Rust SDK for interacting with the Lighter exchange over REST, WebSocket, and signer-backed transaction flows.
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 = "2024"
rust-version = "1.85"
name = "lighter-sdk"
version = "0.1.1"
build = false
include = [
    "src/**/*",
    "examples/**/*",
    "tests/**/*",
    "CHANGELOG.md",
    "LICENSE",
    "RELEASE.md",
    "README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust SDK for interacting with the Lighter exchange over REST, WebSocket, and signer-backed transaction flows."
homepage = "https://github.com/lobstergrindset/lighter-rust"
documentation = "https://docs.rs/lighter-sdk"
readme = "README.md"
keywords = [
    "lighter",
    "exchange",
    "trading",
    "crypto",
    "sdk",
]
categories = [
    "api-bindings",
    "asynchronous",
    "network-programming",
]
license = "Apache-2.0"
repository = "https://github.com/lobstergrindset/lighter-rust"

[package.metadata.docs.rs]
all-features = true

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

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

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

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

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

[dependencies.async-trait]
version = "0.1"

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

[dependencies.libloading]
version = "0.8"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_repr]
version = "0.1"

[dependencies.thiserror]
version = "2"

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

[dependencies.tokio-tungstenite]
version = "0.26"
features = ["rustls-tls-native-roots"]

[dependencies.tracing]
version = "0.1"

[dev-dependencies.tokio]
version = "1"
features = [
    "test-util",
    "macros",
]