Skip to content

Commit

Permalink
Merge pull request #771 from Imberflur/update-shred
Browse files Browse the repository at this point in the history
Update shred to 0.16.0
  • Loading branch information
Imberflur authored Jan 12, 2024
2 parents 01adaf6 + 5287ca4 commit 708c3ac
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ahash = "0.7.6"
crossbeam-queue = "0.3"
hibitset = { version = "0.6.4", default-features = false }
log = "0.4.8"
shred = { version = "0.15.0", default-features = false }
shred = { version = "0.16.0", default-features = false }
shrev = "1.1.1"
tuple_utils = "0.4.0"
nougat = "0.2.3"
Expand All @@ -37,8 +37,8 @@ uuid = { version = "1.0", optional = true, features = ["v4", "serde"] }
[features]
default = ["parallel"]
parallel = ["dep:rayon", "shred/parallel", "hibitset/parallel"]
uuid_entity = ["uuid", "serde"]
stdweb = ["uuid/js"]
uuid_entity = ["dep:uuid", "serde"]
stdweb = ["dep:uuid", "uuid?/js"]
storage-event-control = []
derive = ["shred-derive", "specs-derive"]
nightly = ["shred/nightly"]
Expand All @@ -54,7 +54,7 @@ criterion = "0.3.1"
ron = "0.7.1"
rand = "0.8"
serde_json = "1.0.48"
shred = { version = "0.15.0", default-features = false, features = ["shred-derive"] }
shred = { version = "0.16.0", default-features = false, features = ["shred-derive"] }
specs-derive = { path = "specs-derive", version = "0.4.1" }

[[example]]
Expand Down
2 changes: 2 additions & 0 deletions docs/tutorials/src/06_system_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ That's why you can also create your own `SystemData` bundle using a struct:
extern crate specs;
use specs::prelude::*;
// `shred` needs to be in scope for the `SystemData` derive.
use specs::shred;
#[derive(SystemData)]
pub struct MySystemData<'a> {
Expand Down
2 changes: 1 addition & 1 deletion examples/full.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use specs::{prelude::*, storage::HashMapStorage};
use specs::{prelude::*, shred, storage::HashMapStorage};

// -- Components --
// A component exists for 0..n
Expand Down
7 changes: 5 additions & 2 deletions miri.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@ echo "using filter: \"$filter\""
# Miri currently reports leaks in some tests so we disable that check
# here (might be due to ptr-int-ptr in crossbeam-epoch so might be
# resolved in future versions of that crate).
MIRIFLAGS="-Zmiri-disable-isolation -Zmiri-ignore-leaks" \
#
# crossbeam-epoch doesn't pass with stacked borrows so we need to use tree-borrows
# https://github.com/crossbeam-rs/crossbeam/issues/545
MIRIFLAGS="-Zmiri-disable-isolation -Zmiri-ignore-leaks -Zmiri-tree-borrows" \
cargo +nightly miri nextest run \
-E "$filter" \
--test-threads="$test_threads" \
# use nocapture or run miri directly to see warnings from miri
#--nocapture

# Run tests only available when parallel feature is disabled.
MIRIFLAGS="-Zmiri-disable-isolation -Zmiri-ignore-leaks" \
MIRIFLAGS="-Zmiri-disable-isolation -Zmiri-ignore-leaks -Zmiri-tree-borrows" \
cargo +nightly miri nextest run \
--no-default-features \
-E "binary(no_parallel)" \
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ pub mod world;
pub use hibitset::BitSet;
pub use shred::{
Accessor, AccessorCow, BatchAccessor, BatchController, BatchUncheckedWorld, Dispatcher,
DispatcherBuilder, Read, ReadExpect, RunNow, RunningTime, StaticAccessor, System, SystemData,
World, Write, WriteExpect,
DispatcherBuilder, Read, ReadExpect, RunNow, RunningTime, SendDispatcher, StaticAccessor,
System, SystemData, World, Write, WriteExpect,
};
pub use shrev::ReaderId;

Expand Down

0 comments on commit 708c3ac

Please sign in to comment.