radareorg / r2pipe.rs

Rust crate for r2pipe
Other
45 stars 19 forks source link

Windows port #9

Open radare opened 9 years ago

radare commented 9 years ago

Requires using named pipes and such

XVilka commented 8 years ago
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.

sushant94 commented 8 years ago

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.

radare commented 8 years ago

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 notifications@github.com 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 commented 8 years ago

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