jeffcharles opened PR #10970 from jeffcharles:remove-file-input-stream-from-public-api to bytecodealliance:main:
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
I suspect based on looking at documentation for this struct that this struct was never intended to be part ofwasmtime-wasi's public API. Particularly given that external crates do not have access to theFilestruct that itsnewmethod expects as a parameter. TheFilestruct is public within the module but it's not exported by the crate so consumers outside the crate cannot create an instance of this struct to pass as a parameter toFileInputStream'snewmethod. IMHO it's a bit confusing as a user ofwasmtime-wasifor the type to exist on the public API if it isn't usable outside the crate.
jeffcharles requested alexcrichton for a review on PR #10970.
jeffcharles requested wasmtime-core-reviewers for a review on PR #10970.
pchickey submitted PR review.
pchickey merged PR #10970.
Last updated: Dec 06 2025 at 07:03 UTC