tzdb icon indicating copy to clipboard operation
tzdb copied to clipboard

Does tzdb support no_std?

Open baoyachi opened this issue 1 year ago • 3 comments

baoyachi avatar Jul 21 '22 02:07 baoyachi

tzdb itself does not need any features in std, but tz-rs does not support no_std. This should be easily fixable, though, I think. I'll have a look if I can provide a PR upstream.

Cc @x-hgg-x

Kijewski avatar Jul 21 '22 02:07 Kijewski

🐂

baoyachi avatar Jul 21 '22 02:07 baoyachi

Ah, I think I spoke too early. iana-time-zone needs to read files, and I don't know how difficult it would be to use e.g. rustix to do the io operations (open, read file content, read symlink targets).

Kijewski avatar Jul 21 '22 12:07 Kijewski

Sorry, it's too complicated to make the module and all dependencies work with no-std.

Kijewski avatar Oct 12 '22 19:10 Kijewski

okay ,Thx @Kijewski

baoyachi avatar Oct 13 '22 01:10 baoyachi