Settings

Theme

Show HN: Apate API mocking/prototyping server and Rust unit test library

github.com

32 points by rumatoest 3 months ago · 21 comments

Reader

mnahkies 3 months ago

The licence terms / variation on MIT is interesting - unless this file is part of some standard I'm unaware of I'd expect it still shows as plain MIT for most automated SBOM collection/licence checks which feels problematic.

(https://github.com/rustrum/apate/blob/main/LICENSE-TERMS)

  • embedding-shape 3 months ago

    Ouch, why even involve the MIT license if you're gonna do custom terms anyways? Just put "Copyright me" and be done with it instead of ending up with some weird half and half solution. Net effect ends up the same anyways.

  • rumatoestOP 3 months ago

    Well the point here is that if I created it by myself I can make whatever license I want. But I do not want to write my own license. AFAIK even if you grant something for subset of users for "free" you have to define legally terms of this "free" usage.

  • rsyring 3 months ago

    Yeah, that kills adoption by most people I'd imagine. Non-standard license terms are always a huge red flag IMO, regardless of actual license terms.

    • rumatoestOP 3 months ago

      It is simple. If you do not like it - do not use it. I do not care. Have no plans to conquer the world with this project :)

      • embedding-shape 3 months ago

        I mean you must care a little bit right? Why publish it and share it here otherwise? :) Maybe you're looking for people to just review and learn from the code, rather than use it in their projects?

        • rumatoestOP 3 months ago

          From license terms you can see that any independent developer and small teams could use it without any issues.

          And yes I do not want it to be "free stuff" for big corporations. I just do not know any existing license that can define such terms.

          • embedding-shape 3 months ago

            > From license terms you can see that any independent developer and small teams could use it without any issues

            Right, until they cannot, and that choice won't be made from their own agency, and most people will try to avoid ending up there, hence not using the project in the first place.

            Not saying "it's doomed to have zero users", but you'll probably find it slightly strange when people seemingly would have perfect use for your project, yet find other options anyways.

            > And yes I do not want it to be "free stuff" for big corporations. I just do not know any existing license that can define such terms.

            Guess BSL would fit you, but yeah, if you want any sort of restrictions, what you want is something else than Free and Open Source Software, and that's fine of course, just be aware it'll be a hard sell to developers used to FOSS. Again, a fine choice to be making and understandable.

mre 3 months ago

We use httpmock [1] for lychee, and it works quite well. Haven't looked too closely at the differences yet.

[1] https://docs.rs/httpmock/latest/httpmock/

Terretta 3 months ago

This English as second language README being not written by LLM -- despite the emojis which the LLMs had to learn from somewhere -- is refreshing.

  • rumatoestOP 3 months ago

    Well plain text README is booooooring. And I just realized that adding emoji could help to make it more fun and emphasize some context.

vindin 3 months ago

Why are people using rust to build web apps

  • airstrike 3 months ago

    Why wouldn't we? It's a fantastic language with great tooling, top tier performance and minimal footprint

  • rumatoestOP 3 months ago

    First of all, this is not a web app.

    Second, what should I use if I want a small binary with no dependencies and low CPU/RAM usage?

    I could’ve used Go, but once you know Rust Go’s existence almost stops making sense :)

  • petcat 3 months ago

    Rust + Axum + SQLx has been a total game-changer for me in terms of productivity developing web-based Postgres apps. I like the tooling and the libraries are great.

RegW 3 months ago

Feels like a Wiremock for Rust.

  • rumatoestOP 3 months ago

    Maybe, but it is much simpler, probably faster, starts instantly and do not eats tons of RAM.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection