Skip to content

Commit

Permalink
Introduce rxqlite-client
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Apr 1, 2024
1 parent 11ef27d commit 74230c3
Show file tree
Hide file tree
Showing 17 changed files with 856 additions and 54 deletions.
25 changes: 22 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ repository = "https://github.com/HaHa421/rxqlite"
[workspace]
members = [
"crates/rxqlite-common",
"crates/rxqlite-lite-common",
"crates/rxqlite-sqlx-common"
]

Expand All @@ -34,8 +35,6 @@ path = "examples/client_insecure_tls.rs"

[dependencies]
anyhow = "1"
rxqlite-common = { version = "0.1.3" , path = "crates/rxqlite-common" }
rxqlite-sqlx-common = { version = "0.1.4" , path = "crates/rxqlite-sqlx-common" , features = [ "sqlite" ] }
openraft = { version = "0.9", features = ["serde" , "storage-v2"] }

rustls-pemfile = "2"
Expand Down Expand Up @@ -64,8 +63,28 @@ tokio-util = { version = "0.7" , features = [ "codec" ] }
futures-util= "0.3"
futures = { version = "0.3.30" }
tokio-stream = "0.1"
rxqlite-tests-common = { version = "0.1.7" , path = "crates/rxqlite-tests-common" , optional = true }

[dependencies.rxqlite-tests-common]
version = "0.1.7"
path = "crates/rxqlite-tests-common"
optional = true

[dependencies.rxqlite-common]
version = "0.1.3"
path = "crates/rxqlite-common"

[dependencies.rxqlite-lite-common]
version = "0.1"
path = "crates/rxqlite-lite-common"

[dependencies.rxqlite-sqlx-common]
version = "0.1.4"
path = "crates/rxqlite-sqlx-common"
features = [ "sqlite" ]

[dependencies.rxqlite-notification]
version = "0.1"
path = "crates/rxqlite-notification"

[dependencies.sqlx]
version = "0.7"
Expand Down
5 changes: 4 additions & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Roadmap

## [0.1.12]
## [0.1.13]
Client authorization

## [0.1.12]
RXQlite client

## [0.1.9]
Bug fixes

Expand Down
5 changes: 4 additions & 1 deletion build.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
rustup default stable-x86_64-pc-windows-msvc
REM You need Visual Studio with C++ compiler and Windows SDK components
REM aws-lc-sys needs perl to compile openssl-sys as vendored
REM perl Strawberry will install nasm
call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat"
set PATH=%PATH%;C:\Program Files\LLVM\bin
REM here clang is installed from llvm.org
set PATH=%PATH%;%ProgramFiles%\LLVM\bin

cargo build --release
cargo build --release --example rxqlite-client
Expand Down
1 change: 1 addition & 0 deletions crates/rxqlite-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ repository = "https://github.com/HaHa421/rxqlite"
[dependencies]
serde = { version = "1" , features = [ "derive" ] }
chrono = { version = "0.4" , features = [ "serde" ] }

31 changes: 31 additions & 0 deletions crates/rxqlite-lite-common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[package]
name = "rxqlite-lite-common"
version = "0.1.0"


edition = "2021"
authors = [
"ha421 <hha835773@gmail.com>"
]
categories = ["algorithms", "asynchronous", "data-structures"]
description = "A distributed sqlite database built upon `openraft` ,`sqlx` and `sqlite`."
homepage = "https://github.com/HaHa421/rxqlite"
keywords = ["raft", "consensus","sqlite"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/HaHa421/rxqlite"


[dependencies]
anyhow = "1.0"
thiserror = "1.0.58"
derive_more = "0.99.9"
serde = { version = "1" , features = [ "derive" ] }
chrono = { version = "0.4" , features = [ "serde" ] }

[dependencies.rxqlite-common]
version = "0.1"
path = "../rxqlite-common"

[dependencies.rxqlite-notification]
version = "0.1"
path = "../rxqlite-notification"
Loading

0 comments on commit 74230c3

Please sign in to comment.