Skip to content

Commit 71ca43a

Browse files
committed
make sqld compile
1 parent 18cf448 commit 71ca43a

File tree

155 files changed

+4915
-1631
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+4915
-1631
lines changed
File renamed without changes.

Cargo.lock

Lines changed: 4729 additions & 1588 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ members = [
66
"bindings/wasm",
77
"libsql-sys",
88
"libsql-shell",
9+
"libsql-server",
10+
"bottomless",
11+
"bottomless-cli",
12+
"libsql-sys-tmp",
13+
14+
"vendored/rusqlite",
15+
"vendored/rusqlite/libsqlite3-sys",
916
]
1017

1118
[profile.release]
@@ -14,3 +21,33 @@ panic = "abort"
1421

1522
[patch.crates-io]
1623
sqlite3-parser = { git = "https://github.com/LucioFranco/lemon-rs" }
24+
25+
[workspace.dependencies]
26+
rusqlite = { path = "vendored/rusqlite", version = "0.29", default-features = false, features = [
27+
"libsql-experimental",
28+
"column_decltype",
29+
"load_extension",
30+
"modern_sqlite"
31+
] }
32+
33+
# Config for 'cargo dist'
34+
[workspace.metadata.dist]
35+
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
36+
cargo-dist-version = "0.2.0-prerelease.6"
37+
# CI backends to support (see 'cargo dist generate-ci')
38+
ci = ["github"]
39+
# The installers to generate for each app
40+
installers = ["shell", "homebrew"]
41+
# A GitHub repo to push Homebrew formulas to
42+
tap = "libsql/homebrew-sqld"
43+
# Target platforms to build apps for (Rust target-triple syntax)
44+
targets = ["x86_64-unknown-linux-gnu", "x86_64-apple-darwin", "aarch64-apple-darwin"]
45+
# Publish jobs to run in CI
46+
publish-jobs = ["homebrew"]
47+
# Whether cargo-dist should create a Github Release or use an existing draft
48+
create-release = false
49+
50+
# The profile that 'cargo dist' will build with
51+
[profile.dist]
52+
inherits = "release"
53+
lto = "thin"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

_libsql-server/Cargo.toml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
[workspace]
2+
3+
resolver = "2"
4+
members = [
5+
"bottomless",
6+
"bottomless-cli",
7+
"sqld",
8+
"sqld-libsql-bindings",
9+
]
10+
11+
[workspace.dependencies]
12+
rusqlite = { version = "0.29.0", git = "https://github.com/tursodatabase/rusqlite.git", rev = "a72d529", default-features = false, features = [
13+
"buildtime_bindgen",
14+
"bundled-libsql-experimental",
15+
"column_decltype",
16+
"load_extension",
17+
"modern_sqlite"
18+
] }
19+
20+
# Config for 'cargo dist'
21+
[workspace.metadata.dist]
22+
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
23+
cargo-dist-version = "0.2.0-prerelease.6"
24+
# CI backends to support (see 'cargo dist generate-ci')
25+
ci = ["github"]
26+
# The installers to generate for each app
27+
installers = ["shell", "homebrew"]
28+
# A GitHub repo to push Homebrew formulas to
29+
tap = "libsql/homebrew-sqld"
30+
# Target platforms to build apps for (Rust target-triple syntax)
31+
targets = ["x86_64-unknown-linux-gnu", "x86_64-apple-darwin", "aarch64-apple-darwin"]
32+
# Publish jobs to run in CI
33+
publish-jobs = ["homebrew"]
34+
# Whether cargo-dist should create a Github Release or use an existing draft
35+
create-release = false
36+
37+
[patch.crates-io]
38+
sqlite3-parser = { git = "https://github.com/LucioFranco/lemon-rs" }
39+
40+
# The profile that 'cargo dist' will build with
41+
[profile.dist]
42+
inherits = "release"
43+
lto = "thin"
44+
45+
File renamed without changes.
File renamed without changes.
File renamed without changes.

libsql-server/bottomless/Cargo.toml renamed to bottomless/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ aws-sdk-s3 = { version = "0.28" }
1616
bytes = "1"
1717
crc = "3.0.0"
1818
futures = { version = "0.3.25" }
19-
sqld-libsql-bindings = { version = "0", path = "../sqld-libsql-bindings" }
19+
sqld-libsql-bindings = { version = "0", path = "../libsql-sys-tmp" }
2020
tokio = { version = "1.22.2", features = ["rt-multi-thread", "net", "io-std", "io-util", "time", "macros", "sync", "fs"] }
2121
tokio-util = "0.7"
2222
tracing = "0.1.37"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

data.sqld/.version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.21.9

data.sqld/dbs/default/data

8 KB
Binary file not shown.

data.sqld/dbs/default/data-shm

32 KB
Binary file not shown.

data.sqld/dbs/default/data-wal

Whitespace-only changes.

data.sqld/dbs/default/stats.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"rows_written":0,"rows_read":0,"storage_bytes_used":8192,"write_requests_delegated":0,"current_frame_no":0}

data.sqld/dbs/default/wallog

64 Bytes
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.

libsql-server/Cargo.toml

Lines changed: 98 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,104 @@
1-
[workspace]
1+
[package]
2+
name = "sqld"
3+
version = "0.21.9"
4+
edition = "2021"
5+
default-run = "sqld"
26

3-
resolver = "2"
4-
members = [
5-
"bottomless",
6-
"bottomless-cli",
7-
"sqld",
8-
"sqld-libsql-bindings",
9-
]
7+
[dependencies]
8+
anyhow = "1.0.66"
9+
async-lock = "2.6.0"
10+
async-trait = "0.1.58"
11+
axum = { version = "0.6.18", features = ["headers"] }
12+
axum-extra = "0.7"
13+
base64 = "0.21.0"
14+
bincode = "1.3.3"
15+
bottomless = { version = "0", path = "../bottomless", features = ["libsql_linked_statically"] }
16+
bytemuck = { version = "1.13.0", features = ["derive"] }
17+
bytes = { version = "1.2.1", features = ["serde"] }
18+
bytesize = { version = "1.2.0", features = ["serde"] }
19+
clap = { version = "4.0.23", features = [ "derive", "env", "string" ] }
20+
# console-subscriber = { version = "0.1.10", optional = true }
21+
console-subscriber = { git = "https://github.com/tokio-rs/console.git", rev = "5a80b98", optional = true }
22+
crc = "3.0.0"
23+
crossbeam = "0.8.2"
24+
enclose = "1.1"
25+
fallible-iterator = "0.3.0"
26+
futures = "0.3.25"
27+
futures-core = "0.3"
28+
hmac = "0.12"
29+
hyper = { version = "0.14.23", features = ["http2"] }
30+
hyper-tungstenite = "0.10"
31+
itertools = "0.10.5"
32+
jsonwebtoken = "8.2.0"
33+
memmap = "0.7.0"
34+
mimalloc = { version = "0.1.36", default-features = false }
35+
nix = { version = "0.26.2", features = ["fs"] }
36+
once_cell = "1.17.0"
37+
parking_lot = "0.12.1"
38+
pin-project-lite = "0.2.13"
39+
priority-queue = "1.3"
40+
prost = "0.12"
41+
rand = "0.8"
42+
regex = "1.7.0"
43+
reqwest = { version = "0.11.16", features = ["json", "rustls-tls"], default-features = false }
44+
rusqlite = { workspace = true }
45+
semver = "1.0.18"
46+
serde = { version = "1.0.149", features = ["derive", "rc"] }
47+
serde_json = { version = "1.0.91", features = ["preserve_order"] }
48+
sha2 = "0.10"
49+
sha256 = "1.1.3"
50+
sqld-libsql-bindings = { version = "0", path = "../libsql-sys-tmp" }
51+
sqlite3-parser = { version = "0.11.0", default-features = false, features = [ "YYNOERRORRECOVERY" ] }
52+
tempfile = "3.3.0"
53+
thiserror = "1.0.38"
54+
tokio = { version = "1.22.2", features = ["rt-multi-thread", "net", "io-std", "io-util", "time", "macros", "sync", "fs", "signal"] }
55+
tokio-stream = "0.1.11"
56+
tokio-tungstenite = "0.19"
57+
tokio-util = { version = "0.7.8", features = ["io", "io-util"] }
58+
tonic = { version = "0.10.0", features = ["tls"] }
59+
tonic-web = "0.10"
60+
tower = { version = "0.4.13", features = ["make"] }
61+
tower-http = { version = "0.3.5", features = ["compression-full", "cors", "trace"] }
62+
tracing = "0.1.37"
63+
tracing-panic = "0.1"
64+
tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
65+
url = { version = "2.3", features = ["serde"] }
66+
uuid = { version = "1.3", features = ["v4", "serde"] }
67+
chrono = { version = "0.4.26", features = ["serde"] }
68+
# hyper-rustls = "0.24.1"
69+
hyper-rustls = { git = "https://github.com/rustls/hyper-rustls.git", rev = "163b3f5" }
70+
rustls-pemfile = "1.0.3"
71+
rustls = "0.21.7"
72+
async-stream = "0.3.5"
73+
libsql = { git = "https://github.com/tursodatabase/libsql", rev = "8847ca05c", optional = true }
74+
metrics = "0.21.1"
75+
metrics-exporter-prometheus = "0.12.1"
1076

11-
[workspace.dependencies]
12-
rusqlite = { version = "0.29.0", git = "https://github.com/tursodatabase/rusqlite.git", rev = "a72d529", default-features = false, features = [
13-
"buildtime_bindgen",
14-
"bundled-libsql-experimental",
15-
"column_decltype",
16-
"load_extension",
17-
"modern_sqlite"
18-
] }
77+
[dev-dependencies]
78+
proptest = "1.0.0"
79+
rand = "0.8.5"
80+
tempfile = "3.3.0"
81+
insta = { version = "1.26.0", features = ["json"] }
82+
arbitrary = { version = "1.3.0", features = ["derive_arbitrary"] }
83+
libsql-client = { version = "0.6.5", default-features = false, features = ["reqwest_backend"] }
84+
url = "2.3"
85+
env_logger = "0.10"
86+
aws-config = "0.55"
87+
aws-sdk-s3 = "0.28"
88+
turmoil = "0.5.6"
89+
hyper = { version = "0.14", features = ["client"] }
1990

20-
# Config for 'cargo dist'
21-
[workspace.metadata.dist]
22-
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
23-
cargo-dist-version = "0.2.0-prerelease.6"
24-
# CI backends to support (see 'cargo dist generate-ci')
25-
ci = ["github"]
26-
# The installers to generate for each app
27-
installers = ["shell", "homebrew"]
28-
# A GitHub repo to push Homebrew formulas to
29-
tap = "libsql/homebrew-sqld"
30-
# Target platforms to build apps for (Rust target-triple syntax)
31-
targets = ["x86_64-unknown-linux-gnu", "x86_64-apple-darwin", "aarch64-apple-darwin"]
32-
# Publish jobs to run in CI
33-
publish-jobs = ["homebrew"]
34-
# Whether cargo-dist should create a Github Release or use an existing draft
35-
create-release = false
91+
[build-dependencies]
92+
prost-build = "0.12.0"
93+
protobuf-src = "1.1.0"
94+
tonic-build = "0.10"
95+
vergen = { version = "8", features = ["build", "git", "gitcl"] }
3696

37-
[patch.crates-io]
38-
sqlite3-parser = { git = "https://github.com/LucioFranco/lemon-rs" }
39-
40-
# The profile that 'cargo dist' will build with
41-
[profile.dist]
42-
inherits = "release"
43-
lto = "thin"
97+
[features]
98+
default = ["wasm-udfs"]
99+
unix-excl-vfs = ["sqld-libsql-bindings/unix-excl-vfs"]
100+
debug-tools = ["console-subscriber", "rusqlite/trace", "tokio/tracing"]
101+
sim-tests = ["libsql"]
102+
wasm-udfs = ["rusqlite/libsql-wasm-experimental"]
44103

45104

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

libsql-shell/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ anyhow = "1.0.69"
1313
base64 = "0.21.0"
1414
clap = { version = "4.1.8", features = [ "derive", "env"] }
1515
home = "0.5.4"
16-
rusqlite = "0.28.0"
16+
rusqlite = { workspace = true }
1717
rustyline = "11.0.0"
1818
rustyline-derive = "0.9.0"
1919
tabled = "0.12.2"
File renamed without changes.

vendored/rusqlite/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ maintenance = { status = "actively-developed" }
2929
[lib]
3030
name = "rusqlite"
3131

32-
[workspace]
33-
members = ["libsqlite3-sys"]
32+
# [workspace]
33+
# members = ["libsqlite3-sys"]
3434

3535
[features]
3636
load_extension = []

0 commit comments

Comments
 (0)