activitypub-federation-rust/examples/local_federation/activities
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
..
accept.rs Fix regex error when actix-web feature not enabled (#56) 2023-07-03 15:05:18 +02:00
create_post.rs Dont use apub in type names 2023-03-16 21:41:43 +01:00
follow.rs Fix regex error when actix-web feature not enabled (#56) 2023-07-03 15:05:18 +02:00
mod.rs Various improvements for usability, examples and docs 2023-02-19 21:26:01 +09:00