Skip to content

Commit d233c61

Browse files
authored
Merge pull request #62 from cipherstash/ross/send_bounds
Add +Send bounds to enable use with tokio
2 parents ba2fa17 + af20e65 commit d233c61

File tree

6 files changed

+12
-13
lines changed

6 files changed

+12
-13
lines changed

Cargo.lock

Lines changed: 6 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repository = "https://github.com/cipherstash/cipherstash-dynamodb"
2424
# and it will keep the alphabetic ordering for you.
2525

2626
[dependencies]
27-
cipherstash-client = { version = "0.10", registry = "cipherstash" }
27+
cipherstash-client = { version = "0.12", registry = "cipherstash" }
2828
cipherstash-dynamodb-derive = { version = "0.7", path = "cipherstash-dynamodb-derive", registry = "cipherstash" }
2929

3030
aws-sdk-dynamodb = "1.3.0"

cipherstash-dynamodb-derive/src/searchable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub(crate) fn derive_searchable(input: DeriveInput) -> Result<TokenStream, syn::
5757
std::borrow::Cow::Borrowed(&[#(#protected_indexes_impl,)*])
5858
}
5959

60-
fn index_by_name(index_name: &str, index_type: cipherstash_dynamodb::IndexType) -> Option<Box<dyn cipherstash_dynamodb::traits::ComposableIndex>> {
60+
fn index_by_name(index_name: &str, index_type: cipherstash_dynamodb::IndexType) -> Option<Box<dyn cipherstash_dynamodb::traits::ComposableIndex + Send>> {
6161
match ( index_name, index_type ) {
6262
#(#indexes_impl,)*
6363
_ => None,

src/crypto/sealer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use std::{borrow::Cow, collections::HashMap, ops::Deref};
1919
/// The combination of plaintext, index, name and index type for a particular field
2020
pub type UnsealedIndex = (
2121
ComposablePlaintext,
22-
Box<dyn ComposableIndex>,
22+
Box<dyn ComposableIndex + Send>,
2323
Cow<'static, str>,
2424
IndexType,
2525
);

src/encrypted_table/query.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub struct QueryBuilder<S, B = ()> {
2626
pub struct PreparedQuery {
2727
index_name: String,
2828
type_name: String,
29-
composed_index: Box<dyn ComposableIndex>,
29+
composed_index: Box<dyn ComposableIndex + Send>,
3030
plaintext: ComposablePlaintext,
3131
}
3232

@@ -161,7 +161,7 @@ where
161161

162162
pub struct PreparedQueryBuilder {
163163
pub type_name: Cow<'static, str>,
164-
pub index_by_name: fn(&str, IndexType) -> Option<Box<dyn ComposableIndex>>,
164+
pub index_by_name: fn(&str, IndexType) -> Option<Box<dyn ComposableIndex + Send>>,
165165
}
166166

167167
impl PreparedQueryBuilder {

src/traits/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ pub trait Searchable: Encryptable {
126126
fn index_by_name(
127127
_index_name: &str,
128128
_index_type: IndexType,
129-
) -> Option<Box<dyn ComposableIndex>> {
129+
) -> Option<Box<dyn ComposableIndex + Send>> {
130130
None
131131
}
132132
}

0 commit comments

Comments
 (0)