Hacker News

rumatoest
Show HN: Apate API mocking/prototyping server and Rust unit test library github.com

mnahkies2 days 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-shape2 days 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.

rumatoestopa day ago

I just thought that MIT for subset of users is better than "My Own License"

rumatoestopa day 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.

rsyring2 days 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.

rumatoestopa day 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-shapea day 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?

rumatoestopa day 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-shapea day 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.

[deleted]2 days agocollapsed

mre2 days 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/

Terretta2 days 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.

rumatoestopa day 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.

vindin2 days ago

Why are people using rust to build web apps

airstrike2 days ago

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

kredd222 days ago

That's neat. Just sucks that Rust proponents apparently tried to assassinate Rust critic Rene Rebe through swatting.

https://youtube.com/watch?v=FIEwcTKUFCA

Vile, wretched and despicable Rust proponents will censor and downplay this.

airstrike2 days ago

Some Rust proponents, but certainly it's obvious not all of them, or not even a meaningful majority.

Which is to say this despicable act has absolutely no bearing on the language and its ecosystem, so bringing it up is irrelevant, and therefore those downplaying it are not necessarily in favor of the act.

I hope that logic is self-evident.

rumatoestopa day 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 :)

petcat2 days 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.

RegW2 days ago

Feels like a Wiremock for Rust.

rumatoestopa day ago

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

hn-front (c) 2024 voximity
source