# 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 = "stream_resp"
version = "0.2.0"
authors = ["HanLin Chai <take3812@gmail.com>"]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "StreamRESP is a RESP (Redis Serialization Protocol) parser implemented using a finite state machine (FSM) approach. Designed for streaming scenarios."
documentation = "https://docs.rs/stream_resp/latest/stream_resp/"
readme = "README.md"
keywords = [
    "redis",
    "resp",
    "parser",
    "streaming",
    "fsm",
]
categories = [
    "parsing",
    "network-programming",
    "database-implementations",
]
license = "MIT"
repository = "https://github.com/daydaydrunk/stream_resp"

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

[profile.bench]
opt-level = 3
debug = 0

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

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

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

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

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

[dependencies.atoi]
version = "2.0"

[dependencies.bytes]
version = "1.9.0"

[dependencies.jemallocator]
version = "0.5"
optional = true

[dependencies.slab]
version = "0.4"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"

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

[features]
default = []
jemalloc = ["jemallocator"]