Skip to content

Commit ae30490

Browse files
Merge pull request #6 from iscar-ucm/dev-rt
Asynchronous RT
2 parents 64670af + 6d1507b commit ae30490

Some content is hidden

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

43 files changed

+2226
-380
lines changed

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"editor.formatOnSave": true
55
},
66
"rust-analyzer.cargo.features": [
7-
"par_all"
7+
"par_all",
8+
"rt",
9+
"dmt",
10+
"mqtt",
811
],
912
}

Cargo.toml

Lines changed: 3 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,7 @@
1-
[package]
2-
name = "xdevs"
3-
version = "0.3.0"
4-
authors = ["Román Cárdenas <rcardenas.rod@gmail.com>"]
5-
edition = "2021"
6-
description = "An open source DEVS M&S framework."
7-
readme = "README.md"
8-
repository = "https://github.com/iscar-ucm/xdevs.rs"
9-
license = "LGPL-3.0-or-later"
10-
keywords = ["DEVS", "modeling", "simulation"]
11-
categories = ["simulation"]
12-
13-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
14-
15-
[dependencies]
16-
rayon = { version = "1.6", optional = true }
17-
cpu-time = { version = "1.0", optional = true }
18-
19-
[features]
20-
devstone_busy = ["cpu-time"]
21-
par_any = ["rayon"]
22-
par_start = ["par_any"]
23-
par_collection = ["par_any"]
24-
par_transition = ["par_any"]
25-
par_stop = ["par_any"]
26-
par_all_no_couplings = ["par_start", "par_collection", "par_transition", "par_stop"]
27-
par_couplings = ["par_any"]
28-
par_all = ["par_all_no_couplings", "par_couplings"]
29-
30-
[[example]]
31-
name = "devstone"
32-
33-
[[example]]
34-
name = "gpt_efp"
1+
[workspace]
2+
resolver = "2"
3+
members = ["xdevs", "xdevs_utils"]
354

365
[profile.release]
376
lto = true
387
panic = "unwind"
39-
40-
[package.metadata.docs.rs]
41-
features = ["par_all"]

examples/gpt_efp.rs

Lines changed: 0 additions & 249 deletions
This file was deleted.

src/lib.rs

Lines changed: 0 additions & 15 deletions
This file was deleted.

xdevs/Cargo.toml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
[package]
2+
name = "xdevs"
3+
version = "0.4.0"
4+
authors = ["Román Cárdenas <rcardenas.rod@gmail.com>"]
5+
edition = "2021"
6+
description = "An open source DEVS M&S framework."
7+
readme = "README.md"
8+
repository = "https://github.com/iscar-ucm/xdevs.rs"
9+
license = "LGPL-3.0-or-later"
10+
keywords = ["DEVS", "modeling", "simulation"]
11+
categories = ["simulation"]
12+
13+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
14+
15+
[dependencies]
16+
cpu-time = { version = "1.0", optional = true }
17+
rayon = { version = "1.6", optional = true }
18+
tokio = { version = "1.42", features = ["full"], optional = true }
19+
tracing = { version = "0.1", optional = true }
20+
21+
[dev-dependencies]
22+
tracing-subscriber = { version = "0.3" }
23+
24+
[features]
25+
devstone_busy = ["cpu-time"]
26+
par_any = ["rayon"]
27+
par_start = ["par_any"]
28+
par_collection = ["par_any"]
29+
par_transition = ["par_any"]
30+
par_stop = ["par_any"]
31+
par_all_no_couplings = ["par_start", "par_collection", "par_transition", "par_stop"]
32+
par_couplings = ["par_any"]
33+
par_all = ["par_all_no_couplings", "par_couplings"]
34+
rt = ["tokio", "tracing"]
35+
36+
[package.metadata.docs.rs]
37+
features = ["par_all", "rt"]
38+
39+
[[example]]
40+
name = "gpt_efp_rt"
41+
required-features = ["rt"]

0 commit comments

Comments
 (0)