this post was submitted on 19 Jul 2024
27 points (90.9% liked)

Rust Programming

8172 readers
19 users here now

founded 5 years ago
MODERATORS
 

This would entail:

  • Pulling in the ClearUrls rules as a git submodule.
  • Reading / transforming the json there into Rust structs.
  • Creating a Rust crate that runs a .clean(input_url) -> String

Lemmy issue: https://github.com/LemmyNet/lemmy/issues/4905

you are viewing a single comment's thread
view the rest of the comments
[โ€“] dtc@masto.pt 4 points 4 months ago (1 children)

@dessalines Did something similar last night. Might take a look into using ClearURLs instead: https://github.com/diogotcorreia/alt-urls-discord-bot

[โ€“] dessalines@lemmy.ml 2 points 4 months ago

Nice! Ya that could be made very multi-purpose.