Cargo Features

[dependencies]
libsql = { version = "0.6.0", default-features = false, features = ["core", "stream", "parser", "replication", "hrana", "serde", "remote", "wasm", "cloudflare", "encryption", "tls"] }
default = core, remote, replication, tls

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

core default encryption? replication = libsql-sys

Enables bitflags, bytes, and futures

Affects errors::error_from_code, errors::sqlite_errmsg_to_string

stream hrana? replication

Enables async-stream and futures

parser hrana? replication

Enables fallible-iterator and libsql-sqlite3-parser

replication default = core, parser, serde, stream

Enables anyhow, bincode, bytes, futures, http ^0.2, hyper ^0.14, libsql_replication, parking_lot, tokio, tokio-stream, tonic ^0.11, tonic-web ^0.11, tower ^0.4.13, tower-http ^0.4.4, uuid, and zerocopy ^0.7.28

Affects database::Database.replication_ctx, http::HttpRequestCallback

hrana remote wasm? = parser, serde, stream

Enables base64 ^0.21, bytes, futures, libsql-hrana, serde_json, tokio, and tokio-util

serde hrana? replication

Enables serde

Affects libsql::de

remote default = hrana

Enables bitflags, futures, http ^0.2, hyper ^0.14, tokio, and tower ^0.4.13

wasm cloudflare? = hrana
cloudflare = wasm

Enables worker ^0.2.0

encryption = core

Enables bytes, encryption of libsql-sys

tls default

Enables hyper-rustls ^0.25

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.

libsql-sys core encryption?