Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this crate on several OS like windows, ubuntu and etc? #357

Closed
YukiShiro1226 opened this issue Jan 23, 2025 · 1 comment
Closed

Comments

@YukiShiro1226
Copy link

No description provided.

@0x676e67
Copy link
Owner

0x676e67 commented Jan 24, 2025

You can find the compiled example here: https://github.com/0x676e67/rquest/blob/main/.github/compilation-guide/build.yml

Its API is almost the same as reqwest, except for TLS, and the original base is extended with more practical methods

The client is designed to be consistent with the client of reqwest. You don't have to wrap Client in [Rc] or [Arc] to reuse it, since it already uses [Arc] internally, you only need to clone and reuse it. Here are some examples of errors that some users made when using the Client: https://github.com/hominsu/deeplx-rs/blob/3e9a9078dc13255b0aca908c5f6648dc14bee7c4/src/skeleton/translate.rs#L140

For documentation:

/// You do **not** have to wrap the `Client` in an [`Rc`] or [`Arc`] to **reuse** it,

You can view more documents and examples to learn how to use other APIs

@0x676e67 0x676e67 pinned this issue Jan 24, 2025
@0x676e67 0x676e67 unpinned this issue Jan 26, 2025
@0x676e67 0x676e67 pinned this issue Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants