Commit 35b442f
committed
ln: add WASI support via symlink_path
On wasm32-wasip1, std::os::unix::fs::symlink is not available, but
WASI preview 1 provides path_symlink which Rust exposes as
std::os::wasi::fs::symlink_path. Import it under the symlink alias
so the existing call site works without changes.
Follows the same pattern as cp.rs for enabling wasi_ext.1 parent 5605eac commit 35b442f
1 file changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
488 | 492 | | |
489 | 493 | | |
490 | 494 | | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
0 commit comments