Skip to content

Commit

Permalink
feat(layer): add madsim layer (#2006)
Browse files Browse the repository at this point in the history
* fix typo

* ,

* archive

* skeleton

* fmt

* panic in blocking func

* add license header

* fmt

* add doc

* delete unrelated changes

* refactor: madsim as a feature, delete real mod

* fix conflict

* delete useless modification

* update madsim version

* mark blocking func as not supported

* fix details

* rename struct

* throw error, rename var, set cap
  • Loading branch information
SkyFan2002 authored Apr 18, 2023
1 parent 22eda0f commit 59c1cce
Show file tree
Hide file tree
Showing 3 changed files with 435 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,16 @@ layers-all = [
"layers-prometheus",
"layers-tracing",
"layers-minitrace",
"layers-madsim"
]
# Enable layers chaos support
layers-chaos = ["dep:rand"]
# Enable layers metrics support
layers-metrics = ["dep:metrics"]
# Enable layers prometheus support
layers-prometheus = ["dep:prometheus"]
# Enable layers madsim support
layers-madsim = ["dep:madsim"]
# Enable layers minitrace support.
layers-minitrace = ["dep:minitrace"]
# Enable layers tracing support.
Expand Down Expand Up @@ -163,6 +166,7 @@ http = "0.2.5"
hyper = "0.14"
lazy-regex = { version = "2.5.0", optional = true }
log = "0.4"
madsim = {version = "0.2.21", optional = true }
md-5 = "0.10"
metrics = { version = "0.20", optional = true }
minitrace = { version = "0.4.0", optional = true }
Expand Down
Loading

0 comments on commit 59c1cce

Please sign in to comment.