Cargo Features

[dependencies]
read-url = { version = "0.0.10", default-features = false, features = ["async", "blocking", "file", "git", "gzip", "http", "internal", "tar", "zip", "zstandard"] }
default = file, git, gzip, http, internal, tar, zip, zstandard

These default features are set whenever read-url is added without default-features = false somewhere in the dependency tree.

async

Enable async implementations.

Enables tokio, async of kutil

Affects url::AsyncReadRef, url::ConformFuture, url::OpenFuture, url::URL.conform_async, url::URL.open_async

blocking

Enable blocking implementations.

Enables blocking of kutil

Affects url::URL.conform, url::URL.open

file default

Enable file: URLs.

Affects read-url::file

git default = gix

Enable git: URLs.

Affects read-url::git

gzip default

Enable gzip for tar: URLs.

Enables flate2, gzip of async-compression

http default

Enable http: URLs.

Enables futures, reqwest ^0.12.24, and tokio

Affects context::UrlContext.http_client, read-url::http

internal default

Enable internal: URLs.

tar default

Enable tar: URLs.

Enables astral-tokio-tar and tar

astral-tokio-tar:

extra features:
most up-to-date tokio-compatible fork of async-tar?

Affects read-url::tar

zip default

Enable zip: URLs.

Enables positioned-io, rc-zip-sync, and rc-zip-tokio

rc-zip-sync:

extra features for both rc-zip? bzip2, deflate64, lzma, zstd

Affects read-url::zip

zstandard default

Enable Zstandard for tar: and zip: URLs.

Enables zstd, zstd of async-compression, rc-zip-sync, and rc-zip-tokio

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

gix git

Enables gix ^0.74.1