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

windows cargo run sample demo fail #546

Open
MrGlp opened this issue Mar 1, 2025 · 2 comments
Open

windows cargo run sample demo fail #546

MrGlp opened this issue Mar 1, 2025 · 2 comments

Comments

@MrGlp
Copy link

MrGlp commented Mar 1, 2025

when use cargo run command, will run fail
please help me,env: win

code only 10 lines
use async_trait::async_trait;
use pingora::prelude::*;
use std::sync::Arc;

fn main() {
println!("Hello, Gateway!");
let mut server = Server::new(None).unwrap();
server.bootstrap();
server.run_forever();
}

===========================

611 | CString::new(path.into_os_string().into()).map_err(|_| ErrorKind::PathContainsNul)
| ~~~~

Some errors have detailed explanations: E0308, E0412, E0425, E0433, E0599.
For more information about an error, try rustc --explain E0308.
error: could not compile daemonize (lib) due to 50 previous errors
warning: build failed, waiting for other jobs to finish...

@MrGlp
Copy link
Author

MrGlp commented Mar 1, 2025

Excuse me, can't such a simple program run on Windows? Is there something wrong with my environment? Can you help me? (I don't want to use things like WSL.)

@MrGlp
Copy link
Author

MrGlp commented Mar 1, 2025

Image

I just saw this picture and I'm really disappointed. I don't like Mac and wsl and ...

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

1 participant