mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-08-05 18:18:37 +02:00
docs: cargo features (#3527)
* dialog * fs * geolocation * haptic * log * single instance * notification * updater * ## * persisted scopes * stronghold * sql * upload * websocket * http (this one was too long that I generated through codex, didn't review yet) * add change file * no persisted-scope-js * add `://` * Merge branch 'v2' into document-cargo-features * update system-proxy docs * finish http docs * notification doesn't need version bumps * clean up docs
This commit is contained in:
@@ -74,6 +74,7 @@ charset = ["reqwest/charset"]
|
||||
# Deprecated, switch to system-proxy
|
||||
macos-system-configuration = ["reqwest/macos-system-configuration"]
|
||||
system-proxy = ["reqwest/system-proxy"]
|
||||
|
||||
unsafe-headers = []
|
||||
tracing = ["dep:tracing"]
|
||||
dangerous-settings = []
|
||||
|
||||
@@ -3,6 +3,46 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
//! Access the HTTP client written in Rust.
|
||||
//!
|
||||
//! ## Cargo features
|
||||
//!
|
||||
//! ### Reqwest feature forwards
|
||||
//!
|
||||
//! These features forwards [`reqwest`](https://docs.rs/reqwest/0.12.28/reqwest/index.html) features:
|
||||
//!
|
||||
//! - **http2** *(enabled by default)*: Enables HTTP/2 support.
|
||||
//! - **native-tls**: Enables TLS functionality provided by native-tls.
|
||||
//! - **native-tls-vendored**: Enables the vendored feature of native-tls.
|
||||
//! - **native-tls-alpn**: Enables the alpn feature of native-tls.
|
||||
//! - **rustls-tls** *(enabled by default)*: Enables TLS functionality provided by rustls. Equivalent to
|
||||
//! rustls-tls-webpki-roots.
|
||||
//! - **rustls-tls-manual-roots**: Enables TLS functionality provided by rustls, without setting any root
|
||||
//! certificates. Roots have to be specified manually.
|
||||
//! - **rustls-tls-webpki-roots**: Enables TLS functionality provided by rustls, while using root certificates
|
||||
//! from the webpki-roots crate.
|
||||
//! - **rustls-tls-native-roots**: Enables TLS functionality provided by rustls, while using root certificates
|
||||
//! from the rustls-native-certs crate.
|
||||
//! - **blocking**: Provides the [blocking](https://docs.rs/reqwest/0.12.28/reqwest/blocking/index.html) client API.
|
||||
//! - **charset** *(enabled by default)*: Improved support for decoding text.
|
||||
//! - **cookies** *(enabled by default)*: Provides cookie session support.
|
||||
//! - **gzip**: Provides response body gzip decompression.
|
||||
//! - **brotli**: Provides response body brotli decompression.
|
||||
//! - **zstd**: Provides response body zstd decompression.
|
||||
//! - **deflate**: Provides response body deflate decompression.
|
||||
//! - **json**: Provides serialization and deserialization for JSON bodies.
|
||||
//! - **multipart**: Provides functionality for multipart forms.
|
||||
//! - **stream**: Adds support for futures::Stream.
|
||||
//! - **socks**: Provides SOCKS5 proxy support.
|
||||
//! - **trust-dns**: Enables a trust-dns/Hickory DNS async resolver instead of the default threadpool using
|
||||
//! getaddrinfo.
|
||||
//! - **macos-system-configuration** *(deprecated, use `system-proxy` instead)*: Use Windows and macOS system proxy settings automatically.
|
||||
//! - **system-proxy** *(enabled by default)*: Use Windows and macOS system proxy settings automatically.
|
||||
//!
|
||||
//! ### tauri-plugin-http features
|
||||
//!
|
||||
//! - **tracing**: Adds request, response, and cookie-store diagnostics through `tracing`.
|
||||
//! - **unsafe-headers**: Allows webview requests to send any headers.
|
||||
//! - **dangerous-settings**: Allows dangerous client settings such as accepting invalid certificates or hostnames.
|
||||
|
||||
pub use reqwest;
|
||||
use tauri::{
|
||||
|
||||
Reference in New Issue
Block a user