Skip to content

Commit

Permalink
Bump sqlite-wasm-rs version to 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Spxg committed Jan 9, 2025
1 parent b86c541 commit c47f627
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion diesel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ path = "../diesel_derives"
libsqlite3-sys = { version = ">=0.17.2, <0.31.0", optional = true, features = ["bundled_bindings"] }

[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies]
sqlite-wasm-rs = { version = "0.1.1", optional = true }
sqlite-wasm-rs = { version = ">=0.1.2", optional = true }

[dev-dependencies]
cfg-if = "1"
Expand Down
12 changes: 8 additions & 4 deletions diesel/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -768,13 +768,17 @@ pub mod prelude {
#[cfg(feature = "sqlite")]
#[doc(inline)]
pub use crate::sqlite::SqliteConnection;
// Before using C-API, you must initialize sqlite.

// These exported APIs from `sqlite-wasm-rs` are stable:
//
// `async fn init_sqlite()`: before using C-API, you must initialize sqlite, once.
//
// `fn sqlite()`: get the sqlite instance
//
// Initializing the database is a one-time operation during
// the life of the program.
// `SQLiteError`: initializing instance and other possible errors
#[cfg(feature = "sqlite")]
#[cfg(all(target_family = "wasm", target_os = "unknown"))]
pub use sqlite_wasm_rs::init_sqlite;
pub use sqlite_wasm_rs::{init_sqlite, sqlite, SQLiteError};
}

#[doc(inline)]
Expand Down
4 changes: 2 additions & 2 deletions diesel_compile_tests/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c47f627

Please sign in to comment.