activitypub-federation-rust/examples/local_federation
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
..
activities Fix regex error when actix-web feature not enabled (#56) 2023-07-03 15:05:18 +02:00
actix_web Remove actix-rt and replace with tokio tasks (#42) 2023-06-20 11:54:14 +02:00
axum Fix regex error when actix-web feature not enabled (#56) 2023-07-03 15:05:18 +02:00
objects Dont use apub in type names 2023-03-16 21:41:43 +01:00
error.rs Various improvements for usability, examples and docs 2023-02-19 21:26:01 +09:00
instance.rs Remove actix-rt and replace with tokio tasks (#42) 2023-06-20 11:54:14 +02:00
main.rs Remove actix-rt and replace with tokio tasks (#42) 2023-06-20 11:54:14 +02:00
utils.rs live federation example 2023-03-08 22:16:43 +01:00