1 unstable release
0.1.0 | Jun 2, 2024 |
---|
#1136 in Embedded development
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
- Add the following line to your
Cargo.toml
:
embedded-utils = { version = "0.1.0" }
- 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
- Apache License, Version 2.0. LICENSE-APACHE or Apache-2.0 license
- MIT license. LICENSE-MIT or MIT license
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.