5 ms·
Show HN: Apate API mocking/prototyping server and Rust unit test library
- RegW 8mo agoFeels like a Wiremock for Rust.
- rumatoest 8mo agoMaybe, but it is much simpler, probably faster, starts instantly and do not eats tons of RAM.
- mnahkies 8mo agoThe 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 https://github.com/rustrum/apate/blob/main/LICENSE-TERMS)
- rsyring 8mo agoYeah, 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.
- rumatoest 8mo agoIt 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 8mo agoI 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?
- rumatoest 8mo agoFrom 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 8mo 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.
- embedding-shape 8mo agoOuch, 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.
- rumatoest 8mo agoI just thought that MIT for subset of users is better than "My Own License"
- rumatoest 8mo agoWell 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.
- deleted 8mo ago[deleted]
- mre 8mo agoWe 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/ https://docs.rs/httpmock/latest/httpmock/
- rumatoest 8mo agoAs I see httpmock is meant only for rust unit tests. In my case unit test library is a side effect. Apate main goal is to be a stand alone server. For example you are building web app that interacts with backend which is not ready yet. So you can simulate some API from this backend locally.
- alexliesenfeld 8mo ago[dead]
- vindin 8mo agoWhy are people using rust to build web apps
- petcat 8mo agoRust + 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.
- airstrike 8mo agoWhy wouldn't we? It's a fantastic language with great tooling, top tier performance and minimal footprint
- kredd22 8mo ago[flagged]
- airstrike 8mo agoSome 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.
- rumatoest 8mo agoFirst 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 :)
- Terretta 8mo agoThis English as second language README being not written by LLM -- despite the emojis which the LLMs had to learn from somewhere -- is refreshing.
- rumatoest 8mo agoWell plain text README is booooooring. And I just realized that adding emoji could help to make it more fun and emphasize some context.