Skip to content

Commit

Permalink
Add brief comments on entry points
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Mar 27, 2022
1 parent b83accd commit cb5c6bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ fn env_var(name: &str) -> Option<String> {
None
}

/// Runtime entry point to initialize the virtual file system.
#[no_mangle]
unsafe extern "C" fn __internal_wasi_vfs_rt_init() {
extern "C" {
Expand All @@ -138,6 +139,7 @@ unsafe extern "C" fn __internal_wasi_vfs_rt_init() {
}
}

/// Packing-time entry point to scan the host file system.
#[no_mangle]
unsafe extern "C" fn __internal_wasi_vfs_pack_fs() {
std::panic::set_hook(Box::new(|info| {
Expand Down

0 comments on commit cb5c6bc

Please sign in to comment.