#embedded-hal #embedded-hal-async #no-std

no-std embedded-utils

embedded-utils provides some features in Rust(no_std) embedded systems

1 unstable release

0.1.0 Jun 2, 2024

#594 in Embedded development

MIT/Apache

10KB
159 lines

embedded-utils

embedded-utils provides some features in Rust(no_std) embedded systems.

Crate Feature Flags

The following crate feature flags are available:

  • time: enable processing time.

Usage

  1. Add the following line to your Cargo.toml:
embedded-utils = { version = "0.1.0" }
  1. Use time for processing time.:
use embedded_utils::time::{DateTime, TimeZone};

let datetime = DateTime::from_unix_millis(1704067199998, TimeZone::AsiaShanghai);
println!("datetime year is {}", datetime.year);

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps

Features