Cargo Features
[dependencies]
libsql = { version = "0.3.5", default-features = false, features = ["core", "stream", "parser", "replication", "hrana", "serde", "remote", "wasm", "cloudflare", "encryption"] }
- default = core, remote, replication
-
These default features are set whenever
libsql
is added without
somewhere in the dependency tree.default-features = false - 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, hyper-rustls ^0.25, libsql_replication, parking_lot, tokio, tokio-stream, tonic, tonic-web, tower, tower-http ^0.4.4, uuid, and zerocopy
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, hyper-rustls ^0.25, tokio, and tower
- wasm cloudflare? = hrana
- cloudflare = wasm
-
Enables worker ^0.0.18
- encryption = core
-
Enables bytes, encryption of libsql-sys
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.