-
-
Notifications
You must be signed in to change notification settings - Fork 292
Closed
Labels
A-local-offsetArea: local offsetArea: local offset
Description
I am having a similar issue with #495 but with a different cause.
I am compiling on Debian 10 for ESP32(target riscv32imc-esp-espidf)
The difference is I am using time v0.3.13 already and the error
error[E0609]: no field `tm_gmtoff` on type `tm`
--> /home/chung/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/time-0.3.13/src/sys/local_offset_at/unix.rs:49:27
|
49 | let seconds: i32 = tm.tm_gmtoff.try_into().ok()?;
| ^^^^^^^^^ unknown field
|
= note: available fields are: `tm_sec`, `tm_min`, `tm_hour`, `tm_mday`, `tm_mon` ... and 4 others
is caused by this line https://github.com/time-rs/time/blob/v0.3.13/src/sys/local_offset_at/unix.rs#L49
The deps in Cargo.toml is as below
[profile.release]
opt-level = "s"
[profile.dev]
debug = true # Symbols are nice and they don't increase the size on Flash
opt-level = "z"
[features]
pio = ["esp-idf-sys/pio"]
[dependencies]
anyhow = "*"
embedded-svc = "*"
esp-idf-svc = "*"
esp-idf-sys = { version = "0.31.6", features = ["binstart"] }
log = "*"
time = { version = "0.3.0", features = ["local-offset", "formatting"] }
[build-dependencies]
anyhow = "1"
embuild = "0.29"
Is there a hidden requirment on libc?
Metadata
Metadata
Assignees
Labels
A-local-offsetArea: local offsetArea: local offset