overdrivenpotato / rust-psp

Rust on PSP. Panic and allocation support. Access PSP system libraries.
Other
638 stars 33 forks source link

cargo psp issue #135

Closed diamant3 closed 2 years ago

diamant3 commented 2 years ago

Is rust-psp not supported on Windows or did I do something wrong?

I am using the rustup-init.exe(64-bit) installer

toolchain info:

PS C:\Users\diamant3\Desktop\psp-controller> rustup show  
Default host: x86_64-pc-windows-msvc
rustup home:  C:\Users\diamant3\.rustup

installed toolchains
--------------------

stable-x86_64-pc-windows-msvc
nightly-x86_64-pc-windows-msvc (default)

active toolchain
----------------

nightly-x86_64-pc-windows-msvc (default)
rustc 1.64.0-nightly (93ffde6f0 2022-07-23)

systeminfo:

PS C:\Users\diamant3\Desktop\psp-controller> systeminfo

Host Name:                 MSI
OS Name:                   Microsoft Windows 11 Home Single Language
OS Version:                10.0.22000 N/A Build 22000
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
Registered Owner:          diamant3

bug:

PS C:\Users\diamant3\Desktop\psp-controller> cargo psp
   Compiling psp v0.3.1
   Compiling cfg-if v0.1.10
   Compiling alloc v0.0.0 (C:\Users\diamant3\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\alloc)
error[E0433]: failed to resolve: could not find `unix` in `os`
 --> C:\Users\diamant3\.cargo\registry\src\github.com-1ecc6299db9ec823\psp-0.3.1\build.rs:1:20
  |
1 | use std::{env, os::unix::prelude::OsStrExt, path::Path};
  |                    ^^^^ could not find `unix` in `os`

   Compiling unwind v0.0.0 (C:\Users\diamant3\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\unwind)
error[E0599]: no method named `as_bytes` found for struct `OsString` in the current scope
  --> C:\Users\diamant3\.cargo\registry\src\github.com-1ecc6299db9ec823\psp-0.3.1\build.rs:15:10
   |
15 |         .as_bytes()
   |          ^^^^^^^^ method not found in `OsString`

Some errors have detailed explanations: E0433, E0599.
For more information about an error, try `rustc --explain E0433`.
error: could not compile `psp` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
PS C:\Users\diamant3\Desktop\psp-controller> 
sajattack commented 2 years ago

It used to be somewhat supported. (by which I mean we didn't test it heavily but it used to work) Looks like @overdrivenpotato may have accidentally broke it in this commit https://github.com/overdrivenpotato/rust-psp/commit/6faa1f93d98c9ea1b5a6762cb28407a8e07612cd

diamant3 commented 2 years ago

Thanks @sajattack , Maybe the best thing I can do is just wait for the fix. Is it okay to leave it open or close it?

sajattack commented 2 years ago

Leave it open.

sajattack commented 1 year ago

cargo install cargo-psp

sajattack commented 1 year ago

it could be a path issue. Regardless this is a problem installing rust crates independent of cargo-psp. I suggest you look at rust docs for windows.