Skip to content

Commit 4210a5d

Browse files
authored
Improve project package manifests (#1995)
2 parents d27ba2e + 78b90d5 commit 4210a5d

6 files changed

Lines changed: 49 additions & 40 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
[workspace]
22
resolver = "2"
33
members = [
4-
"libsql",
54
"bindings/c",
65
"bindings/wasm",
7-
"libsql-sys",
8-
"libsql-server",
96
"bottomless",
107
"bottomless-cli",
11-
"libsql-replication",
8+
"libsql",
129
"libsql-ffi",
1310
"libsql-hrana",
14-
11+
"libsql-replication",
12+
"libsql-server",
13+
"libsql-sys",
1514
"vendored/rusqlite",
1615
"vendored/sqlite3-parser",
17-
18-
"xtask", "libsql-hrana",
16+
"xtask",
1917
]
2018

2119
exclude = [
@@ -26,11 +24,17 @@ exclude = [
2624
"tools/fuzz",
2725
]
2826

29-
[profile.release]
30-
codegen-units = 1
31-
panic = "unwind"
27+
[workspace.package]
28+
version = "0.9.0"
29+
authors = ["the libSQL authors"]
30+
edition = "2021"
31+
license = "MIT"
32+
repository = "https://github.com/tursodatabase/libsql"
3233

3334
[workspace.dependencies]
35+
libsql-sys = { path = "libsql-sys", version = "0.9.0", default-features = false }
36+
libsql-hrana = { path = "libsql-hrana", version = "0.9.0" }
37+
libsql_replication = { path = "libsql-replication", version = "0.9.0" }
3438
rusqlite = { package = "libsql-rusqlite", path = "vendored/rusqlite", version = "0.33", default-features = false, features = [
3539
"libsql-experimental",
3640
"column_decltype",
@@ -44,6 +48,10 @@ hyper = { version = "0.14" }
4448
tower = { version = "0.4.13" }
4549
zerocopy = { version = "0.7.32", features = ["derive", "alloc"] }
4650

51+
[profile.release]
52+
codegen-units = 1
53+
panic = "unwind"
54+
4755
# Config for 'cargo dist'
4856
[workspace.metadata.dist]
4957
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)

libsql-hrana/Cargo.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
[package]
22
name = "libsql-hrana"
3-
version = "0.2.0"
4-
edition = "2021"
5-
license = "MIT"
6-
description = "hrana protocol for libsql"
3+
version.workspace = true
4+
authors.workspace = true
5+
edition.workspace = true
6+
license.workspace = true
7+
repository.workspace = true
8+
description = "Remote protocol for libSQL"
79

810
[dependencies]
911
serde = { version = "1.0", features = ["derive", "rc"] }

libsql-replication/Cargo.toml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
[package]
22
name = "libsql_replication"
3-
version = "0.6.0"
4-
edition = "2021"
5-
description = "libSQL replication protocol"
6-
repository = "https://github.com/tursodatabase/libsql"
7-
license = "MIT"
8-
9-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
3+
version.workspace = true
4+
authors.workspace = true
5+
edition.workspace = true
6+
license.workspace = true
7+
repository.workspace = true
8+
description = "Replication protocol for libSQL"
109

1110
[dependencies]
1211
tonic = { version = "0.11", default-features = false, features = ["codegen", "prost"] }
1312
prost = "0.12"
14-
libsql-sys = { version = "0.8", path = "../libsql-sys", default-features = false, features = ["wal", "rusqlite", "api"] }
13+
libsql-sys = { workspace = true, default-features = false, features = ["wal", "rusqlite", "api"] }
1514
rusqlite = { workspace = true }
1615
parking_lot = "0.12.1"
1716
bytes = { version = "1.5.0", features = ["serde"] }

libsql-sys/Cargo.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
[package]
22
name = "libsql-sys"
3-
version = "0.8.0"
4-
edition = "2021"
5-
license = "MIT"
3+
version.workspace = true
4+
authors.workspace = true
5+
edition.workspace = true
6+
license.workspace = true
7+
repository.workspace = true
68
description = "Native bindings to libSQL"
7-
repository = "https://github.com/tursodatabase/libsql"
89
keywords = ["libsql", "sqlite", "ffi", "bindings", "database"]
910
categories = ["external-ffi-bindings"]
1011

11-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
12-
1312
[dependencies]
1413
bytes = "1.5.0"
1514
libsql-ffi = { version = "0.5", path = "../libsql-ffi/" }

libsql/Cargo.toml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
[package]
22
name = "libsql"
3-
version = "0.6.0"
4-
edition = "2021"
5-
description = "libSQL library: the main gateway for interacting with the database"
6-
repository = "https://github.com/tursodatabase/libsql"
7-
license = "MIT"
3+
version.workspace = true
4+
authors.workspace = true
5+
edition.workspace = true
6+
license.workspace = true
7+
repository.workspace = true
8+
description = "The libSQL database library"
89

910
[dependencies]
1011
tracing = { version = "0.1.37", default-features = false }
1112
thiserror = "1.0.40"
1213

1314
futures = { version = "0.3.28", optional = true }
14-
libsql-sys = { version = "0.8", path = "../libsql-sys", optional = true }
15-
libsql-hrana = { version = "0.2", path = "../libsql-hrana", optional = true }
15+
libsql-sys = { workspace = true, optional = true, default-features = true }
16+
libsql-hrana = { workspace = true, optional = true }
1617
tokio = { version = "1.29.1", features = ["sync"], optional = true }
1718
tokio-util = { version = "0.7", features = ["io-util", "codec"], optional = true }
1819
parking_lot = { version = "0.12.1", optional = true }
@@ -40,7 +41,7 @@ zerocopy = { version = "0.7.28", optional = true }
4041
sqlite3-parser = { package = "libsql-sqlite3-parser", path = "../vendored/sqlite3-parser", version = "0.13", optional = true }
4142
fallible-iterator = { version = "0.3", optional = true }
4243

43-
libsql_replication = { version = "0.6", path = "../libsql-replication", optional = true }
44+
libsql_replication = { workspace = true, optional = true }
4445
async-stream = { version = "0.3.5", optional = true }
4546

4647
crc32fast = { version = "1", optional = true }

0 commit comments

Comments
 (0)