Skip to content

Commit

Permalink
Make thread safe
Browse files Browse the repository at this point in the history
  • Loading branch information
laurmaedje committed Dec 8, 2023
1 parent 2b3b8ee commit bcda660
Show file tree
Hide file tree
Showing 8 changed files with 260 additions and 286 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ keywords = ["incremental", "memoization", "tracked", "constraints"]
[dependencies]
comemo-macros = { version = "0.3.1", path = "macros" }
siphasher = "1"
dashmap = "5"
once_cell = "1"
parking_lot = "0.12"
2 changes: 1 addition & 1 deletion macros/src/track.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub fn expand(item: &syn::Item) -> Result<TokenStream> {
}

let name = &item.ident;
let ty = parse_quote! { dyn #name + '__comemo_dynamic };
let ty = parse_quote! { dyn #name + Send + Sync + '__comemo_dynamic };
(ty, &item.generics, Some(name.clone()))
}
_ => bail!(item, "`track` can only be applied to impl blocks and traits"),
Expand Down
Loading

0 comments on commit bcda660

Please sign in to comment.