+ #[cfg(not(unix))]
+ // The compiler claims that std::fs::soft_link has been “replaced with
+ // std::os::unix::fs::symlink and std::os::windows::fs::{symlink_file, symlink_dir}”
+ // (rustc nightly 2021-12-26 deprecation warning message), but although that was true enough
+ // when it was deprecated, it’s no longer quite true because of the wasm32-wasi target, which
+ // supports symlinks through std::fs::soft_link but has no stable alternative (as I write,
+ // std::os::wasi::fs::symlink_path is behind feature(wasi_ext)). Frankly, I think that’s a fair
+ // (though imperfect) reason to *undeprecate* soft_link. Who knows what other platforms may in
+ // the future stop returning std::io::ErrorKind::Unsupported errors and start supporting
+ // std::fs::soft_link? (And for clarity, I note that no others do at the time of writing.)
+ #[allow(deprecated)]
+ pub use std::fs::{soft_link as symlink_auto,
+ soft_link as symlink_file,
+ soft_link as symlink_dir};