wasm-streams 0.3.0

Bridging between web streams and Rust streams using WebAssembly
Documentation
1
2
3
4
5
6
7
8
9
10
11
export function new_noop_transform_stream() {
    return new TransformStream();
}

export function new_uppercase_transform_stream() {
    return new TransformStream({
        transform(chunk, controller) {
            controller.enqueue(chunk.toUpperCase());
        }
    });
}