The libc crate provides an flock symbol on all cfg(unix) targets except solaris. According to [this list](https://github.com/rust-lang/rust/issues/146312#issuecomment-3336089830), that's not entirely right. In particular: > Emscripten, Redox, AIX, ESPIDF: no support, as far as I can tell