[dependencies.base64]
optional = true
version = "0.22"
[dependencies.byte-parser]
version = "0.2"
[dependencies.bytes]
version = "1.0"
[dependencies.chuchi-codegen]
version = "0.1.0"
[dependencies.chuchi-core]
version = "0.1.0"
[dependencies.futures-util]
default-features = false
optional = true
version = "0.3.5"
[dependencies.hyper]
features = ["server"]
version = "1.2"
[dependencies.hyper-util]
features = ["tokio", "server"]
version = "0.1.3"
[dependencies.juniper]
default-features = false
optional = true
version = "0.16"
[dependencies.matchit]
version = "0.8"
[dependencies.percent-encoding]
optional = true
version = "2.1"
[dependencies.rand]
optional = true
version = "0.8"
[dependencies.sentry-core]
features = ["client"]
optional = true
version = "0.34"
[dependencies.serde]
features = ["derive"]
optional = true
version = "1.0"
[dependencies.serde_json]
optional = true
version = "1.0"
[dependencies.sha-1]
optional = true
version = "0.10"
[dependencies.thiserror]
version = "1.0.58"
[dependencies.tokio]
features = ["net"]
version = "1.0"
[dependencies.tokio-tungstenite]
default-features = false
optional = true
version = "0.23"
[dependencies.tracing]
version = "0.1"
[dev-dependencies.hyper]
features = ["server", "client"]
version = "1.2"
[dev-dependencies.hyper-util]
features = ["client", "client-legacy"]
version = "0.1"
[dev-dependencies.serde]
features = ["derive"]
version = "1.0"
[dev-dependencies.tokio]
features = ["macros", "rt-multi-thread"]
version = "1.0"
[dev-dependencies.tokio-tungstenite]
default-features = false
version = "0.23"
[dev-dependencies.tracing-subscriber]
version = "0.3"
[dev-dependencies.tracing-test]
features = ["no-env-filter"]
version = "0.2.4"
[[example]]
name = "catcher"
path = "examples/catcher.rs"
test = true
[[example]]
name = "cors"
path = "examples/cors.rs"
test = true
[[example]]
name = "hello_world"
path = "examples/hello_world.rs"
test = true
[[example]]
name = "post"
path = "examples/post.rs"
test = true
[[example]]
name = "read_json"
path = "examples/read_json.rs"
required-features = ["json"]
test = true
[[example]]
name = "static_files"
path = "examples/static_files.rs"
required-features = ["fs"]
test = true
[[example]]
name = "with_file"
path = "examples/with_file.rs"
required-features = ["fs"]
test = true
[[example]]
name = "write_json"
path = "examples/write_json.rs"
required-features = ["json"]
test = true
[features]
api = ["json", "chuchi-core/query", "chuchi-codegen/api"]
api-stream = ["api", "ws", "chuchi-codegen/stream", "tokio/macros"]
default = ["http1"]
fs = ["tokio/fs", "dep:percent-encoding", "dep:rand"]
graphql = ["json", "dep:juniper"]
http1 = ["hyper-util/http1"]
http2 = ["hyper-util/http2"]
json = ["dep:serde", "dep:serde_json", "chuchi-core/json", "chuchi-codegen/json"]
sentry = ["dep:sentry-core"]
testing = []
ws = ["dep:tokio-tungstenite", "dep:futures-util", "dep:base64", "dep:sha-1", "chuchi-codegen/ws"]
[lib]
name = "chuchi"
path = "src/lib.rs"
[package]
authors = ["Sören Meier <info@soerenmeier.ch>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["web-programming"]
description = "Http async library based on hyper and tokio"
edition = "2021"
license = "MIT OR Apache-2.0"
name = "chuchi"
readme = "README.md"
repository = "https://github.com/chuchi-dev/chuchi-rs"
rust-version = "1.74"
version = "0.1.5"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[[test]]
name = "api_basic"
path = "tests/api_basic.rs"
required-features = ["http1", "api", "testing"]
[[test]]
name = "api_stream"
path = "tests/api_stream.rs"
required-features = ["http1", "api", "testing", "api-stream"]
[[test]]
name = "default_features"
path = "tests/default_features.rs"
required-features = ["http1"]
[[test]]
name = "fs"
path = "tests/fs.rs"
required-features = ["http1", "fs"]
[[test]]
name = "json"
path = "tests/json.rs"
required-features = ["http1", "json"]
[[test]]
name = "util"
path = "tests/util.rs"
[[test]]
name = "ws"
path = "tests/ws.rs"
required-features = ["http1", "ws"]