libdd-shared-runtime 2.0.0

Shared tokio runtime with fork-safe worker management for Datadog libraries
Documentation
# Copyright 2025-Present Datadog, Inc. https://www.datadoghq.com/
# SPDX-License-Identifier: Apache-2.0

[package]
name = "libdd-shared-runtime"
version = "2.0.0"
description = "Shared tokio runtime with fork-safe worker management for Datadog libraries"
homepage = "https://github.com/DataDog/libdatadog/tree/main/libdd-shared-runtime"
repository = "https://github.com/DataDog/libdatadog/tree/main/libdd-shared-runtime"
edition.workspace = true
rust-version.workspace = true
license.workspace = true

[lib]
crate-type = ["lib"]
bench = false

[dependencies]
async-trait = "0.1"
futures = { version = "0.3", default-features = false, features = ["alloc"] }
futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
tokio = { version = "1.23", features = ["rt", "macros", "time"] }
tokio-util = "0.7.11"
tracing = { version = "0.1", default-features = false }
libdd-capabilities = { path = "../libdd-capabilities", version = "2.1.0" }
libdd-common = { version = "5.1.0", path = "../libdd-common", default-features = false }

[features]
default = ["https"]
https = ["libdd-capabilities-impl/https"]
fips = ["libdd-capabilities-impl/fips"]
regex-lite = ["libdd-common/regex-lite"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
libdd-capabilities-impl = { path = "../libdd-capabilities-impl", version = "3.0.0", default-features = false }
tokio = { version = "1.23", features = ["rt-multi-thread"] }

[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen-futures = "0.4"
futures-util = { version = "0.3", default-features = false, features = ["alloc", "channel"] }

[dev-dependencies]
futures = { version = "0.3", features = ["executor"] }