# 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.67.1" name = "tower-surf" version = "0.3.0" build = false exclude = [ ".envrc", ".github", "cog.toml", "devenv.*", "scripts", ] autobins = false autoexamples = false autotests = false autobenches = false description = "🌊 A stateless CSRF middleware for tower." documentation = "https://docs.rs/tower-surf" readme = "README.md" license = "MIT OR Apache-2.0" repository = "https://github.com/its-danny/tower-surf" [package.metadata.docs.rs] all-features = true [lib] name = "tower_surf" path = "src/lib.rs" [[example]] name = "full" path = "examples/full.rs" required-features = ["axum"] [[test]] name = "integration" path = "tests/integration.rs" [dependencies.async-trait] version = "0.1.81" optional = true [dependencies.axum-core] version = "0.4.3" optional = true [dependencies.base64] version = "0.22.1" [dependencies.futures-util] version = "0.3.30" [dependencies.hmac] version = "0.12.1" [dependencies.http] version = "1.1.0" [dependencies.rand] version = "0.8.5" [dependencies.secstr] version = "0.5.1" [dependencies.sha2] version = "0.10.8" [dependencies.thiserror] version = "1.0.63" [dependencies.tower-cookies] version = "0.10.0" [dependencies.tower-layer] version = "0.3.3" [dependencies.tower-service] version = "0.3.3" [dependencies.tracing] version = "0.1.40" features = ["log"] [dev-dependencies.anyhow] version = "1.0.86" [dev-dependencies.axum] version = "0.7.5" [dev-dependencies.axum-test] version = "15.3.1" [dev-dependencies.maud] version = "0.26.0" features = ["axum"] [dev-dependencies.tokio] version = "1.39.2" features = ["full"] [features] axum = [ "dep:async-trait", "dep:axum-core", ]