-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
36e2438
commit 2533d98
Showing
7 changed files
with
114 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "rexie" | ||
version = "0.5.0" | ||
version = "0.6.0" | ||
authors = ["Devashish Dixit <[email protected]>"] | ||
license = "MIT/Apache-2.0" | ||
description = "Rexie is an easy-to-use, futures based wrapper around IndexedDB that compiles to webassembly" | ||
|
@@ -9,15 +9,21 @@ repository = "https://github.com/devashishdxt/rexie" | |
categories = ["asynchronous", "database", "wasm", "web-programming"] | ||
keywords = ["wasm", "indexeddb", "futures", "idb", "indexed"] | ||
readme = "README.md" | ||
include = ["Cargo.toml", "src/**/*.rs", "tests/**/*.rs", "README.md"] | ||
include = [ | ||
"Cargo.toml", | ||
"src/**/*.rs", | ||
"tests/**/*.rs", | ||
"README.md", | ||
"LICENSE_*", | ||
] | ||
edition = "2021" | ||
|
||
[lib] | ||
path = "src/lib.rs" | ||
crate-type = ["cdylib", "rlib"] | ||
|
||
[dependencies] | ||
idb = { version = "0.6.1", features = ["builder"] } | ||
idb = { version = "0.6.2", features = ["builder"] } | ||
thiserror = "1.0.61" | ||
wasm-bindgen = "0.2.92" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -342,10 +342,6 @@ async fn test_db_duplicate_add_fail() { | |
// Write a duplicate value (with same email) to the database. | ||
let id = add_employee(&rexie, "John Doe New", "[email protected]").await; | ||
assert!(id.is_err()); | ||
let err = id.unwrap_err(); | ||
assert!(err | ||
.to_string() | ||
.starts_with("failed to execute indexed db request: ConstraintError")); | ||
|
||
close_and_delete_db(rexie).await; | ||
} | ||
|