23
submitted 2 years ago by dessalines@lemmy.ml to c/rust@lemmy.ml

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
[-] jendrik@discuss.tchncs.de 3 points 2 years ago

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.

[-] dessalines@lemmy.ml 2 points 2 years ago

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

this post was submitted on 19 Jul 2024
23 points (89.7% liked)

Rust Programming

9435 readers
1 users here now

founded 7 years ago
MODERATORS