Remove tokio dependency from tendermint-machine

Indirects it via a minimal wrapper which can be trivially patched.
This commit is contained in:
Luke Parker
2024-09-05 16:30:27 -04:00
parent efc7d70ab1
commit ac7b98daac
10 changed files with 70 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
[package]
name = "patchable-async-sleep"
version = "0.1.0"
description = "An async sleep function, patchable to the preferred runtime"
license = "MIT"
repository = "https://github.com/serai-dex/serai/tree/develop/common/patchable-async-sleep"
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
keywords = ["async", "sleep", "tokio", "smol", "async-std"]
edition = "2021"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[lints]
workspace = true
[dependencies]
tokio = { version = "1", default-features = false, features = [ "time"] }