Anyone looking for a fun small rust project? Create a crate for cleaning urls, based on the ClearUrls project
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: github.com/LemmyNet/lemmy/issu…
GitHub - ClearURLs/Rules: Rules database of the ClearURLs WebExtension.
Rules database of the ClearURLs WebExtension. Contribute to ClearURLs/Rules development by creating an account on GitHub.GitHub
Diogo Correia
in reply to Dessalines • • •GitHub - diogotcorreia/alt-urls-discord-bot: Discord bot that provides alternative links to various social media services
GitHubDessalines
in reply to Diogo Correia • • •BB_C
in reply to Dessalines • • •I possibly would have done it if they had a test suite.
But unless I didn't look hard enough, they have no tests at all (other than linting)!
Dessalines
in reply to BB_C • • •jendrik
in reply to Dessalines • • •I just released a crate doing exactly that: crates.io/crates/clearurls
Let me know if if fits your need or you need anything else. Issues and PRs welcome.
Dessalines
in reply to jendrik • • •