[package]
edition = "2024"
rust-version = "1.98"
name = "topcoat-runtime"
version = "0.9.0"
authors = ["Julien Scholz <hello@julien-scholz.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A modular, batteries-included Rust web framework for server-rendered apps."
readme = "README.md"
keywords = [
"web",
"framework",
"ssr",
"html",
"server",
]
categories = [
"web-programming",
"web-programming::http-server",
]
license = "MIT"
repository = "https://github.com/tokio-rs/topcoat"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
router = [
"dep:futures-util",
"dep:pin-project-lite",
"dep:tokio",
"dep:topcoat-router",
]
[lib]
name = "topcoat_runtime"
path = "src/lib.rs"
[dependencies.pin-project-lite]
version = "0.2"
optional = true
[dependencies.ref-cast]
version = "1.0"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.topcoat-asset]
version = "0.9.0"
[dependencies.topcoat-core]
version = "0.9.0"
[dependencies.topcoat-router]
version = "0.9.0"
optional = true
[dependencies.topcoat-view]
version = "0.9.0"
[dev-dependencies]
[target.'cfg(not(target_family = "wasm"))'.dependencies.futures-util]
version = "0.3"
features = ["sink"]
optional = true
[target.'cfg(not(target_family = "wasm"))'.dependencies.tokio]
version = "1.51.1"
features = [
"rt",
"sync",
]
optional = true
[target.'cfg(not(target_family = "wasm"))'.dependencies.topcoat-router]
version = "0.9.0"
features = ["websocket"]
optional = true
[lints.clippy]
mod_module_files = "deny"
too_many_lines = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "deny"
[lints.rustdoc]
broken_intra_doc_links = "deny"