topcoat 0.0.3

A modular, batteries-included Rust web framework for server-rendered apps.
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.95"
name = "topcoat"
version = "0.0.3"
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

[package.metadata.cargo-udeps.ignore]
normal = ["topcoat-ui-registry"]

[features]
asset = [
    "dep:topcoat-asset",
    "topcoat-font?/asset",
    "topcoat-font-macro?/asset",
]
cookie = ["dep:topcoat-cookie"]
default = [
    "asset",
    "cookie",
    "font",
    "icon",
    "router",
    "runtime",
    "view",
    "discover",
]
discover = [
    "dep:inventory",
    "topcoat-font?/discover",
    "topcoat-router?/discover",
    "topcoat-router-macro?/discover",
    "topcoat-runtime?/discover",
    "topcoat-runtime-macro?/discover",
]
font = [
    "dep:topcoat-font",
    "dep:topcoat-font-macro",
]
font-fontsource = [
    "font",
    "topcoat-font/fontsource",
    "topcoat-font-macro/fontsource",
]
full = [
    "asset",
    "cookie",
    "discover",
    "font",
    "font-fontsource",
    "htmx",
    "icon",
    "icon-iconify",
    "multipart",
    "router",
    "runtime",
    "tailwind",
    "ui",
    "view",
]
htmx = ["dep:topcoat-htmx"]
icon = [
    "dep:topcoat-icon",
    "dep:topcoat-icon-macro",
    "view",
]
icon-iconify = [
    "icon",
    "topcoat-icon-macro/iconify",
    "topcoat-icon/iconify-build",
]
multipart = [
    "router",
    "topcoat-router/multipart",
]
router = [
    "dep:topcoat-router",
    "dep:topcoat-router-macro",
    "dep:futures-util",
    "dep:tokio",
    "dep:tokio-tungstenite",
    "view",
    "topcoat-asset?/router",
    "topcoat-cookie?/router",
    "topcoat-font?/router",
    "topcoat-runtime?/router",
]
runtime = [
    "dep:topcoat-runtime",
    "dep:topcoat-runtime-macro",
]
tailwind = ["dep:topcoat-tailwind"]
ui = ["dep:topcoat-ui-registry"]
view = [
    "dep:topcoat-view",
    "dep:topcoat-view-macro",
    "topcoat-asset?/view",
    "topcoat-font?/view",
]

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

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.inventory]
version = "0.3.24"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_urlencoded]
version = "0.7"

[dependencies.tokio]
version = "1.51.1"
features = ["net"]
optional = true

[dependencies.tokio-tungstenite]
version = "0.29"
optional = true

[dependencies.topcoat-asset]
version = "0.0.3"
optional = true

[dependencies.topcoat-cookie]
version = "0.0.3"
optional = true

[dependencies.topcoat-core]
version = "0.0.3"

[dependencies.topcoat-core-macro]
version = "0.0.3"

[dependencies.topcoat-font]
version = "0.0.3"
optional = true

[dependencies.topcoat-font-macro]
version = "0.0.3"
optional = true

[dependencies.topcoat-htmx]
version = "0.0.3"
optional = true

[dependencies.topcoat-icon]
version = "0.0.3"
optional = true

[dependencies.topcoat-icon-macro]
version = "0.0.3"
optional = true

[dependencies.topcoat-router]
version = "0.0.3"
optional = true

[dependencies.topcoat-router-macro]
version = "0.0.3"
optional = true

[dependencies.topcoat-runtime]
version = "0.0.3"
optional = true

[dependencies.topcoat-runtime-macro]
version = "0.0.3"
optional = true

[dependencies.topcoat-tailwind]
version = "0.0.3"
optional = true

[dependencies.topcoat-ui-registry]
version = "0.0.3"
optional = true

[dependencies.topcoat-view]
version = "0.0.3"
optional = true

[dependencies.topcoat-view-macro]
version = "0.0.3"
optional = true

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.tokio]
version = "1.51.1"
features = [
    "macros",
    "rt-multi-thread",
]

[dev-dependencies.uuid]
version = "1.23"

[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"