Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

  • PushButton@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    3 months ago

    I am reinventing everything in crates that requires zero dependencies, no unsafe code and the strict minimum of macro usage.

    Like I did a simple date/time library last week, I started an error management crate this week, which pushed me to start a logging crate.

    I am using the “log facade” crate for the logging, for compatibility you know, but that’s it.

    The goal is to minimize the dependencies and create straightforward crates.

    Most of the time, we really just need a car instead of the 18 wheeler.

  • TehPers@beehaw.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    Felt like making an assertions library since I can’t seem to find something quite what I’m looking for.

      • TehPers@beehaw.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        3 months ago

        I was mostly looking for something more composable, similar to how jest works. Some ideas that I’ve been working on are assertions like:

        expect!([1, 2, 3])
            .all()
            .to_be_less_than(5);
        

        I also have some ideas around futures that I’d like to play with.