-
Notifications
You must be signed in to change notification settings - Fork 32
/
Cargo.toml
76 lines (67 loc) · 1.98 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
[package]
name = "libsql-client"
version = "0.34.0"
edition = "2021"
license = "Apache-2.0"
description = "HTTP-based client for libSQL and sqld"
keywords = ["libsql", "sqld", "database", "driver", "http"]
repository = "https://github.com/libsql/libsql-client-rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
url = "2.3.1"
base64 = "0.21.0"
num-traits = "0.2.15"
serde_json = "1.0.91"
worker = { version = "0.0.18", optional = true }
spin-sdk = { version = "2.1", default-features = false, features = [
"http",
"json",
], optional = true }
sqlite3-parser = { version = "0.12.0", default-features = false, features = [
"YYNOERRORRECOVERY",
] }
http = { version = "0.2", optional = true }
bytes = { version = "1.4.0", optional = true }
anyhow = "1.0.69"
reqwest = { version = "0.11.14", optional = true, default-features = false, features = [
"rustls-tls",
] }
hrana-client = { version = "0.3", optional = true }
hrana-client-proto = { version = "0.2" }
futures-util = { version = "0.3.21", optional = true }
serde = "1.0.159"
tracing = "0.1.37"
futures = "0.3.28"
fallible-iterator = "0.3.0"
libsql = { version = "=0.1.8", optional = true }
[features]
default = [
"local_backend",
"hrana_backend",
"reqwest_backend",
"mapping_names_to_values_in_rows",
]
workers_backend = ["worker", "futures-util"]
reqwest_backend = ["reqwest"]
local_backend = ["libsql"]
spin_backend = ["spin-sdk", "http", "bytes"]
hrana_backend = ["hrana-client"]
separate_url_for_queries = []
mapping_names_to_values_in_rows = []
[dev-dependencies]
tokio = { version = "1", features = ["full"] }
libsql-client = { path = "." }
rand = "0.8.5"
tracing-subscriber = "0.3.17"
[package.metadata.docs.rs]
all-features = true
[[example]]
name = "select"
path = "examples/select.rs"
[[example]]
name = "connect_from_env"
path = "examples/connect_from_env.rs"
[[example]]
name = "connect_from_config"
path = "examples/connect_from_config.rs"
[workspace]