Skip to content

Cannot precisely control read capacity of stream in Rust #1300

Open
@alexcrichton

Description

@alexcrichton

The stream type in WIT (note no type parameter) is modeled in Rust as StreamReader<()>. This takes a Vec<()> to read into but the capacity of Vec<()> is always usize::MAX. This means there's no way to precisely control the capacity of reads of stream in Rust.

Metadata

Metadata

Assignees

No one assigned

    Labels

    asyncRelated to async/streams in the component model.gen-rustRelated to bindings for Rust-compiled-to-WebAssembly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions