forked from devashishdxt/rexie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
61 lines (56 loc) · 1.72 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[package]
name = "rexie"
version = "0.4.2"
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"
homepage = "https://github.com/devashishdxt/rexie"
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"]
edition = "2021"
[lib]
path = "src/lib.rs"
crate-type = ["cdylib", "rlib"]
[features]
default = ["console_error_panic_hook", "js"]
js = ["wasm-bindgen-futures"]
[dependencies]
console_error_panic_hook = { version = "0.1.7", optional = true }
js-sys = "0.3.58"
num-traits = { version = "0.2.15", default-features = false }
thiserror = "1.0.31"
tokio = { version = "1.19.2", default-features = false, features = ["sync"] }
wasm-bindgen = "0.2.81"
wasm-bindgen-futures = { version = "0.4.31", optional = true }
web-sys = { version = "0.3.58", features = [
"DomException",
"DomStringList",
"Event",
"IdbCursorWithValue",
"IdbCursorDirection",
"IdbDatabase",
"IdbFactory",
"IdbIndex",
"IdbIndexParameters",
"IdbKeyRange",
"IdbObjectStore",
"IdbObjectStoreParameters",
"IdbOpenDbRequest",
"IdbOpenDbOptions",
"IdbRequest",
"IdbTransaction",
"IdbTransactionMode",
"StorageType",
] }
wee_alloc = { version = "0.4.5", optional = true }
[dev-dependencies]
serde = { version = "1.0.137", features = ["derive"] }
serde_json = "1.0.81"
serde-wasm-bindgen = "0.4.3"
wasm-bindgen-test = "0.3.31"
[profile.release]
# Tell `rustc` to optimize for small code size.
opt-level = "s"