sozu-proxy / sozu

Sōzu HTTP reverse proxy, configurable at runtime, fast and safe, built in Rust. It is awesome!
https://www.sozu.io/
GNU Affero General Public License v3.0
2.92k stars 188 forks source link

unresolved imports `libc::mmap`, `libc::mprotect`, `libc::munmap`, `libc::MAP_ANON` #1070

Closed davehorner closed 4 months ago

davehorner commented 5 months ago
error[E0432]: unresolved imports `libc::mmap`, `libc::mprotect`, `libc::munmap`, `libc::MAP_ANON`, `libc::MAP_FAILED`, `libc::MAP_PRIVATE`, `libc::PROT_NONE`, `libc::PROT_READ`, `libc::PROT_WRITE`
 --> C:\Users\dhorner\.cargo\registry\src\index.crates.io-6f17d22bba15001f\poule-0.3.2\src\mmap.rs:7:5
  |
7 |     mmap, mprotect, munmap, MAP_ANON, MAP_FAILED, MAP_PRIVATE, PROT_NONE, PROT_READ, PROT_WRITE,
  |     ^^^^  ^^^^^^^^  ^^^^^^  ^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^^  ^^^^^^^^^  ^^^^^^^^^^ no `PROT_WRITE` in the root
  |     |     |         |       |         |           |            |          |
  |     |     |         |       |         |           |            |          no `PROT_READ` in the root
  |     |     |         |       |         |           |            no `PROT_NONE` in the root
  |     |     |         |       |         |           no `MAP_PRIVATE` in the root
  |     |     |         |       |         no `MAP_FAILED` in the root
  |     |     |         |       no `MAP_ANON` in the root
  |     |     |         no `munmap` in the root
  |     |     no `mprotect` in the root
  |     no `mmap` in the root
  |
  = help: consider importing this module instead:
          crate::mmap

Maybe I need to go to poule; I'm trying to run this on a Win11x64.

Wonshtrum commented 5 months ago

Hi, thanks for your interest in Sozu. We, unfortunately, do not currently support Windows, partly because poule, the memory pre-allocator we extensively use in Sozu, does not support it.

davehorner commented 4 months ago

thank you for the response sir and I hope things improve in the future!