[package]
edition = "2021"
name = "apidoc-rust"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust annotation-driven API documentation framework (apidoc-php port): zero-cost doc collection, web UI, export & mock"
readme = false
license = "MIT"
repository = "https://github.com/erikwang2013/apidoc-rust"
[features]
actix = [
"dep:actix-web",
"dep:actix-cors",
"mock",
]
axum = [
"dep:axum",
"dep:tower-http",
"mock",
]
mock = ["dep:fake"]
[lib]
name = "apidoc"
path = "src/lib.rs"
[[example]]
name = "axum_demo"
path = "examples/axum_demo.rs"
required-features = ["axum"]
[[example]]
name = "demo"
path = "examples/demo.rs"
[[test]]
name = "actix_m2_routes"
path = "tests/actix_m2_routes.rs"
[[test]]
name = "actix_m6_auth"
path = "tests/actix_m6_auth.rs"
[[test]]
name = "actix_mock_route"
path = "tests/actix_mock_route.rs"
[[test]]
name = "axum_m2_routes"
path = "tests/axum_m2_routes.rs"
[[test]]
name = "axum_m6_auth"
path = "tests/axum_m6_auth.rs"
[[test]]
name = "axum_mock_route"
path = "tests/axum_mock_route.rs"
[[test]]
name = "cross_crate"
path = "tests/cross_crate.rs"
[[test]]
name = "empty_collect"
path = "tests/empty_collect.rs"
[[test]]
name = "export"
path = "tests/export.rs"
[[test]]
name = "m3_annotations"
path = "tests/m3_annotations.rs"
[[test]]
name = "m3_ref"
path = "tests/m3_ref.rs"
[[test]]
name = "m6_apps"
path = "tests/m6_apps.rs"
[[test]]
name = "m6_auth"
path = "tests/m6_auth.rs"
[[test]]
name = "macro_expansion"
path = "tests/macro_expansion.rs"
[[test]]
name = "param_order"
path = "tests/param_order.rs"
[[test]]
name = "serialization"
path = "tests/serialization.rs"
[dependencies.actix-cors]
version = "0.7"
optional = true
[dependencies.actix-web]
version = "4"
features = ["macros"]
optional = true
[dependencies.apidoc-macros]
version = "0.1.0"
[dependencies.axum]
version = "0.8"
optional = true
[dependencies.fake]
version = "3"
features = [
"chrono",
"uuid",
]
optional = true
[dependencies.linkme]
version = "0.3"
[dependencies.md5]
version = "0.7"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.tower-http]
version = "0.7"
features = ["cors"]
optional = true
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
]
[dev-dependencies.tower]
version = "0.5"
features = ["util"]