libdd-shared-runtime 4.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 = "4.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 = { workspace = true, features = ["alloc"] }
futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
tokio = { workspace = true, features = ["rt", "macros", "time"] }
tokio-util = "0.7.11"
tracing.workspace = true
libdd-capabilities = { path = "../libdd-capabilities", version = "3.0.1" }
libdd-common = { version = "6.0.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 = "5.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 = { workspace = true, features = ["executor"] }