Xuanwo opened a new issue, #6773:
URL: https://github.com/apache/opendal/issues/6773
### Describe the bug
Python enabled `ssh` support recently but `openssh` can't build on windows.
```
error: This crate can only be used on unix
-->
C:\Users\runneradmin\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\openssh-0.11.5\src\lib.rs:160:1
|
160 | compile_error!("This crate can only be used on unix");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0433]: failed to resolve: could not find `unix` in `os`
-->
C:\Users\runneradmin\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\openssh-0.11.5\src\stdio.rs:8:14
|
8 | use std::os::unix::io::{AsFd, AsRawFd, BorrowedFd, FromRawFd, OwnedFd,
RawFd};
| ^^^^ could not find `unix` in `os`
|
note: found an item that was configured out
-->
/rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb\library\std\src\os\mod.rs:29:5
|
= note: the item is gated here
note: found an item that was configured out
-->
/rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb\library\std\src\os\mod.rs:84:41
|
= note: the item is gated here
error[E0433]: failed to resolve: could not find `unix` in `net`
-->
C:\Users\runneradmin\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\openssh-0.11.5\src\stdio.rs:14:10
|
14 | net::unix::pipe::{Receiver as PipeReader, Sender as PipeWriter},
| ^^^^ could not find `unix` in `net`
|
note: found an item that was configured out
-->
C:\Users\runneradmin\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tokio-1.48.0\src\net\mod.rs:55:13
|
54 | / cfg_net_unix! {
55 | | pub mod unix;
| | ^^^^
56 | | pub use unix::datagram::socket::UnixDatagram;
57 | | pub use unix::listener::UnixListener;
58 | | pub use unix::stream::UnixStream;
59 | | pub use unix::socket::UnixSocket;
60 | | }
| |_- the item is gated here
error[E0433]: failed to resolve: could not find `unix` in `os`
-->
C:\Users\runneradmin\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\openssh-0.11.5\src\escape.rs:10:9
|
10 | os::unix::ffi::OsStrExt,
| ^^^^ could not find `unix` in `os`
|
note: found an item that was configured out
-->
/rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb\library\std\src\os\mod.rs:29:5
|
= note: the item is gated here
note: found an item that was configured out
-->
/rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb\library\std\src\os\mod.rs:84:41
|
= note: the item is gated here
error[E0433]: failed to resolve: could not find `unix` in `os`
-->
C:\Users\runneradmin\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\openssh-0.11.5\src\escape.rs:11:9
|
11 | os::unix::ffi::OsStringExt,
| ^^^^ could not find `unix` in `os`
|
note: found an item that was configured out
-->
/rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb\library\std\src\os\mod.rs:29:5
|
= note: the item is gated here
note: found an item that was configured out
-->
/rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb\library\std\src\os\mod.rs:84:41
|
= note: the item is gated here
For more information about this error, try `rustc --explain E0433`.
```
### Steps to Reproduce
In CI.
### Expected Behavior
Build pass.
### Additional Context
_No response_
### Are you willing to submit a PR to fix this bug?
- [ ] Yes, I would like to submit a PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]