activitypub-federation-rust/examples/live_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 Dont use apub in type names 2023-03-16 21:41:43 +01:00
objects Fix regex error when actix-web feature not enabled (#56) 2023-07-03 15:05:18 +02:00
database.rs live federation example 2023-03-08 22:16:43 +01:00
error.rs live federation example 2023-03-08 22:16:43 +01:00
http.rs Dont use apub in type names 2023-03-16 21:41:43 +01: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