Geal / rust-syslog

Send syslog messages from Rust
MIT License
109 stars 55 forks source link

can you help me get this to work on ESP32? #72

Open thomas725 opened 1 year ago

thomas725 commented 1 year ago

I've tried using your crate to log to a remote syslog server from my ESP32, but with version >=6.0.0 compilation fails like that:

error[E0425]: cannot find value `_SC_HOST_NAME_MAX` in crate `libc`
  --> /home/user/.cargo/registry/src/github.com-1...3/hostname-0.3.1/src/nix.rs:17:38
   |
17 |         unsafe { libc::sysconf(libc::_SC_HOST_NAME_MAX) as libc::size_t };
   |                                      ^^^^^^^^^^^^^^^^^ not found in `libc`

and with version <= 5.0.0 like that:

error[E0609]: no field `tm_gmtoff` on type `tm`
   --> /home/user/.cargo/registry/src/github.com-1...3/time-0.1.45/src/sys.rs:392:30
    |
392 |             let gmtoff = out.tm_gmtoff;
    |                              ^^^^^^^^^ unknown field