Skip to content

Offer an API for applications to receive the paths to their config/cache/data/... directories #140

@soc

Description

@soc

This is inspired by dirs-dev/dirs-rs#19.

History has proven time and time again that people can't be bothered or relied on to implement these things correctly if they aren't given a straight-forward API that does everything for them.

So it would be nice if WASI had an API that followed the individual platforms' standards instead of forcing people to poorly reinvent things on their own.

I currently tend to think offering a mid-level abstraction like https://github.com/soc/directories-rs#projectdirs would be preferable to a low-level abstraction like https://github.com/soc/dirs-rs, but I think this would be a matter of consideration and debate.

I think timing is crucial, otherwise this ecosystem just turns into a mess similar to the situation on Linux/macOS/Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wasi:apiIssues pertaining to the WASI API, not necessarily specific to Wasmtime.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions