# 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" name = "activitypub_federation" version = "0.6.1" build = false autobins = false autoexamples = false autotests = false autobenches = false description = "High-level Activitypub framework" documentation = "https://docs.rs/activitypub_federation/" readme = "README.md" keywords = [ "activitypub", "activitystreams", "federation", "fediverse", ] license = "AGPL-3.0" repository = "https://github.com/LemmyNet/activitypub-federation-rust" [profile.dev] debug = 0 strip = "symbols" [lib] name = "activitypub_federation" path = "src/lib.rs" [[example]] name = "live_federation" path = "examples/live_federation/main.rs" [[example]] name = "local_federation" path = "examples/local_federation/main.rs" [dependencies.activitystreams-kinds] version = "0.3.0" [dependencies.actix-web] version = "4.8.0" optional = true default-features = false [dependencies.async-trait] version = "0.1.81" [dependencies.axum] version = "0.7.5" features = ["json"] optional = true default-features = false [dependencies.base64] version = "0.22.1" [dependencies.bytes] version = "1.6.1" [dependencies.chrono] version = "0.4.38" features = ["clock"] default-features = false [dependencies.derive_builder] version = "0.20.0" [dependencies.diesel] version = "2.2.1" features = ["postgres"] optional = true default-features = false [dependencies.dyn-clone] version = "1.0.17" [dependencies.enum_delegate] version = "0.2.0" [dependencies.futures] version = "0.3.30" [dependencies.futures-core] version = "0.3.30" default-features = false [dependencies.http] version = "1.1.0" [dependencies.http-signature-normalization] version = "0.7.0" [dependencies.http-signature-normalization-reqwest] version = "0.12.0" features = [ "sha-2", "middleware", "default-spawner", ] default-features = false [dependencies.http02] version = "0.2.12" optional = true package = "http" [dependencies.httpdate] version = "1.0.3" [dependencies.itertools] version = "0.13.0" [dependencies.moka] version = "0.12.8" features = ["future"] [dependencies.once_cell] version = "1.19.0" [dependencies.pin-project-lite] version = "0.2.14" [dependencies.rand] version = "0.8.5" [dependencies.regex] version = "1.10.5" features = [ "std", "unicode", ] default-features = false [dependencies.reqwest] version = "0.12.5" features = [ "json", "stream", "rustls-tls", ] default-features = false [dependencies.reqwest-middleware] version = "0.3.2" [dependencies.rsa] version = "0.9.6" [dependencies.serde] version = "1.0.204" features = ["derive"] [dependencies.serde_json] version = "1.0.120" features = ["preserve_order"] [dependencies.sha2] version = "0.10.8" features = ["oid"] [dependencies.thiserror] version = "1.0.62" [dependencies.tokio] version = "1.38.0" features = [ "sync", "rt", "rt-multi-thread", "time", ] [dependencies.tower] version = "0.4.13" optional = true [dependencies.tracing] version = "0.1.40" [dependencies.url] version = "2.5.2" features = ["serde"] [dev-dependencies.anyhow] version = "1.0.86" [dev-dependencies.axum] version = "0.7.5" features = ["macros"] [dev-dependencies.axum-extra] version = "0.9.3" features = ["typed-header"] [dev-dependencies.env_logger] version = "0.11.3" [dev-dependencies.tokio] version = "1.38.0" features = ["full"] [features] actix-web = [ "dep:actix-web", "dep:http02", ] axum = [ "dep:axum", "dep:tower", ] default = [ "actix-web", "axum", ] diesel = ["dep:diesel"] [lints.clippy] cast_lossless = "deny" dbg_macro = "deny" implicit_clone = "deny" inefficient_to_string = "deny" items-after-statements = "deny" manual_string_new = "deny" redundant_closure_for_method_calls = "deny" unwrap_used = "deny" wildcard_imports = "deny" [lints.clippy.complexity] level = "deny" priority = -1 [lints.clippy.perf] level = "deny" priority = -1 [lints.rust] deprecated = "deny" warnings = "deny"