Skip to content

Commit

Permalink
Reconstruct project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Jan 3, 2024
1 parent d61b642 commit 83704a0
Show file tree
Hide file tree
Showing 38 changed files with 93 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/target
target
node-*

logs
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 24 additions & 34 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,40 +1,30 @@
[package]
name = "raftify"
version = "0.1.0"
authors = ["Lablup Inc."]
edition = "2021"
license = "MIT/Apache-2.0"
repository = "https://github.com/lablup/raftify"
description = "Experimental High level Raft framework"
keywords = ["raft", "distributed-systems", "ha"]

[dependencies]
async-trait = "0.1.48"
bincode = "1.3"
bytes = "1.5.0"
heed = "0.20.0-alpha.9"
heed-traits = "0.20.0-alpha.9"
log = { version = "0.4", features = ["std"] }
parking_lot = "0.12.1"
prost = "0.11"
raft = { git = "https://github.com/jopemachine/raft-rs", features = ["prost-codec", "default-logger"], default-features = false }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
slog = "2"
slog-stdlog = "4"
thiserror = "1.0"
tokio = { version = "1.4", features = ["full"] }
tonic = "0.9.2"
built = "0.5"
clap = "3.0"

[build-dependencies]
tonic-build = "0.9.2"
built = "0.5"

[workspace]
resolver = "2"
members = [
"raftify",
"binding/python",
"examples/memstore",
"harness"
]
default-members = [
"raftify",
"binding/python",
"examples/memstore",
"harness"
]

[workspace.package]
version = "0.1.2"
authors = ["Lablup Inc."]
edition = "2021"
description = """
Experimental High level Raft framework
"""
license = "MIT/Apache-2.0"
repository = "https://github.com/lablup/raftify"
keywords = ["raft", "distributed-systems", "ha"]
categories = ["distributed-systems", "database-implementations"]
homepage = "https://github.com/lablup/raftify"

[workspace.dependencies]
raftify = { path = "raftify" }
24 changes: 12 additions & 12 deletions binding/python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
[package]
name = "raftify-py"
version = "0.1.0"
authors = ["Lablup Inc."]
license = "Apache-2.0"
repository = "https://github.com/lablup/raftify"

version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
keywords.workspace = true
categories.workspace = true
homepage.workspace = true
description.workspace = true
readme = "./README.md"
homepage = "https://github.com/lablup/raftify"
description = """
Experimental Async Raft framework for Python application
"""
keywords = ["raft", "distributed-systems", "consensus-algorithm", "replication", "distributed-database"]
categories = ["distributed-systems", "database-implementations"]
edition = "2021"

[features]
default = []
include-python-workspace = []

[dependencies]
raftify.workspace = true

pyo3 = { git = "https://github.com/jopemachine/pyo3", features = ["extension-module", "multiple-pymethods"] }
tokio = { version = "1.4", features = ["full"] }
async-trait = "0.1.48"
raftify = { path = "../../", default-features = false }
slog = { version = "2.2", features = ["max_level_trace", "release_max_level_trace"] }
slog-envlogger = "2.1.0"
slog-term = "2.9.0"
Expand Down
14 changes: 9 additions & 5 deletions examples/memstore/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
[package]
name = "memstore"
version = "0.1.0"
authors = ["Lablup Inc."]
edition = "2021"
description = "raftify memstore example"
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
description.workspace = true
keywords.workspace = true

[[bin]]
name = "raftify-cli"
Expand All @@ -14,12 +17,13 @@ name = "raftify-client-example"
path = "src/client/main.rs"

[dependencies]
raftify.workspace = true

actix-rt = "2.0"
actix-web = "4.0.0"
async-trait = "0.1.48"
bincode = "1.3"
log = { version = "0.4", features = ["std"] }
raftify = { path = "../../" }
serde = { version = "1.0", features = ["derive"] }
slog-async = "2"
slog-term = "2"
Expand Down
14 changes: 9 additions & 5 deletions harness/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
[package]
name = "harness"
version = "0.1.0"
authors = ["Lablup Inc."]
description = "Testing harness for raftify."
edition = "2021"
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
description.workspace = true
keywords.workspace = true

[dependencies]
raftify.workspace = true

actix-rt = "2.0"
actix-web = "4.0.0"
async-trait = "0.1.48"
bincode = "1.3"
log = { version = "0.4", features = ["std"] }
raftify = { path = "../" }
serde = { version = "1.0", features = ["derive"] }
slog-async = "2"
slog-term = "2"
Expand Down
33 changes: 33 additions & 0 deletions raftify/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[package]
name = "raftify"
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
description.workspace = true
keywords.workspace = true

[dependencies]
async-trait = "0.1.48"
bincode = "1.3"
bytes = "1.5.0"
heed = "0.20.0-alpha.9"
heed-traits = "0.20.0-alpha.9"
log = { version = "0.4", features = ["std"] }
parking_lot = "0.12.1"
prost = "0.11"
raft = { git = "https://github.com/jopemachine/raft-rs", features = ["prost-codec", "default-logger"], default-features = false }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
slog = "2"
slog-stdlog = "4"
thiserror = "1.0"
tokio = { version = "1.4", features = ["full"] }
tonic = "0.9.2"
built = "0.5"
clap = "3.0"

[build-dependencies]
tonic-build = "0.9.2"
built = "0.5"
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.
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.
1 change: 1 addition & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.72.1

0 comments on commit 83704a0

Please sign in to comment.