# 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" rust-version = "1.74" name = "chuchi" version = "0.1.3" authors = ["Sören Meier "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Http async library based on hyper and tokio" readme = "README.md" categories = ["web-programming"] license = "MIT OR Apache-2.0" repository = "https://github.com/chuchi-dev/chuchi-rs" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "chuchi" path = "src/lib.rs" [[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" test = true required-features = ["json"] [[example]] name = "static_files" path = "examples/static_files.rs" test = true required-features = ["fs"] [[example]] name = "with_file" path = "examples/with_file.rs" test = true required-features = ["fs"] [[example]] name = "write_json" path = "examples/write_json.rs" test = true required-features = ["json"] [[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", ] [dependencies.base64] version = "0.22" optional = true [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] version = "0.3.5" optional = true default-features = false [dependencies.hyper] version = "1.2" features = ["server"] [dependencies.hyper-util] version = "0.1.3" features = [ "tokio", "server", ] [dependencies.juniper] version = "0.16" optional = true default-features = false [dependencies.matchit] version = "0.8" [dependencies.percent-encoding] version = "2.1" optional = true [dependencies.rand] version = "0.8" optional = true [dependencies.sentry-core] version = "0.34" features = ["client"] optional = true [dependencies.serde] version = "1.0" features = ["derive"] optional = true [dependencies.serde_json] version = "1.0" optional = true [dependencies.sha-1] version = "0.10" optional = true [dependencies.thiserror] version = "1.0.58" [dependencies.tokio] version = "1.0" features = ["net"] [dependencies.tokio-tungstenite] version = "0.23" optional = true default-features = false [dependencies.tracing] version = "0.1" [dev-dependencies.hyper] version = "1.2" features = [ "server", "client", ] [dev-dependencies.hyper-util] version = "0.1" features = [ "client", "client-legacy", ] [dev-dependencies.serde] version = "1.0" features = ["derive"] [dev-dependencies.tokio] version = "1.0" features = [ "macros", "rt-multi-thread", ] [dev-dependencies.tokio-tungstenite] version = "0.23" default-features = false [dev-dependencies.tracing-subscriber] version = "0.3" [dev-dependencies.tracing-test] version = "0.2.4" features = ["no-env-filter"] [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", ]