🐀 Building a federated link aggregator in rust
Find a file
Andrew Yoon 600ae662a5 Support plain cargo test and disable unused doctests for speed
Since DB tests execute diesel migrations automatically, concurrent
execution causes flaky failures from simultaneous migrations. This can
be worked around using `cargo test --workspace -- --test-threads=1`,
which is what the CI config does, but this is not intuitive for
newcomer developers and unnecessarily slows down the test suite for
the majority of tests which are safe to run concurrently. This fixes
this issue by integrating with the small test crate `serial_test` and
using it to explicitly mark DB tests to run sequentially while
allowing all other tests to run in parallel.

Additionally, this greatly improves the speed of `cargo test` by
disabling doc-tests in all crates, since these are aren't currently
used and cargo's doc-test pass, even when no doc-tests exist, has
significant overhead. On my machine, this change significantly
improves test suite times by about 85%, making it much more practical
to develop with tools like `cargo watch` auto-running tests.
2021-02-25 15:44:30 -05:00
.github Updating issue template to show lemmy-ui. 2020-09-22 14:32:18 -05:00
ansible Fix lemmy_dev ansible playbook 2021-02-23 19:35:09 +01:00
api_tests Add listing type to list communities (#1380) 2021-01-26 12:18:01 -05:00
config Moving docs to join.lemmy.ml . Fixes #1396 (#1410) 2021-02-05 12:30:49 +00:00
crates Support plain cargo test and disable unused doctests for speed 2021-02-25 15:44:30 -05:00
docker Use more recent version of cargo chef. 2021-02-24 17:10:28 -05:00
migrations In remove categories down migration, add default for category 2021-02-25 16:16:02 +01:00
migrations_testing/2020-01-13-025151_create_materialized_views Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
scripts Store activitypub endpoints in database (#162) 2021-02-04 16:34:58 +00:00
src Remove categories (fixes #1429) 2021-02-25 13:22:37 +01:00
.dockerignore Trying out cargo chef and a travis docker image cache. (#1238) 2020-11-23 10:59:06 -05:00
.drone.yml Support plain cargo test and disable unused doctests for speed 2021-02-25 15:44:30 -05:00
.gitignore Halfway done with hot rank indexes. 2021-01-05 23:42:48 -05:00
.rgignore Adding a new comment sort for posts. Fixes #1294 (#1425) 2021-02-18 10:38:25 -05:00
.rustfmt.toml Adding a new comment sort for posts. Fixes #1294 (#1425) 2021-02-18 10:38:25 -05:00
Cargo.lock Support plain cargo test and disable unused doctests for speed 2021-02-25 15:44:30 -05:00
Cargo.toml Support plain cargo test and disable unused doctests for speed 2021-02-25 15:44:30 -05:00
CONTRIBUTING.md Moving docs to join.lemmy.ml . Fixes #1396 (#1410) 2021-02-05 12:30:49 +00:00
diesel.toml Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
LICENSE Initial commit 2019-02-14 09:17:18 -08:00
README.md Fixing build / drone badge. 2021-02-05 23:19:23 -05:00
RELEASES.md Updating release version. 2021-02-19 13:11:16 -05:00

GitHub tag (latest SemVer) Build Status GitHub issues Docker Pulls Translation status License GitHub stars Awesome Humane Tech

Lemmy

A link aggregator / Reddit clone for the fediverse.

Join Lemmy · Documentation · Report Bug · Request Feature · Releases · Code of Conduct

About The Project

Desktop Mobile
desktop mobile

Lemmy is similar to sites like Reddit, Lobste.rs, or Hacker News: you subscribe to forums you're interested in, post links and discussions, then vote, and comment on them. Behind the scenes, it is very different; anyone can easily run a server, and all these servers are federated (think email), and connected to the same universe, called the Fediverse.

For a link aggregator, this means a user registered on one server can subscribe to forums on any other server, and can have discussions with users registered elsewhere.

The overall goal is to create an easily self-hostable, decentralized alternative to Reddit and other link aggregators, outside of their corporate control and meddling.

Each Lemmy server can set its own moderation policy; appointing site-wide admins, and community moderators to keep out the trolls, and foster a healthy, non-toxic environment where all can feel comfortable contributing.

Note: Federation is still in active development and the WebSocket, as well as, HTTP API are currently unstable

Why's it called Lemmy?

Built With

Features

  • Open source, AGPL License.
  • Self hostable, easy to deploy.
  • Clean, mobile-friendly interface.
    • Only a minimum of a username and password is required to sign up!
    • User avatar support.
    • Live-updating Comment threads.
    • Full vote scores (+/-) like old Reddit.
    • Themes, including light, dark, and solarized.
    • Emojis with autocomplete support. Start typing :
    • User tagging using @, Community tagging using !.
    • Integrated image uploading in both posts and comments.
    • A post can consist of a title and any combination of self text, a URL, or nothing else.
    • Notifications, on comment replies and when you're tagged.
      • Notifications can be sent via email.
      • Private messaging support.
    • i18n / internationalization support.
    • RSS / Atom feeds for All, Subscribed, Inbox, User, and Community.
  • Cross-posting support.
    • A similar post search when creating new posts. Great for question / answer communities.
  • Moderation abilities.
    • Public Moderation Logs.
    • Can sticky posts to the top of communities.
    • Both site admins, and community moderators, who can appoint other moderators.
    • Can lock, remove, and restore posts and comments.
    • Can ban and unban users from communities and the site.
    • Can transfer site and communities to others.
  • Can fully erase your data, replacing all posts and comments.
  • NSFW post / community support.
  • OEmbed support via Iframely.
  • High performance.
    • Server is written in rust.
    • Front end is ~80kB gzipped.
    • Supports arm64 / Raspberry Pi.

Installation

Lemmy Projects

Apps

Libraries

Support / Donate

Lemmy is free, open-source software, meaning no advertising, monetizing, or venture capital, ever. Your donations directly support full-time development of the project.

Crypto

  • bitcoin: 1Hefs7miXS5ff5Ck5xvmjKjXf5242KzRtK
  • ethereum: 0x400c96c96acbC6E7B3B43B1dc1BB446540a88A01
  • monero: 41taVyY6e1xApqKyMVDRVxJ76sPkfZhALLTjRvVKpaAh2pBd4wv9RgYj1tSPrx8wc6iE1uWUfjtQdTmTy2FGMeChGVKPQuV

Contributing

Translations

If you want to help with translating, take a look at Weblate. You can also help by translating the documentation.

Contact

Code Mirrors

Credits

Logo made by Andy Cuccaro (@andycuccaro) under the CC-BY-SA 4.0 license.