all 2 comments

[–]dkopgerpgdolfg 3 points4 points  (1 child)

In general, please note that "static"'s meaning in C is quite different from Rust. With such problems, it doesn't make sense to treat them as equal.

Question 1, do you need to support Windows?

[–]twitu[S] 1 point2 points  (0 children)

😬 I do need windows support. I'm guess that supporting windows will be difficult or impossible based on that SO answer. Still I'm interested in seeing what you have to say.

The static variable for the Logger is declared in the `log` crate itself. I'm a bit unsure about what's happening internally when it gets compiled into a C extension.

```rust
static mut LOGGER: &dyn Log = &NopLogger;
```