Skip to content
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
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "map-api"
description = "Raft state machine"
version = "0.4.2"
version = "0.5.0"
authors = ["Databend Authors <opensource@datafuselabs.com>"]
license = "Apache-2.0"
edition = "2021"
Expand Down
6 changes: 4 additions & 2 deletions src/map_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@

//! Defines the value behavior of the map.

use std::fmt::Debug;

/// MapValue defines the behavior of a value in a map.
///
/// It is `Clone` to let MapApi return an owned value.
/// It is `Unpin` to let MapApi extract a value from pinned data, such as a stream.
/// And it only accepts `static` value for simplicity.
pub trait MapValue: Clone + Send + Sync + Unpin + 'static {}
pub trait MapValue: Clone + Debug + Send + Sync + Unpin + 'static {}

// Auto implement MapValue for all types that satisfy the constraints.
impl<V> MapValue for V where V: Clone + Send + Sync + Unpin + 'static {}
impl<V> MapValue for V where V: Clone + Debug + Send + Sync + Unpin + 'static {}
278 changes: 0 additions & 278 deletions src/mvcc/commit.rs

This file was deleted.

38 changes: 0 additions & 38 deletions src/mvcc/key.rs

This file was deleted.

Loading
Loading