this post was submitted on 19 Jul 2024
4 points (83.3% liked)

Rust Programming

8127 readers
1 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

top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 2 points 3 months ago (1 children)

I just released a crate doing exactly that: https://crates.io/crates/clearurls

Let me know if if fits your need or you need anything else. Issues and PRs welcome.

[โ€“] [email protected] 2 points 3 months ago

Whoa nice! I'll check it out and see how we can integrate it into lemmy.