[package]
edition = "2024"
name = "notedthat-api-http"
version = "0.5.0"
authors = ["NotedThat Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTTP API surface for NotedThat"
homepage = "https://github.com/NotedThat/NotedThat"
readme = "README.md"
license = "MPL-2.0"
repository = "https://github.com/NotedThat/NotedThat"
resolver = "2"
[features]
test-support = ["notedthat-core/test-support"]
[lib]
name = "notedthat_api_http"
path = "src/lib.rs"
[[test]]
name = "access"
path = "tests/access.rs"
[[test]]
name = "browse"
path = "tests/browse.rs"
[[test]]
name = "handlers"
path = "tests/handlers.rs"
[[test]]
name = "it_compiles"
path = "tests/it_compiles.rs"
[[test]]
name = "search_e2e"
path = "tests/search_e2e.rs"
[[test]]
name = "search_route"
path = "tests/search_route.rs"
[dependencies.async-trait]
version = "0.1.89"
[dependencies.axum]
version = "0.8"
features = [
"http1",
"json",
"matched-path",
"query",
"tokio",
]
default-features = false
[dependencies.bytes]
version = "1.12"
[dependencies.http]
version = "1"
[dependencies.httpdate]
version = "1.0"
[dependencies.notedthat-core]
version = "0.5.0"
[dependencies.notedthat-indexer]
version = "0.5.0"
[dependencies.notedthat-write]
version = "0.5.0"
[dependencies.serde]
version = "1.0"
features = [
"derive",
"derive",
]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1"
features = ["sync"]
default-features = false
[dependencies.tower]
version = "0.5"
features = ["util"]
[dependencies.tower-http]
version = "0.5"
features = [
"request-id",
"trace",
]
default-features = false
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1.6"
features = [
"v7",
"v7",
]
default-features = false
[dev-dependencies.notedthat-indexer]
version = "0.5.0"
features = ["test-support"]
[dev-dependencies.reqwest]
version = "0.12"
features = ["json"]
default-features = false
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
]
default-features = false
[dev-dependencies.tokio-util]
version = "0.7"
features = ["rt"]
[dev-dependencies.wiremock]
version = "0.6"
[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"