Benign crates 49,228 installs Download

web-streams 0.1.2

“WASM bindings for the Streams API”

Large registry install base (10k+ downloads)Package is at least one year old
SHA-25615c4d5dbf19463c4b65e974303d453cc11991873c7a4a4953214f791d73303a2
MaleculeH(Cm)Md(In)

Evidence

References a public code-forge URL CHANGELOG.md · lines 1–22
1# Changelog
2
3All notable changes to this project will be documented in this file.
4
5The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
8## [Unreleased]
9
10## [0.1.2](https://github.com/kixelated/web-rs/compare/web-streams-v0.1.1...web-streams-v0.1.2) - 2025-05-09
11
12### Other
⋯10 lines
imports js_sys::Reflect reader.rs · lines 1–48
1use std::marker::PhantomData;
2
3use js_sys::Reflect;
4use wasm_bindgen::prelude::*;
5use wasm_bindgen_futures::JsFuture;
6use web_sys::{js_sys, ReadableStream, ReadableStreamDefaultReader, ReadableStreamReadResult};
7
8use crate::{Error, PromiseExt};
9
10/// A wrapper around ReadableStream
11pub struct Reader<T: JsCast> {
12 inner: ReadableStreamDefaultReader,
13
14 // Keep the most recent promise to make `read` cancelable
15 read: Option<js_sys::Promise>,
16
⋯32 lines

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.