rustify
rustify copied to clipboard
A Rust library for interacting with HTTP API endpoints
Rust [RFC 3373: Avoid non-local definitions in functions](https://github.com/rust-lang/rfcs/pull/3373) was accepted and it's implementation at https://github.com/rust-lang/rust/pull/120393 found that this crate would be affected by it. To be more precise users of...
[The documentation strongly suggests that the content-type is set to JSON](https://github.com/jmgilman/rustify/blob/68fdbdb848b012f1116b972900dca23cde260e0e/src/lib.rs#L70-L71), but this doesn't happen anywhere! We're using the following middleware … but it would be nice if it was...
* adding reqwest middleware for extended configuration on the caller's side
* Modules don't need to exist as (tiny) files. * Enums without a non-exhaustive attribute may as well be changed to be copyable. * `to_vec` copies, but `into` can reuse...
This provides support for performing OAuth 2.0 Bearer Token Authorization ([RFC 6750](https://datatracker.ietf.org/doc/html/rfc6750)) by setting an `Authorization` header to a fixed token value within the client. While it is true that...
When testing my middleware in another project I noticed that `rustify` will sometimes produce extraneous `//` in the `Uri` produced by `http::build_url()`. This is due to some unhandled cases where...
This updates `rustify_derive` to remove the block expression that the `impl Endpoint` was wrapped in. This resolves an issue where `rust-analyzer` is unable to infer the type of `Endpoint::Response` in...
When trying out `rustify` and `rustify_derive` I noticed that `rust-analyzer` (in my editor) was failing to infer my response types specified via `Endpoint::Response` for my endpoints. ## Symptoms After defining...
If you try to build this crate with `default-features = false`, you get this: ``` error[E0432]: unresolved import `crate::clients::reqwest` --> src/lib.rs:238:14 | 238 | clients::reqwest::Client, | ^^^^^^^ could not find...
I am trying to convert some code to use rustify and i cannot find a way to add `basic_auth`. I can use Middleware to add headers (like content-type) but it...