-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab8b24c
commit afb40f7
Showing
16 changed files
with
45 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
Cargo.lock | ||
.DS_Store | ||
test-crates/jsonrpsee-test/target | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,5 @@ members = [ | |
"mocked-crates/futures-timer", | ||
] | ||
exclude = [ | ||
"tokio", | ||
"test-crates/jsonrpsee-test", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ | |
name = "msim-macros" | ||
version = "0.1.0" | ||
edition = "2021" | ||
authors = ["Runji Wang <[email protected]>", "Mysten Labs <[email protected]>"] | ||
authors = ["IOTA Stiftung"] | ||
description = "Mysten sim's proc-macro." | ||
homepage = "https://github.com/MystenLabs/mysten-simulator" | ||
repository = "https://github.com/MystenLabs/mysten-simulator" | ||
homepage = "https://www.iota.org/" | ||
repository = "https://github.com/iotaledger/iota-sim" | ||
license = "Apache-2.0" | ||
categories = ["asynchronous"] | ||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
[package] | ||
name = "tokio" | ||
version = "1.36.0" | ||
version = "1.39.2" | ||
edition = "2021" | ||
authors = ["Runji Wang <[email protected]>", "Mysten Labs <[email protected]>"] | ||
authors = ["IOTA Stiftung"] | ||
description = "The `tokio` simulator on msim." | ||
homepage = "https://github.com/MystenLabs/mysten-simulator" | ||
repository = "https://github.com/MystenLabs/mysten-simulator" | ||
homepage = "https://www.iota.org/" | ||
repository = "https://github.com/iotaledger/iota-sim" | ||
categories = ["asynchronous", "network-programming", "simulation"] | ||
keywords = ["io", "async", "non-blocking", "futures", "simulator"] | ||
readme = "README.md" | ||
|
@@ -47,21 +47,18 @@ test-util = ["real_tokio/test-util"] | |
tracing = ["real_tokio/tracing"] | ||
bytes = ["real_tokio/bytes"] | ||
libc = ["real_tokio/libc"] | ||
memchr = ["real_tokio/memchr"] | ||
mio = ["real_tokio/mio"] | ||
num_cpus = ["real_tokio/num_cpus"] | ||
signal-hook-registry = ["real_tokio/signal-hook-registry"] | ||
socket2 = ["real_tokio/socket2"] | ||
stats = ["real_tokio/stats"] | ||
tokio-macros = ["real_tokio/tokio-macros"] | ||
|
||
[target.'cfg(msim)'.dependencies] | ||
msim = { version = "0.1.0", path = "../msim" } | ||
msim.path = "../msim" | ||
|
||
[dependencies] | ||
tracing = "0.1" | ||
|
||
real_tokio = { git = "https://github.com/mystenmark/tokio-madsim-fork.git", rev = "e47aafebf98e9c1734a8848a1876d5946c44bdd1", package = "real_tokio", features = ["full"] } | ||
bytes = { version = "1.1" } | ||
futures = { version = "0.3.0", features = ["async-await"] } | ||
mio = { version = "0.8.1" } | ||
real_tokio = { git = "ssh://git@github.com/iotaledger/tokio-madsim-fork.git", branch = "main", package = "real_tokio", features = ["full"] } | ||
bytes = { version = "1.7" } | ||
futures = { version = "0.3", features = ["async-await"] } | ||
mio = { version = "1.0" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fn main() { | ||
println!("cargo::rustc-check-cfg=cfg(msim)"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,59 +2,53 @@ | |
name = "msim" | ||
version = "0.1.0" | ||
edition = "2021" | ||
authors = ["Runji Wang <[email protected]>", "Mysten Labs <[email protected]>"] | ||
authors = ["IOTA Stiftung"] | ||
description = "Deterministic Simulator for distributed systems." | ||
readme = "../README.md" | ||
homepage = "https://github.com/MystenLabs/mysten-simulator" | ||
repository = "https://github.com/MystenLabs/mysten-simulator" | ||
homepage = "https://www.iota.org/" | ||
repository = "https://github.com/iotaledger/iota-sim" | ||
license = "Apache-2.0" | ||
keywords = ["distributed-systems", "async", "deterministic", "simulation"] | ||
categories = ["asynchronous", "simulation"] | ||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[features] | ||
default = ["macros", "rpc"] | ||
rpc = ["bincode"] | ||
default = ["macros"] | ||
macros = ["msim-macros", "tokio/macros"] | ||
|
||
[dependencies] | ||
bincode = { version = "1", optional = true } | ||
bytes = "1" | ||
bytes = "1.7" | ||
futures = "0.3" | ||
lazy_static = "1.4" | ||
lazy_static = "1.5" | ||
tracing = "0.1" | ||
tracing-subscriber = "0.3" | ||
msim-macros = { version = "0.1.0", path = "../msim-macros", optional = true } | ||
msim-macros = { version = "0.1", path = "../msim-macros", optional = true } | ||
rand = { version = "0.8", features = ["small_rng"] } | ||
serde = { version = "1", features = ["derive"] } | ||
serde = { version = "1.0", features = ["derive"] } | ||
pin-project-lite = "0.2" | ||
tap = "1" | ||
tap = "1.0" | ||
|
||
[build-dependencies] | ||
cc = { version = "1.0" } | ||
cc = { version = "1.1" } | ||
|
||
[target.'cfg(msim)'.dependencies] | ||
ahash = "0.7" | ||
ahash = "0.8" | ||
downcast-rs = "1.2" | ||
libc = "0.2" | ||
naive-timer = "0.2" | ||
tokio = { git = "https://github.com/mystenmark/tokio-madsim-fork.git", rev = "e47aafebf98e9c1734a8848a1876d5946c44bdd1", package = "real_tokio", features = ["full"] } | ||
tokio-util = { git = "https://github.com/mystenmark/tokio-madsim-fork.git", rev = "e47aafebf98e9c1734a8848a1876d5946c44bdd1", features = ["full"] } | ||
toml = "0.5" | ||
socket2 = "0.4" | ||
tokio = { git = "ssh://git@github.com/iotaledger/tokio-madsim-fork.git", branch = "main", package = "real_tokio", features = ["full"] } | ||
tokio-util = { git = "ssh://git@github.com/iotaledger/tokio-madsim-fork.git", branch = "main", features = ["full"] } | ||
toml = "0.8" | ||
socket2 = "0.5" | ||
erasable = "1.2" | ||
|
||
# TODO: revert back to the crates-io version after https://github.com/smol-rs/async-task/pull/34 merges | ||
async-task = { git = "https://github.com/mystenmark/async-task", rev = "4e45b26e11126b191701b9b2ce5e2346b8d7682f" } | ||
|
||
[dev-dependencies] | ||
criterion = "0.3" | ||
criterion = "0.5" | ||
structopt = "0.3" | ||
tokio = { git = "https://github.com/mystenmark/tokio-madsim-fork.git", rev = "e47aafebf98e9c1734a8848a1876d5946c44bdd1", package = "real_tokio", features = ["full"] } | ||
|
||
[[bench]] | ||
name = "rpc" | ||
harness = false | ||
tokio = { git = "ssh://[email protected]/iotaledger/tokio-madsim-fork.git", branch = "main", package = "real_tokio", features = ["full"] } | ||
|
||
[package.metadata.docs.rs] | ||
# all-features = true | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.