Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ All database operations use a closure-based API (e.g., `conn(|conn| { ... })`) t

## Features

All Cargo features are pass-through to `rusqlite`. The `bundled` feature (default) bundles SQLite. The library re-exports `rusqlite` for downstream use.
All Cargo features are pass-through to `rusqlite`. The `rusqlite` dependency has `default-features = false`; async-sqlite explicitly defaults to `bundled` plus rusqlite's `cache` and `ffi-sqlite-wasm-rs` defaults. The library re-exports `rusqlite` for downstream use.

## Testing

Expand Down
13 changes: 11 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ keywords = ["sqlite", "sqlite3", "rusqlite", "async", "tokio"]
categories = ["database"]

[features]
default = ["bundled"]
default = ["bundled", "cache", "ffi-sqlite-wasm-rs"]
array = ["rusqlite/array"]
backup = ["rusqlite/backup"]
blob = ["rusqlite/blob"]
Expand All @@ -22,17 +22,26 @@ bundled-sqlcipher = ["rusqlite/bundled-sqlcipher"]
bundled-sqlcipher-vendored-openssl = [
"rusqlite/bundled-sqlcipher-vendored-openssl",
]
cache = ["rusqlite/cache"]
chrono = ["rusqlite/chrono"]
collation = ["rusqlite/collation"]
column_decltype = ["rusqlite/column_decltype"]
column_metadata = ["rusqlite/column_metadata"]
csv = ["rusqlite/csv"]
csvtab = ["rusqlite/csvtab"]
fallible_uint = ["rusqlite/fallible_uint"]
ffi-sqlite-wasm-rs = ["rusqlite/ffi-sqlite-wasm-rs"]
functions = ["rusqlite/functions"]
hooks = ["rusqlite/hooks"]
i128_blob = ["rusqlite/i128_blob"]
jiff = ["rusqlite/jiff"]
limits = ["rusqlite/limits"]
load_extension = ["rusqlite/load_extension"]
modern-full = ["rusqlite/modern-full"]
preupdate_hook = ["rusqlite/preupdate_hook"]
serde_json = ["rusqlite/serde_json"]
serialize = ["rusqlite/serialize"]
series = ["rusqlite/series"]
session = ["rusqlite/session"]
sqlcipher = ["rusqlite/sqlcipher"]
time = ["rusqlite/time"]
Expand All @@ -47,7 +56,7 @@ window = ["rusqlite/window"]
crossbeam-channel = { version = "0.5" }
futures-channel = { version = "0.3" }
futures-util = { version = "0.3" }
rusqlite = { version = "0.40.0" }
rusqlite = { version = "0.40.0", default-features = false }

[dev-dependencies]
paste = { version = "1.0.12" }
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ println!("Value is: {value}");
This library tries to export almost all features that the underlying
[rusqlite](https://docs.rs/rusqlite/latest/rusqlite/) library contains.

A notable difference is that the `bundled` feature is **enabled** by default,
but can be disabled with the following line in your Cargo.toml:
A notable difference is that the `bundled` feature is **enabled** by default
alongside rusqlite's `cache` and `ffi-sqlite-wasm-rs` defaults. These defaults
can be disabled with the following line in your Cargo.toml:

```toml
async-sqlite = { version = "*", default-features = false }
Expand Down
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@
//! This library tries to export almost all features that the underlying
//! [rusqlite](https://docs.rs/rusqlite/latest/rusqlite/) library contains.
//!
//! A notable difference is that the `bundled` feature is **enabled** by default,
//! but can be disabled with the following line in your Cargo.toml:
//! A notable difference is that the `bundled` feature is **enabled** by default
//! alongside rusqlite's `cache` and `ffi-sqlite-wasm-rs` defaults. These defaults
//! can be disabled with the following line in your Cargo.toml:
//!
//! ```toml
//! async-sqlite = { version = "*", default-features = false }
Expand Down
Loading