testcontainers-rs
libreddit
Our great sponsors
testcontainers-rs | libreddit | |
---|---|---|
6 | 283 | |
554 | 4,993 | |
6.3% | 0.4% | |
6.7 | 5.2 | |
5 days ago | 19 days ago | |
Rust | Rust | |
Apache License 2.0 | GNU Affero General Public License v3.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
testcontainers-rs
-
Rust Tooling: 8 tools that will increase your productivity
Testing with added infrastructure can be quite tricky. testcontainers aims to solve this by providing an open-source framework for providing local, lightweight containers for your application that can be immediately thrown away after use. It also has a Rust SDK!
-
Writing a REST API in Rust
Add tests! You can use testcontainers to spin up Docker containers for Postgres and other infrastructure which makes testing your database extremely easy. You can find more about this here.
-
Writing Better Integration Tests with RAII
You didn't mention how do you start Postgres for the tests. Is it assumed it runs in the background? A cool crate I use lately for this kind of thing is test_containers that can start docker containers from code, for example - Postgres
-
Tokio's Axum web framework - not new, but new to me
Do you manually spin up the containers or do you use testcontainers?
-
Using rust for REST-API microservices
For the repo testing, that’s simple. https://github.com/testcontainers/testcontainers-rs will start a Docker image and you just use that when instantiating the repo.
-
httpmock - A Rust library and tool for mocking and prototyping HTTP endpoints.
Thanks for sharing! I'm still a beginner with Rust and still pretty new to testing in general - is there any benefit to using something like this over bringing up the service as a separate container using something like testcontainers? I suppose the biggest one is this is in-memory and doesn't require the party running tests to have Docker available locally. The tradeoff is the extra work to create all the mocks (i.e. my library has several dozen endpoints).
libreddit
-
Mobile Ad Blocker Will No Longer Stop YouTube's Ads
Don't use Youtube without going through a proxy like Invidious [1] or Newpipe
Don't use {site} Search without going through a proxy like SearxNG [2]
Don't use TwiXXer without going through a proxy like Nitter - this has gotten more difficult lately but it still works as long as you feed the daemon some registered accounts. Video does not work at the moment but that seems to be fixable.
Don't use Reddit without going through a proxy like libreddit [4]
Start noticing the pattern? Maybe it is time to start producing promotional posters:
The only thing to come between you and ADS could be a proxy / ADS. I'ts just not worth the risk
ADS / New rules for a sane net / Sane net protects you, your partner and your community
A proxy here and a filter there, ADS nowhere
The more you tighten your grip, ${site}, the more viewers will slip through your fingers
[1] https://github.com/iv-org/invidious
[2] https://github.com/searxng/searxng
[3] https://github.com/zedeus/nitter
[4] https://github.com/libreddit/libreddit
- Libreddit's Public Instances are Shutting Down
- Libreddit is shutting down public instances
-
Teddit Is Shutting Down
This is a particular teddit instance shutting down, not teddit the software project.
Stuff is moving a lot currently and there is a bumpy road ahead, but there are several courses of action already being mapped out (scraping html, r-e the private gql api, a setting for operators to put some auth token, ..).
https://github.com/libreddit/libreddit/issues/836
https://codeberg.org/teddit/teddit/issues/400
- Libreddit instances are shutting down
-
Ask HN: Is Reddit imposing rate limits too?
Sadly the quick refresh is no longer working for me, and going through all of the instances on Libredirect, they all seem to be constantly down now.
It appears that they are trying to deal with this issue here:
https://github.com/libreddit/libreddit/issues/836
- What’s up with Reddit telling me to use the official Reddit app to see porn?
-
Joey is still working because of less users
Yes, the official Reddit app uses a different endpoint for authentication. There has been great progress in reverse-engineering the private API: https://github.com/libreddit/libreddit/issues/818
- Version 1.21 released
-
Nitter just died today.
There's a fork of Libreddit that uses the API key leaked from the official Reddit app: https://github.com/libreddit/libreddit/pull/819
What are some alternatives?
RustScan - 🤖 The Modern Port Scanner 🤖
Reddit-Enhancement-Suite - Reddit Enhancement Suite
vaultwarden - Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden_rs
nitter - Alternative Twitter front-end
httpmock - HTTP mocking library for Rust.
teddit - alternative Reddit front-end focused on privacy https://teddit.net
sea-orm - 🐚 An async & dynamic ORM for Rust
Shreddit - Remove your comment history on Reddit as deleting an account does not do so.
axum - Ergonomic and modular web framework built with Tokio, Tower, and Hyper
Removeddit - View deleted stuff from reddit
axum-rest-starter-example - Quick demo of a REST frontend with a Redis session store.
Invidious - Invidious is an alternative front-end to YouTube