Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 144 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ published as two packages with different availability guarantees.

The universal package is maintained under
[`packages/libdatadog`](packages/libdatadog). Its matching native and WASM
backends expose Zstandard compression and DDSketch from a single native or
WASM artifact.
backends expose the agentless data pipeline, Zstandard compression, and
DDSketch from a single native or WASM artifact.

The package tries a platform-native napi-rs backend first. Native artifacts are
published as optional dependencies using napi-rs-compatible package names such
Expand Down
24 changes: 24 additions & 0 deletions crates/libdatadog-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,34 @@ name = "libdatadog_wasm"
[dependencies]
js-sys = "0.3"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
anyhow = "1"
bytes = "1"
futures = "0.3"
http = "1"
# The agentless v0.4 path does not compile or evaluate user-provided patterns.
# Use the smaller regex engine so the full engine and its Unicode tables are
# removed by the WASM linker.
libdd-ddsketch = "1.1.1"
# Keep this aligned with the pure-Rust WASM encoder used by libdatadog.
zrip = { version = "=0.6.0", default-features = false, features = ["alloc"] }

[dependencies.libdd-capabilities]
git = "https://github.com/DataDog/libdatadog.git"
rev = "322d9336fed24dcf78a214f488b0fd3fb9583ba6"
default-features = false

[dependencies.libdd-trace-utils]
git = "https://github.com/DataDog/libdatadog.git"
rev = "322d9336fed24dcf78a214f488b0fd3fb9583ba6"
default-features = false

[dependencies.libdd-data-pipeline-core]
git = "https://github.com/DataDog/libdatadog.git"
rev = "322d9336fed24dcf78a214f488b0fd3fb9583ba6"
default-features = false
features = ["compression", "regex-lite"]

[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.2", features = ["js"] }

Expand Down
Loading
Loading