Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'cargo build' failing on Windows #173

Closed
danthi123 opened this issue Mar 18, 2025 · 1 comment
Closed

'cargo build' failing on Windows #173

danthi123 opened this issue Mar 18, 2025 · 1 comment

Comments

@danthi123
Copy link

Downloading all works but during compiling, I get the following:

error[E0433]: failed to resolve: could not find unix in os
--> rootshell\src\main.rs:6:14
|
6 | use std::os::unix::process::CommandExt;
| ^^^^ could not find unix in os
|
note: found an item that was configured out
--> /rustc/4eb161250e340c8f48f66e2b929ef4a5bed7c181\library\std\src\os\mod.rs:36:9
note: the item is gated here
--> /rustc/4eb161250e340c8f48f66e2b929ef4a5bed7c181\library\std\src\os\mod.rs:28:1
note: found an item that was configured out
--> /rustc/4eb161250e340c8f48f66e2b929ef4a5bed7c181\library\std\src\os\mod.rs:85:9
note: the item is gated here
--> /rustc/4eb161250e340c8f48f66e2b929ef4a5bed7c181\library\std\src\os\mod.rs:84:1

error[E0599]: no method named uid found for mutable reference &mut Command in the current scope
--> rootshell\src\main.rs:30:3
|
28 | / Command::new("/bin/bash")
29 | | .args(args)
30 | | .uid(0)
| | -^^^ method not found in &mut Command
| |_____|
|

Some errors have detailed explanations: E0433, E0599.
For more information about an error, try rustc --explain E0433.
error: could not compile rootshell (bin "rootshell") due to 2 previous errors
warning: build failed, waiting for other jobs to finish...

@cooperq
Copy link
Collaborator

cooperq commented Mar 19, 2025

We don't currently support building on windows, sorry

@cooperq cooperq closed this as completed Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants