rings-runtime 0.39.0

Shared native/browser runtime contracts (timers, task scheduling, thread-safety bounds) for Rings
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "rings-runtime"
version = "0.39.0"
authors = ["RND <dev@rings.rs>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared native/browser runtime contracts (timers, task scheduling, thread-safety bounds) for Rings"
homepage = "https://rings.rs"
readme = "README.md"
keywords = [
    "runtime",
    "wasm",
    "async",
]
categories = [
    "asynchronous",
    "wasm",
]
license = "AGPL-3.0-only"
repository = "https://github.com/RingsNetwork/rings"

[features]
browser = [
    "dep:js-sys",
    "dep:wasm-bindgen",
    "dep:wasm-bindgen-futures",
    "dep:web-sys",
]
default = ["tokio"]
tokio = ["dep:tokio"]

[lib]
name = "rings_runtime"
path = "src/lib.rs"

[dependencies.futures]
version = "0.3.21"
features = ["std"]
default-features = false

[dependencies.futures-timer]
version = "3.0.2"

[dependencies.js-sys]
version = "0.3.98"
optional = true

[dependencies.thiserror]
version = "1.0.47"

[dependencies.tokio]
version = "1.32.0"
features = ["rt"]
optional = true

[dependencies.wasm-bindgen]
version = "0.2.121"
optional = true

[dependencies.wasm-bindgen-futures]
version = "0.4.71"
optional = true

[dependencies.web-sys]
version = "0.3.64"
features = [
    "Window",
    "WorkerGlobalScope",
    "ServiceWorkerGlobalScope",
]
optional = true

[dev-dependencies.futures]
version = "0.3.21"
features = ["executor"]

[dev-dependencies.wasm-bindgen-test]
version = "0.3.71"

[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.tokio]
version = "1.32.0"
features = [
    "macros",
    "rt",
    "rt-multi-thread",
    "sync",
    "time",
]

[lints.clippy]
expect_used = "deny"
indexing_slicing = "deny"
panic = "deny"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"

[lints.rust]
missing_docs = "deny"
warnings = "deny"