pingora icon indicating copy to clipboard operation
pingora copied to clipboard

windows cargo run sample demo fail

Open MrGlp opened this issue 9 months ago • 3 comments

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 avatar Mar 01 '25 12:03 MrGlp

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 avatar Mar 01 '25 12:03 MrGlp

Image

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

MrGlp avatar Mar 01 '25 12:03 MrGlp

It is not available even on wsl

Image

VCCICCV avatar Apr 02 '25 17:04 VCCICCV