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 thread.
View all comments
3 points

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.

permalink
report
reply
2 points

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

permalink
report
parent
reply

Rust Programming

!rust@lemmy.ml

Create post

Community stats

  • 72

    Monthly active users

  • 248

    Posts

  • 774

    Comments