r2pipe.rs icon indicating copy to clipboard operation
r2pipe.rs copied to clipboard

Windows port

Open radare opened this issue 10 years ago • 4 comments

Requires using named pipes and such

radare avatar Sep 22 '15 13:09 radare

cargo : C:\Users\appveyor\.cargo\git\checkouts\r2pipe.rs-c72b596428d291cd\master\src\r2pipe.rs:5:5: 5:33 error: unresolved import `std::os::unix::io::FromRawFd`. Could not find `unix` in `std::os` [E0432]
At line:1 char:1
+ cargo build
+ ~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (C:\Users\appvey...td::os` [E0432]:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

C:\Users\appveyor\.cargo\git\checkouts\r2pipe.rs-c72b596428d291cd\master\src\r2pipe.rs
:5 use std::os::unix::io::FromRawFd;
                                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\appveyor\.cargo\git\checkouts\r2pipe.rs-c72b596428d291cd\master\src\r2pipe.rs:5:5: 5:33 help: run `rustc --explain E0432` to see a detailed explanation

C:\Users\appveyor\.cargo\git\checkouts\r2pipe.rs-c72b596428d291cd\master\src\r2pipe.rs:86:38: 86:55
 error: no associated item named `from_raw_fd` found for type `std::fs::File` in the current scope
C:\Users\appveyor\.cargo\git\checkouts\r2pipe.rs-c72b596428d291cd\master\src\r2pipe.rs:86                 read: BufReader::new(File::from_raw_fd(d_in)),
                                                                                                                               ^~~~~~~~~~~~~~~~~

C:\Users\appveyor\.cargo\git\checkouts\r2pipe.rs-c72b596428d291cd\master\src\r2pipe.rs:87:24: 87:41
 error: no associated item named `from_raw_fd` found for type `std::fs::File` in the current scope
C:\Users\appveyor\.cargo\git\checkouts\r2pipe.rs-c72b596428d291cd\master\src\r2pipe.rs:87                 write: File::from_raw_fd(d_out),
                                                                                                                 ^~~~~~~~~~~~~~~~~

error
: aborting due to 2 previous errors

output from AppVeyor.

XVilka avatar Jun 03 '16 11:06 XVilka

Ya, we should do something about windows cause r2pipe is the only blocker. Both radeco and radeco-lib work just fine. I'll take a look this weekend if I have sometime, shouldn't be too hard.

sushant94 avatar Jun 03 '16 14:06 sushant94

Its just using windows named pipe instead of yhe unix ones. You can check the python, c#, node bindings..

On 03 Jun 2016, at 16:58, Sushant Dinesh [email protected] wrote:

Ya, we should do something about windows cause r2pipe is the only blocker. Both radeco and radeco-lib work just fine. I'll take a look this weekend if I have sometime, shouldn't be too hard.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

radare avatar Jun 03 '16 15:06 radare

https://github.com/alexcrichton/rust/blob/7625198902e288da122ec908865ba3a39c46cfcb/src/libnative/io/pipe_win32.rs

radare avatar Jun 06 '16 11:06 radare