-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
65 lines (56 loc) · 2.01 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
62
63
64
[package]
name = "diesel-wasm-sqlite"
version = "0.0.1"
edition = "2021"
resolver = "2"
authors = ["XMTP Labs <[email protected]>"]
description = "SQLite WebAssembly backend for Diesel"
homepage = "https://xmtp.org/"
repository = "https://github.com/xmtp/libxmtp"
license = "MIT"
keywords = ["orm", "database", "sql", "wasm"]
categories = ["database", "wasm"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
targets = ["wasm32-unknown-unknown"]
[dependencies]
talc = { version = "4.4", default-features = false, features = ["lock_api"] }
diesel = { version = "2.2", features = ["i-implement-a-third-party-backend-and-opt-into-breaking-changes"] }
diesel_derives = "2.2"
wasm-bindgen = "=0.2.95"
wasm-bindgen-futures = "0.4"
js-sys = { version = "0.3" }
tracing = { version = "0.1", default-features = false }
tokio = { version = "1.38", default-features = false, features = ["sync"] }
serde = { version = "1.0", default-features = false, features = ["derive"] }
serde-wasm-bindgen = "0.6"
thiserror = "1"
[dev-dependencies]
wasm-bindgen-test = "=0.3.45"
console_error_panic_hook = { version = "0.1"}
rand = "0.8"
getrandom = { version = "0.2", features = ["js"] }
web-sys = { version = "0.3", features = ["console"] }
chrono = { version = "0.4", features = ["wasmbind", "serde"] }
diesel_migrations = "2.2"
diesel = { version = "2.2", features = ["chrono"]}
tracing-wasm = { version = "0.2" }
tracing-subscriber = { version = "0.3", features = ["env-filter", "tracing-log"] }
[patch.crates-io]
diesel = { git = "https://github.com/diesel-rs/diesel", branch = "master" }
diesel_derives = { git = "https://github.com/diesel-rs/diesel", branch = "master" }
diesel_migrations = { git = "https://github.com/diesel-rs/diesel", branch = "master" }
[profile.release]
opt-level = "s"
lto = true
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = []
r2d2 = ["diesel/r2d2"]
# enables a `DebugQueryWrapper` for diesel
# but is unsafe because of mem::transmute
unsafe-debug-query = []
[build]
target = "wasm32-unknown-unknown"