Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump versions and apply rename #61

Merged
merged 3 commits into from
Aug 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "datacake"
version = "0.7.1"
version = "0.8.0"
edition = "2021"
description = "A batteries included framework for building fault-tolerance distributed data systems."
license = "MIT"
Expand All @@ -12,11 +12,11 @@ readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
datacake-crdt = { version = "0.4", path = "datacake-crdt", optional = true }
datacake-eventual-consistency = { version = "0.5", path = "datacake-eventual-consistency", optional = true }
datacake-crdt = { version = "0.5", path = "datacake-crdt", optional = true }
datacake-eventual-consistency = { version = "0.6", path = "datacake-eventual-consistency", optional = true }
datacake-sqlite = { version = "0.5", path = "datacake-sqlite", optional = true }
datacake-rpc = { version = "0.5", path = "datacake-rpc", optional = true }
datacake-node = { version = "0.4", path = "datacake-node", optional = true }
datacake-rpc = { version = "0.6", path = "datacake-rpc", optional = true }
datacake-node = { version = "0.5", path = "datacake-node", optional = true }
datacake-lmdb = { version = "0.2", path = "datacake-lmdb", optional = true }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion datacake-crdt/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "datacake-crdt"
version = "0.4.1"
version = "0.5.0"
edition = "2021"
description = "A conflict free replicated datatype based on a hybrid logical clock implementation for building eventually consistent data stores."
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion datacake-crdt/src/orswot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl<const N: usize> NodeVersions<N> {
#[derive(Debug, Default, Clone)]
#[repr(C)]
#[cfg_attr(feature = "rkyv", derive(Serialize, Deserialize, Archive))]
#[cfg_attr(feature = "rkyv", archive(compare(PartialEq), check_bytes))]
#[cfg_attr(feature = "rkyv", archive(check_bytes))]
/// A CRDT which supports purging of deleted entry tombstones.
///
/// This implementation is largely based on the Riak DB implementations
Expand Down
10 changes: 5 additions & 5 deletions datacake-eventual-consistency/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "datacake-eventual-consistency"
version = "0.5.1"
version = "0.6.0"
edition = "2021"
description = "Eventually consistent state replication as a library (consensus, RPC and conflict resolution) for building your own eventually consistent databases."
license = "MIT"
Expand Down Expand Up @@ -32,9 +32,9 @@ chitchat = { version = "0.5.1", package = "datacake-chitchat-fork" }
tokio = { version = "1", default-features = false, features = ["sync", "time"] }
rkyv = { version = "0.7.42", features = ["strict", "validation", "smallvec"] }

datacake-rpc = { path = "../datacake-rpc", version = "0.5" }
datacake-node = { path = "../datacake-node", version = "0.4" }
datacake-crdt = { path = "../datacake-crdt", version = "0.4", features = ["rkyv-support"] }
datacake-rpc = { path = "../datacake-rpc", version = "0.6" }
datacake-node = { path = "../datacake-node", version = "0.5" }
datacake-crdt = { path = "../datacake-crdt", version = "0.5", features = ["rkyv-support"] }

[features]
test-utils = []
Expand All @@ -45,6 +45,6 @@ anyhow = "1"
tracing-subscriber = "0.3.15"
bytes = "1.2.1"
test-helper = { path = "../test-helper" }
datacake-rpc = { path = "../datacake-rpc", version = "0.5", features = ["test-utils"] }
datacake-rpc = { path = "../datacake-rpc", version = "0.6", features = ["test-utils"] }


14 changes: 7 additions & 7 deletions datacake-eventual-consistency/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@
pub fn handle_with_keyspace(
&self,
keyspace: impl Into<String>,
) -> ReplicatorKeyspaceHandle<S> {
ReplicatorKeyspaceHandle {
) -> ReplicatedKeyspaceHandle<S> {
ReplicatedKeyspaceHandle {
inner: self.handle(),
keyspace: Cow::Owned(keyspace.into()),
}
Expand Down Expand Up @@ -327,8 +327,8 @@
pub fn with_keyspace(
&self,
keyspace: impl Into<String>,
) -> ReplicatorKeyspaceHandle<S> {
ReplicatorKeyspaceHandle {
) -> ReplicatedKeyspaceHandle<S> {
ReplicatedKeyspaceHandle {
inner: self.clone(),
keyspace: Cow::Owned(keyspace.into()),
}
Expand Down Expand Up @@ -401,7 +401,7 @@
source: CONSISTENCY_SOURCE_ID,
doc: document.clone(),
ctx: None,
_marker: PhantomData::<S>::default(),

Check warning on line 404 in datacake-eventual-consistency/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy

use of `default` to create a unit struct

warning: use of `default` to create a unit struct --> datacake-eventual-consistency/src/lib.rs:404:38 | 404 | _marker: PhantomData::<S>::default(), | ^^^^^^^^^^^ help: remove this call to `default` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs

Check warning on line 404 in datacake-eventual-consistency/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy

use of `default` to create a unit struct

warning: use of `default` to create a unit struct --> datacake-eventual-consistency/src/lib.rs:404:38 | 404 | _marker: PhantomData::<S>::default(), | ^^^^^^^^^^^ help: remove this call to `default` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
};
keyspace.send(msg).await?;

Expand Down Expand Up @@ -466,7 +466,7 @@
source: CONSISTENCY_SOURCE_ID,
docs: docs.clone(),
ctx: None,
_marker: PhantomData::<S>::default(),

Check warning on line 469 in datacake-eventual-consistency/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy

use of `default` to create a unit struct

warning: use of `default` to create a unit struct --> datacake-eventual-consistency/src/lib.rs:469:38 | 469 | _marker: PhantomData::<S>::default(), | ^^^^^^^^^^^ help: remove this call to `default` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs

Check warning on line 469 in datacake-eventual-consistency/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy

use of `default` to create a unit struct

warning: use of `default` to create a unit struct --> datacake-eventual-consistency/src/lib.rs:469:38 | 469 | _marker: PhantomData::<S>::default(), | ^^^^^^^^^^^ help: remove this call to `default` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
};
keyspace.send(msg).await?;

Expand Down Expand Up @@ -526,7 +526,7 @@
let msg = Del {
source: CONSISTENCY_SOURCE_ID,
doc,
_marker: PhantomData::<S>::default(),

Check warning on line 529 in datacake-eventual-consistency/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy

use of `default` to create a unit struct

warning: use of `default` to create a unit struct --> datacake-eventual-consistency/src/lib.rs:529:38 | 529 | _marker: PhantomData::<S>::default(), | ^^^^^^^^^^^ help: remove this call to `default` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs

Check warning on line 529 in datacake-eventual-consistency/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy

use of `default` to create a unit struct

warning: use of `default` to create a unit struct --> datacake-eventual-consistency/src/lib.rs:529:38 | 529 | _marker: PhantomData::<S>::default(), | ^^^^^^^^^^^ help: remove this call to `default` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
};
keyspace.send(msg).await?;

Expand Down Expand Up @@ -583,7 +583,7 @@
let msg = MultiDel {
source: CONSISTENCY_SOURCE_ID,
docs: docs.clone(),
_marker: PhantomData::<S>::default(),

Check warning on line 586 in datacake-eventual-consistency/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy

use of `default` to create a unit struct

warning: use of `default` to create a unit struct --> datacake-eventual-consistency/src/lib.rs:586:38 | 586 | _marker: PhantomData::<S>::default(), | ^^^^^^^^^^^ help: remove this call to `default` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs

Check warning on line 586 in datacake-eventual-consistency/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy

use of `default` to create a unit struct

warning: use of `default` to create a unit struct --> datacake-eventual-consistency/src/lib.rs:586:38 | 586 | _marker: PhantomData::<S>::default(), | ^^^^^^^^^^^ help: remove this call to `default` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
};
keyspace.send(msg).await?;

Expand Down Expand Up @@ -616,15 +616,15 @@
}

/// A convenience wrapper which creates a new handle with a preset keyspace.
pub struct ReplicatorKeyspaceHandle<S>
pub struct ReplicatedKeyspaceHandle<S>
where
S: Storage,
{
inner: ReplicatedStoreHandle<S>,
keyspace: Cow<'static, str>,
}

impl<S> Clone for ReplicatorKeyspaceHandle<S>
impl<S> Clone for ReplicatedKeyspaceHandle<S>
where
S: Storage,
{
Expand All @@ -636,7 +636,7 @@
}
}

impl<S> ReplicatorKeyspaceHandle<S>
impl<S> ReplicatedKeyspaceHandle<S>
where
S: Storage,
{
Expand Down
8 changes: 4 additions & 4 deletions datacake-lmdb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ thiserror = "1"
heed = { version = "0.20.0-alpha.0", default-features = false }
tokio = { version = "1", default-features = false, features = ["rt"] }

datacake-crdt = { version = "0.4", path = "../datacake-crdt" }
datacake-eventual-consistency = { version = "0.5", path = "../datacake-eventual-consistency" }
datacake-crdt = { version = "0.5", path = "../datacake-crdt" }
datacake-eventual-consistency = { version = "0.6", path = "../datacake-eventual-consistency" }

[dev-dependencies]
anyhow = "1"
Expand All @@ -31,5 +31,5 @@ tracing-subscriber = "0.3.16"
test-helper = { path = "../test-helper" }

uuid = { version = "1", features = ["v4"] }
datacake-node = { version = "0.4", path = "../datacake-node" }
datacake-eventual-consistency = { version = "0.5", path = "../datacake-eventual-consistency", features = ["test-utils"] }
datacake-node = { version = "0.5", path = "../datacake-node" }
datacake-eventual-consistency = { version = "0.6", path = "../datacake-eventual-consistency", features = ["test-utils"] }
8 changes: 4 additions & 4 deletions datacake-node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "datacake-node"
version = "0.4.1"
version = "0.5.0"
edition = "2021"
description = "The core cluster membership system built ontop of Quickwit's chitchat."
license = "MIT"
Expand All @@ -24,8 +24,8 @@ futures = "0.3"
crc32fast = "1.3.2"
smallvec = "1"

datacake-rpc = { version = "0.5", path = "../datacake-rpc" }
datacake-crdt = { version = "0.4", path = "../datacake-crdt", features = ["rkyv-support"] }
datacake-rpc = { version = "0.6", path = "../datacake-rpc" }
datacake-crdt = { version = "0.5", path = "../datacake-crdt", features = ["rkyv-support"] }
chitchat = { version = "0.5.1", package = "datacake-chitchat-fork" }
tokio = { version = "1", default-features = false, features = ["sync", "time"] }
rkyv = { version = "0.7.42", features = ["strict", "validation"] }
Expand All @@ -34,5 +34,5 @@ rkyv = { version = "0.7.42", features = ["strict", "validation"] }
tracing-subscriber = "0.3.16"
tokio = { version = "1", features = ["full"] }
test-helper = { path = "../test-helper" }
datacake-rpc = { version = "0.5", path = "../datacake-rpc", features = ["test-utils"] }
datacake-rpc = { version = "0.6", path = "../datacake-rpc", features = ["test-utils"] }

2 changes: 1 addition & 1 deletion datacake-rpc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "datacake-rpc"
version = "0.5.1"
version = "0.6.0"
edition = "2021"
description = "A zero-copy, actor-like RPC framework using rkyv."
license = "MIT"
Expand Down
8 changes: 4 additions & 4 deletions datacake-sqlite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ thiserror = "1"

tokio = { version = "1", default-features = false, features = ["rt"] }

datacake-crdt = { version = "0.4", path = "../datacake-crdt" }
datacake-eventual-consistency = { version = "0.5", path = "../datacake-eventual-consistency" }
datacake-crdt = { version = "0.5", path = "../datacake-crdt" }
datacake-eventual-consistency = { version = "0.6", path = "../datacake-eventual-consistency" }

[features]
bundled = ["rusqlite/bundled"]
Expand All @@ -34,5 +34,5 @@ tracing-subscriber = "0.3.16"

test-helper = { path = "../test-helper" }
uuid = { version = "1", features = ["v4"] }
datacake-node = { version = "0.4", path = "../datacake-node" }
datacake-eventual-consistency = { version = "0.5", path = "../datacake-eventual-consistency", features = ["test-utils"] }
datacake-node = { version = "0.5", path = "../datacake-node" }
datacake-eventual-consistency = { version = "0.6", path = "../datacake-eventual-consistency", features = ["test-utils"] }
4 changes: 2 additions & 2 deletions examples/replicated-kv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ serde = { version = "1", features = ["derive"] }
clap = { version = "4", features = ["derive"] }
tokio = { version = "1", features = ["full"] }
rusqlite = { version = "0.28.0", features = ["bundled"] }
datacake = { version = "0.7", path = "../..", features = ["datacake-sqlite"] }
datacake = { version = "0.8", path = "../..", features = ["datacake-sqlite"] }

[dev-dependencies]
uuid = { version = "1", features = ["v4"] }
datacake = { version = "0.7", path = "../..", features = ["test-utils"] }
datacake = { version = "0.8", path = "../..", features = ["test-utils"] }
2 changes: 1 addition & 1 deletion simulation-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ edition = "2021"
anyhow = "1"
turmoil = "0.4.0"

datacake = { version = "0.7.0", path = "..", features = ["simulation", "test-utils"] }
datacake = { version = "0.8.0", path = "..", features = ["simulation", "test-utils"] }
tokio = { version = "1", features = ["full"] }
rkyv = { version = "0.7.42", features = ["strict", "validation"] }
Loading