diff --git a/Cargo.lock b/Cargo.lock index 6fdb119793..821f891b70 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2896,7 +2896,7 @@ dependencies = [ [[package]] name = "libsql" -version = "0.6.0" +version = "0.9.0" dependencies = [ "anyhow", "async-stream", @@ -2966,7 +2966,7 @@ dependencies = [ [[package]] name = "libsql-hrana" -version = "0.2.0" +version = "0.9.0" dependencies = [ "base64 0.21.7", "bytes", @@ -3120,7 +3120,7 @@ dependencies = [ [[package]] name = "libsql-sys" -version = "0.8.0" +version = "0.9.0" dependencies = [ "bytes", "libsql-ffi", @@ -3151,7 +3151,7 @@ dependencies = [ [[package]] name = "libsql_replication" -version = "0.6.0" +version = "0.9.0" dependencies = [ "aes", "arbitrary", diff --git a/Cargo.toml b/Cargo.toml index 7bc2881a42..4061e1c9cc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,21 +1,19 @@ [workspace] resolver = "2" members = [ - "libsql", "bindings/c", "bindings/wasm", - "libsql-sys", - "libsql-server", "bottomless", "bottomless-cli", - "libsql-replication", + "libsql", "libsql-ffi", "libsql-hrana", - + "libsql-replication", + "libsql-server", + "libsql-sys", "vendored/rusqlite", "vendored/sqlite3-parser", - - "xtask", "libsql-hrana", + "xtask", ] exclude = [ @@ -26,11 +24,17 @@ exclude = [ "tools/fuzz", ] -[profile.release] -codegen-units = 1 -panic = "unwind" +[workspace.package] +version = "0.9.0" +authors = ["the libSQL authors"] +edition = "2021" +license = "MIT" +repository = "https://github.com/tursodatabase/libsql" [workspace.dependencies] +libsql-sys = { path = "libsql-sys", version = "0.9.0", default-features = false } +libsql-hrana = { path = "libsql-hrana", version = "0.9.0" } +libsql_replication = { path = "libsql-replication", version = "0.9.0" } rusqlite = { package = "libsql-rusqlite", path = "vendored/rusqlite", version = "0.33", default-features = false, features = [ "libsql-experimental", "column_decltype", @@ -44,6 +48,10 @@ hyper = { version = "0.14" } tower = { version = "0.4.13" } zerocopy = { version = "0.7.32", features = ["derive", "alloc"] } +[profile.release] +codegen-units = 1 +panic = "unwind" + # Config for 'cargo dist' [workspace.metadata.dist] # The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax) diff --git a/libsql-hrana/Cargo.toml b/libsql-hrana/Cargo.toml index 64f7d79b77..b861e07305 100644 --- a/libsql-hrana/Cargo.toml +++ b/libsql-hrana/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "libsql-hrana" -version = "0.2.0" -edition = "2021" -license = "MIT" -description = "hrana protocol for libsql" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +description = "Remote protocol for libSQL" [dependencies] serde = { version = "1.0", features = ["derive", "rc"] } diff --git a/libsql-replication/Cargo.toml b/libsql-replication/Cargo.toml index d15b54c4b1..e41c57cac5 100644 --- a/libsql-replication/Cargo.toml +++ b/libsql-replication/Cargo.toml @@ -1,17 +1,16 @@ [package] name = "libsql_replication" -version = "0.6.0" -edition = "2021" -description = "libSQL replication protocol" -repository = "https://github.com/tursodatabase/libsql" -license = "MIT" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +description = "Replication protocol for libSQL" [dependencies] tonic = { version = "0.11", default-features = false, features = ["codegen", "prost"] } prost = "0.12" -libsql-sys = { version = "0.8", path = "../libsql-sys", default-features = false, features = ["wal", "rusqlite", "api"] } +libsql-sys = { workspace = true, default-features = false, features = ["wal", "rusqlite", "api"] } rusqlite = { workspace = true } parking_lot = "0.12.1" bytes = { version = "1.5.0", features = ["serde"] } diff --git a/libsql-sys/Cargo.toml b/libsql-sys/Cargo.toml index f7c0693249..51e6c914a2 100644 --- a/libsql-sys/Cargo.toml +++ b/libsql-sys/Cargo.toml @@ -1,15 +1,14 @@ [package] name = "libsql-sys" -version = "0.8.0" -edition = "2021" -license = "MIT" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true description = "Native bindings to libSQL" -repository = "https://github.com/tursodatabase/libsql" keywords = ["libsql", "sqlite", "ffi", "bindings", "database"] categories = ["external-ffi-bindings"] -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] bytes = "1.5.0" libsql-ffi = { version = "0.5", path = "../libsql-ffi/" } diff --git a/libsql/Cargo.toml b/libsql/Cargo.toml index de96f759c3..c02bbe229f 100644 --- a/libsql/Cargo.toml +++ b/libsql/Cargo.toml @@ -1,18 +1,19 @@ [package] name = "libsql" -version = "0.6.0" -edition = "2021" -description = "libSQL library: the main gateway for interacting with the database" -repository = "https://github.com/tursodatabase/libsql" -license = "MIT" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +description = "The libSQL database library" [dependencies] tracing = { version = "0.1.37", default-features = false } thiserror = "1.0.40" futures = { version = "0.3.28", optional = true } -libsql-sys = { version = "0.8", path = "../libsql-sys", optional = true } -libsql-hrana = { version = "0.2", path = "../libsql-hrana", optional = true } +libsql-sys = { workspace = true, optional = true, default-features = true } +libsql-hrana = { workspace = true, optional = true } tokio = { version = "1.29.1", features = ["sync"], optional = true } tokio-util = { version = "0.7", features = ["io-util", "codec"], optional = true } parking_lot = { version = "0.12.1", optional = true } @@ -40,7 +41,7 @@ zerocopy = { version = "0.7.28", optional = true } sqlite3-parser = { package = "libsql-sqlite3-parser", path = "../vendored/sqlite3-parser", version = "0.13", optional = true } fallible-iterator = { version = "0.3", optional = true } -libsql_replication = { version = "0.6", path = "../libsql-replication", optional = true } +libsql_replication = { workspace = true, optional = true } async-stream = { version = "0.3.5", optional = true } crc32fast = { version = "1", optional = true }