-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stub out WASI support to make things compile
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// TODO: flesh this out once actual WASI APIs for this are designed. | ||
// | ||
// For now here are just enough definitions to make things *compile*. | ||
|
||
use std::path::PathBuf; | ||
|
||
pub fn home_dir() -> Option<PathBuf> { None } | ||
pub fn cache_dir() -> Option<PathBuf> { None } | ||
pub fn config_dir() -> Option<PathBuf> { None } | ||
pub fn data_dir() -> Option<PathBuf> { None } | ||
pub fn data_local_dir() -> Option<PathBuf> { None } | ||
pub fn runtime_dir() -> Option<PathBuf> { None } | ||
pub fn executable_dir() -> Option<PathBuf> { None } | ||
pub fn audio_dir() -> Option<PathBuf> { None } | ||
pub fn desktop_dir() -> Option<PathBuf> { None } | ||
pub fn document_dir() -> Option<PathBuf> { None } | ||
pub fn download_dir() -> Option<PathBuf> { None } | ||
pub fn font_dir() -> Option<PathBuf> { None } | ||
pub fn picture_dir() -> Option<PathBuf> { None } | ||
pub fn public_dir() -> Option<PathBuf> { None } | ||
pub fn template_dir() -> Option<PathBuf> { None } | ||
pub fn video_dir() -> Option<PathBuf> { None } |