-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
78 lines (70 loc) · 2 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[package]
name = "logseq-sqlite"
version = "0.1.7"
edition = "2021"
authors = ["Andelf <[email protected]>"]
repository = "https://github.com/logseq/logseq-db"
documentation = "https://docs.rs/logseq-sqlite"
homepage = "https://github.com/logseq/logseq-db"
categories = []
description = "@logseq/sqlite db wrapper"
keywords = []
readme = "README.md"
license = "AGPL-3.0-or-later"
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = ["console_error_panic_hook"]
[dependencies]
js-sys = "0.3.65"
wasm-bindgen = "0.2.88"
web-sys = { version = "0.3.65", features = [
"console",
"FileSystemHandle",
"FileSystemHandleKind",
"FileSystemFileHandle",
"FileSystemEntry",
"File",
"FileSystem",
"FileReader",
"Navigator",
"StorageManager",
"TextEncoder",
"TextDecoder",
"Window",
"Worker",
"WorkerGlobalScope",
"WorkerNavigator",
"FileSystemDirectoryHandle",
"FileSystemGetFileOptions",
"FileSystemSyncAccessHandle",
"FileSystemReadWriteOptions",
"BroadcastChannel",
"AddEventListenerOptions",
"EventTarget",
"EventListener",
"Event",
] }
# The `console_error_panic_hook` crate provides better debugging of panics by
# logging them with `console.error`. This is great for development, but requires
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
# code size when deploying.
console_error_panic_hook = { version = "0.1.7", optional = true }
wasm-bindgen-futures = "0.4.38"
getrandom = { version = "0.2", features = ["js"] }
uuid = { version = "1.5.0", features = ["v4"] }
once_cell = "1.18.0"
serde = { version = "1.0.193", features = ["derive"] }
serde-wasm-bindgen = "0.6.0"
rusqlite = { version = "0.29.0", features = ["bundled"] }
libsqlite3-sys = { path = "./libsqlite3-sys", features = ["bundled"] }
serde_json = "1.0.108"
bincode = "1.3.3"
[profile.release]
opt-level = "s"
lto = true
debug = true
[dev-dependencies]
wasm-bindgen-test = "0.3.37"
[patch.crates-io]
libsqlite3-sys = { path = "./libsqlite3-sys" }