Skip Navigation
Jump
Libs.rs is now closed source
  • What’s the bad scenario you’re worried about here? What type of data you’re specifically worried about? Do you expect me to maliciously manipulate the data, or is even well-intentioned curation and use of heuristics somehow not acceptable?

    I think they are worried that some crates may not show up in the search results, either because their author requested their removal, or you decreased their search ranking for political reasons.

    And I agree with you that crates.io is not a viable alternative due to the poor quality of the search results. So switching from lib.rs to crates.io doesn't make sense for this reason alone, since crates.io may not display the crate you're looking for either, unless you already know its name.

    1
  • Jump
    Experimenting with better CLI errors
  • You need to tell the user that this is an error, otherwise they don't know if it succeeded or not.

    error: --att cannot be used at the same time as --intel

    The last line is incomprehensible, just use a full sentence.

    4
  • blog.rust-lang.org Rustfmt support for let-else statements | Rust Blog

    Empowering everyone to build reliable and efficient software.

    1
    Jump
    Rust on Kbin
  • I can't find it on LemmyRS, is it possible that LemmyRS is not federating with kbin.social?

    0
  • gist.github.com Lemmy configurable dark theme

    Lemmy configurable dark theme. GitHub Gist: instantly share code, notes, and snippets.

    I made a configurable user style for Lemmy:

    Original: !Original

    With this user style: !Darker

    Adjusted colors: !Rusty

    Features

    • Sticky navbar: Navigation is always visible when scrolling
    • Wider content: Use more of your screen width
    • Darker colors
    • Everything is easily configurable by adjusting a few CSS variables!

    Usage

    EDIT: I published it here, install it is with Stylus!

    1. Go to the Lemmy settings and make sure that the "darkly" theme is selected; this user style doesn't work otherwise
    2. Install a browser extension for user styles, e.g. Stylus.
    3. Install the userstyle here.
    4. Adjust the configuration as desired 👍‍
    0
    Jump
    Advantages of async runtimes other than tokio?
  • There are executors for more specific use cases.

    • For example, bastion is a "Highly-available Distributed Fault-tolerant Runtime", inspired by Erlang, and including an async executor.
    • embassy includes an async executor specifically for embedded systems.
    • fuchsia-async is an executor for use in the Fuchsia OS.
    • wasm-bindgen-futures converts Rust Futures to JavaScript Promises and schedules them to run to completion. It could also be seen as a (very basic) executor.
    1