rustyweb 0.1.0

A minimal, Express-style web framework: simple routing, simple middleware.
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.88"
name = "rustyweb"
version = "0.1.0"
authors = ["Rakesh Bisht <raks.bisht@gmail.com>"]
build = false
exclude = [
    "assets/",
    ".github/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A minimal, Express-style web framework: simple routing, simple middleware."
documentation = "https://docs.rs/rustyweb"
readme = "README.md"
keywords = [
    "web",
    "framework",
    "http",
    "server",
    "express",
]
categories = [
    "web-programming::http-server",
    "network-programming",
]
license = "MIT"
repository = "https://github.com/raksbisht/rustyweb"

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

[features]
default = [
    "json",
    "form",
]
form = [
    "dep:serde",
    "dep:serde_urlencoded",
]
json = [
    "dep:serde",
    "dep:serde_json",
]

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

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

[[example]]
name = "json"
path = "examples/json.rs"
required-features = ["json"]

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

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

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

[[example]]
name = "website"
path = "examples/website.rs"
required-features = ["form"]

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

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

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

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

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

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

[dependencies.bytes]
version = "1.12.1"

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

[dependencies.http]
version = "1.5.0"

[dependencies.http-body-util]
version = "0.1.5"

[dependencies.httpdate]
version = "1.0.3"

[dependencies.hyper]
version = "1.11.1"
features = [
    "server",
    "http1",
]

[dependencies.hyper-util]
version = "0.1.21"
features = ["tokio"]

[dependencies.serde]
version = "1.0.229"
optional = true

[dependencies.serde_json]
version = "1.0.151"
optional = true

[dependencies.serde_urlencoded]
version = "0.7.1"
optional = true

[dependencies.tokio]
version = "1.53.2"
features = [
    "rt-multi-thread",
    "net",
    "macros",
    "signal",
    "sync",
    "time",
    "fs",
    "io-util",
]

[dev-dependencies.futures-util]
version = "0.3.34"

[dev-dependencies.serde]
version = "1.0.229"
features = ["derive"]

[dev-dependencies.tokio]
version = "1.53.2"
features = [
    "io-util",
    "rt-multi-thread",
    "macros",
    "net",
    "sync",
]