activitypub-federation-rust/src
Colin Atkinson d9f1a4414f
Fix regex error when actix-web feature not enabled (#56)
* Fix formatting for nightly rustfmt

https://github.com/LemmyNet/lemmy/issues/3467

* Fix regex error when actix-web feature not enabled

If the crate is built with only the axum feature, compiling the
webfinger account regex will fail with an error "Unicode-aware case
insensitivity matching is not available..." because of the missing
unicode-case feature. This doesn't happen if actix is installed because
it pulls in the regex crate with all features (via [actix-router][0]).

The failure can be demonstrated by reverting this commit's change to
Cargo.toml and running:

    cargo test --no-default-features --features=axum --doc extract_webfinger_name

Resolve this by adding the unicode-case feature to the regex dependency.

[0]: 0e8ed50e3a/actix-router/Cargo.toml (L25)
2023-07-03 15:05:18 +02:00
..
actix_web Fix regex error when actix-web feature not enabled (#56) 2023-07-03 15:05:18 +02:00
axum Secure mode federation support (WIP) (#39) 2023-06-12 13:32:54 +02:00
fetch Fix regex error when actix-web feature not enabled (#56) 2023-07-03 15:05:18 +02:00
protocol Changes to make Lemmy work with 0.4 (#29) 2023-03-16 02:11:48 +01:00
activity_queue.rs fix: make "other" error actually transparent (#51) 2023-06-29 10:19:49 +02:00
config.rs Add a no limit option to the config (#45) 2023-06-22 09:40:59 +02:00
error.rs fix: make "other" error actually transparent (#51) 2023-06-29 10:19:49 +02:00
http_signatures.rs fix: make "other" error actually transparent (#51) 2023-06-29 10:19:49 +02:00
lib.rs Dont use apub in type names 2023-03-16 21:41:43 +01:00
reqwest_shim.rs move files 2023-03-06 16:19:43 +01:00
traits.rs Dont use apub in type names 2023-03-16 21:41:43 +01:00