|
pub trait Block<'a, K>: Send + Sync { |
You may want to make these conditional, so that the Send bound is not present for wasm targets.
This may be important when block are stored in browser storage or other non-native interface
See this example:
https://github.com/eigerco/blockstore/blob/main/src/cond_send.rs
bs/crates/content-addressable/src/block.rs
Line 6 in fa0cfc8
You may want to make these conditional, so that the Send bound is not present for wasm targets.
This may be important when block are stored in browser storage or other non-native interface
See this example:
https://github.com/eigerco/blockstore/blob/main/src/cond_send.rs