Skip to content

feat: implement sync variants of FrozenIndexMap, FrozenIndexSet#67

Open
huitseeker wants to merge 5 commits intoManishearth:masterfrom
huitseeker:sync_frozen
Open

feat: implement sync variants of FrozenIndexMap, FrozenIndexSet#67
huitseeker wants to merge 5 commits intoManishearth:masterfrom
huitseeker:sync_frozen

Conversation

@huitseeker
Copy link
Copy Markdown
Contributor

#10 added FrozenIndexMap, FrozenIndexSet under a feature, but not sync variants thereof.
This adds those sync variants.

@huitseeker huitseeker force-pushed the sync_frozen branch 2 times, most recently from 17dc3e5 to 4944e9b Compare October 12, 2023 21:14
huitseeker added a commit to huitseeker/lurk-rs that referenced this pull request Nov 14, 2023
- Updated Elsa dependency branch from `sync_index_map` to `sync_frozen`.
- the elsa import now matches Manishearth/elsa#67 and thus a more recent version of elsa.

- Corrected the  import statement in `hash.rs`.
- Modified import paths for `FrozenIndexSet` in the `store.rs` and `lem/store.rs` files.
huitseeker added a commit to huitseeker/lurk-rs that referenced this pull request Nov 14, 2023
- Updated Elsa dependency branch from `sync_index_map` to `sync_frozen`.
- the elsa import now matches Manishearth/elsa#67 and thus a more recent version of elsa.

- Corrected the  import statement in `hash.rs`.
- Modified import paths for `FrozenIndexSet` in the `store.rs` and `lem/store.rs` files.
github-merge-queue bot pushed a commit to lurk-lab/lurk-beta that referenced this pull request Nov 15, 2023
* chore: Update Elsa dependency and correct import paths

- Updated Elsa dependency branch from `sync_index_map` to `sync_frozen`.
- the elsa import now matches Manishearth/elsa#67 and thus a more recent version of elsa.

- Corrected the  import statement in `hash.rs`.
- Modified import paths for `FrozenIndexSet` in the `store.rs` and `lem/store.rs` files.

* chore: update criterion dependency
- Renamed and relocated `sync_index_set.rs` and `sync_index_map.rs` files into a new `sync` directory for better file structuring.
- Enabled custom `Debug` implementations for sync variants of `FrozenIndexSet` and `FrozenIndexMap`.
- Introduced feature-gated support for `indexmap` within `sync` with `index_map` and `index_set` modules.
- Introduced "shuttle" feature configurations for `RwLock` in `index_set.rs` and `index_map.rs`, allowing for switch between `std::sync::RwLock` and `shuttle::sync::RwLock` based on testing conditions.
- Added tests under "shuttle" feature to validate various functionalities such as idempotent and incremental insertions, multiple call interactions and retrieval by index in both `index_set.rs` and `index_map.rs`.
- Added the optional dependency "shuttle" version "0.6.1" to `Cargo.toml` and included it in the list of features.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant