Cargo Features
[dependencies]
libsql = { version = "0.9.30", default-features = false, features = ["core", "stream", "parser", "replication", "sync", "hrana", "serde", "remote", "wasm", "cloudflare", "encryption", "tls"] }
- default = core, remote, replication, sync, tls
-
These default features are set whenever
libsqlis added withoutsomewhere in the dependency tree.default-features = false - core default encryption? replication sync = libsql-sys
-
Enables bitflags, bytes, futures, and parking_lot
Affects
errors::error_from_code,errors::sqlite_errmsg_to_string… - stream hrana? replication sync
-
Enables async-stream and futures
- parser hrana? replication sync
-
Enables fallible-iterator and libsql-sqlite3-parser
- replication default sync = core, parser, serde, stream
-
Enables anyhow, bincode ^1, 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… - sync default = core, parser, remote, replication, serde, stream
-
Enables tower ^0.4.13, uuid, and zerocopy ^0.7.28, base64 ^0.21, bytes, chrono, crc32fast, futures, http ^0.2, hyper ^0.14, and serde_json, fs of tokio
Affects
database::Database.sync_ctx,database::EncryptionKey,database::EncryptionContext… - hrana remote wasm? = parser, serde, stream
-
Enables base64 ^0.21, bytes, futures, libsql-hrana, serde_json, tokio, and tokio-util
- serde hrana? replication sync
-
Enables serde
Affects
libsql::de… - remote default sync = hrana
-
Enables base64 ^0.21, bitflags, futures, http ^0.2, hyper ^0.14, tokio, and tower ^0.4.13
Affects
database::EncryptionKey,database::EncryptionContext… - wasm cloudflare? = hrana
- cloudflare = wasm
-
Enables worker ^0.6.7
- 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.