llmsim 0.4.0

LLM Traffic Simulator - A lightweight, high-performance LLM API simulator
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 = "llmsim"
version = "0.4.0"
authors = ["LLMSim Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "LLM Traffic Simulator - A lightweight, high-performance LLM API simulator"
readme = "README.md"
keywords = [
    "llm",
    "openai",
    "simulator",
    "mock",
    "testing",
]
categories = [
    "development-tools::testing",
    "simulation",
    "web-programming::http-server",
]
license = "MIT"
repository = "https://github.com/chaliy/llmsim"

[features]
default = []
tui = [
    "dep:crossterm",
    "dep:ratatui",
    "tokio/io-util",
]

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

[[bin]]
name = "llmsim"
path = "src/main.rs"

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

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

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

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

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

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

[dependencies.async-stream]
version = "0.3"

[dependencies.axum]
version = "0.8"
features = [
    "http1",
    "json",
    "tokio",
    "ws",
]
default-features = false

[dependencies.clap]
version = "4.6"
features = [
    "derive",
    "env",
]

[dependencies.crossterm]
version = "0.29"
optional = true

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

[dependencies.futures-util]
version = "0.3"
features = [
    "sink",
    "std",
]
default-features = false

[dependencies.rand]
version = "0.10"

[dependencies.ratatui]
version = "0.30"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tiktoken-rs]
version = "0.11"

[dependencies.tokio]
version = "1.52"
features = [
    "macros",
    "rt-multi-thread",
    "net",
    "signal",
    "time",
]
default-features = false

[dependencies.toml]
version = "1.1"

[dependencies.tower-http]
version = "0.6"
features = [
    "cors",
    "trace",
]
default-features = false

[dependencies.tracing]
version = "0.1"

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

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

[dev-dependencies.tokio-tungstenite]
version = "0.29"

[dev-dependencies.tower]
version = "0.5"
features = ["util"]