gock
azure-sdk-for-rust
gock | azure-sdk-for-rust | |
---|---|---|
10 | 9 | |
2,028 | 650 | |
- | 2.6% | |
3.4 | 9.3 | |
4 months ago | 6 days ago | |
Go | Rust | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
gock
-
Testing calls to external APIs
Mocking the http client with explicit responses; for example using h2non/gock
- What features would you consider missing/nice to haves for backend web development in Rust?
-
Mock HTTP response
Check out gock.
- API Mock Testing Frameworks
-
Testing methods with HTTP calls?
h2non/gock and
-
Go Package for Mocking HTTP Traffic: github.com/h2non/gock
Last time I covered testing in Go I mentioned a package used for testing equality called github.com/google/go-cmp, this time I will share with you a way to mock HTTP traffic using the package github.com/h2non/gock.
-
HTTP mocking
If you need a good library for mocking http servers https://github.com/h2non/gock does a great job.
-
best way to mock/unit test http.Client?
github.com/h2non/gock
- How to mock `jwk.Fetch` in my unit tests?
- Has anyone here compiled DroneCI from scratch?
azure-sdk-for-rust
-
What features would you consider missing/nice to haves for backend web development in Rust?
Take a look at this https://github.com/Azure/azure-sdk-for-rust
-
Should we switch to Rust?
Source: I'm an active contributor to the Azure SDK for Rust
- Mark Russinovich (Azure CTO): "it's time to halt starting any new projects in C/C++ and use Rust"
- `into_future` has been stabilized!
-
Experience 6 Months of Go
FWIW, AWS now have an official SDK for Rust in beta:
https://aws.amazon.com/sdk-for-rust/
There are people at Microsoft working on a Rust SDK for Azure, but it's explicitly a volunteer effort at the moment:
https://github.com/Azure/azure-sdk-for-rust
These days I probably would not look at any language that did not have SDKs for AWS and Azure, for similar reasons.
-
Help Microsoft shape the Azure SDK for Rust
Incidentally I have posted this today so if you believe in that feel free to put a thumb up there to voice support. I would be more than happy to extract the relevant parts of my code and contribute it there. https://github.com/Azure/azure-sdk-for-rust/issues/731
- Feedback on the unofficial rust SDK
- Has anyone built azure functions with Rust ? Functions with which you can say upload to a blob storage in azure ? Any GitHub repos / articles are appreciated!
-
What's everyone working on this week (9/2021)?
As for this week specifically, I'm trying to figure out the first bits of building a web service... aka authentication. Toying with Azure Active Directory right now, using the still-unofficial and incomplete Azure SDK for Rust. We'll see how that goes...
What are some alternatives?
httpmock - HTTP mocking for Golang
mp4 - MP4 library, CLI tool, server
gomock - GoMock is a mocking framework for the Go programming language.
field_names - proc-macro for accessing struct field names at runtime
go-sqlmock - Sql mock driver for golang to test database interactions
rustfuif - Performance & correctness oriented beursfuif implementation in rust
govcr - HTTP mock for Golang: record and replay HTTP/HTTPS interactions for offline testing
profligate - Caesar cipher library with automatic letter-frequency decryption.
httpexpect - End-to-end HTTP and REST API testing for Go.
objstor - object store
go-txdb - Immutable transaction isolated sql driver for golang
rust - Empowering everyone to build reliable and efficient software.