Skip to content

Commit 10fee74

Browse files
authored
Merge pull request #47 from lf-lang/remove-workspace
Remove creusot sources and merge back vecmap into main runtime crate
2 parents 4ac6459 + 991d2fb commit 10fee74

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+75
-26295
lines changed

Cargo.toml

Lines changed: 62 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,64 @@
1-
[workspace]
1+
[package]
2+
name = "reactor_rt"
3+
version = "0.1.0"
4+
authors = ["Clément Fournier <[email protected]>"]
5+
edition = "2021"
26

3-
members = [
4-
"runtime",
5-
"vecmap",
6-
]
7-
exclude = [ "vecmap/creusot" ]
7+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

9-
[profile.bench]
10-
debug = true
9+
[dependencies]
10+
log = "0.4"
11+
index_vec = "0.1"
12+
#itertools = "0.10.1"
13+
#bit-set = "0.5"
14+
smallvec = { version = "1.10", features = ["const_generics"] }
15+
petgraph = "0.6"
16+
array-macro = "2.1"
17+
atomic_refcell = "0.1"
18+
crossbeam-utils = "0.8"
19+
crossbeam-channel = { git = "https://github.com/oowekyala/crossbeam.git", rev = "9eed66904f969156dedad4eef61ce91d23b9cccb" }
20+
static_assertions = "1.1.0"
21+
rayon = { version = "1.5", optional = true }
22+
cfg-if = "1.0.0"
23+
24+
[dev-dependencies]
25+
criterion = "0.3"
26+
env_logger = "0.9"
27+
assert_matches = "1.5"
28+
dmsort = "1.0.1"
29+
30+
[features]
31+
default=["vec-id-sets"]
32+
# Enable the parallel runtime implementation todo make default
33+
parallel-runtime=["rayon"]
34+
# Enables 64-bit wide reaction ids on 64 bit architectures.
35+
# This may reduce performance, but allows for 2^32 reactor
36+
# instances compared to the default of 2^16, which may feel
37+
# a bit tight for some applications.
38+
wide-ids=[]
39+
vec-id-sets=[]
40+
no-unsafe=[]
41+
# used internally for benchmarking, to access private APIs
42+
public-internals=[]
43+
44+
[[bench]]
45+
name = "savina_pong"
46+
harness = false
47+
48+
[[bench]]
49+
name = "global_id"
50+
path = "benches/micro/global_id.rs"
51+
required-features = ["public-internals"]
52+
harness = false
53+
54+
[[bench]]
55+
name = "dmsort"
56+
path = "benches/micro/dmsort.rs"
57+
required-features = ["public-internals"]
58+
harness = false
59+
60+
[[bench]]
61+
name = "exec_reactions"
62+
path = "benches/micro/exec_reactions.rs"
63+
required-features = ["public-internals"]
64+
harness = false
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ mod reactors {
453453
impl ::reactor_rt::assembly::ReactorInitializer for SavinaPongAdapter {
454454
type Wrapped = SavinaPong;
455455
type Params = SavinaPongParams;
456-
const MAX_REACTION_ID: ::reactor_rt::LocalReactionId = ::reactor_rt::LocalReactionId::new(1 - 1);
456+
const MAX_REACTION_ID: ::reactor_rt::LocalReactionId = ::reactor_rt::LocalReactionId::new(0);
457457

458458
fn assemble(
459459
__params: Self::Params,

runtime/Cargo.toml

Lines changed: 0 additions & 65 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ impl<T: Sync, K> ReactionTrigger<T> for Action<K, T> {
116116
#[cfg(not(feature = "no-unsafe"))]
117117
impl<T: Sync, K> triggers::ReactionTriggerWithRefAccess<T> for Action<K, T> {
118118
fn get_value_ref(&self, now: &EventTag, _start: &Instant) -> Option<&T> {
119-
self.map.get(&Reverse(*now)).map(|a| a.as_ref()).flatten()
119+
self.map.get(&Reverse(*now)).and_then(|a| a.as_ref())
120120
}
121121
}
122122

File renamed without changes.

0 commit comments

Comments
 (0)