diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-10-16 20:07:48 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-10-16 20:11:35 +0200 |
| commit | 213b4c9dca2e541c00e702b4476db3612f4d62b9 (patch) | |
| tree | f72cd3ee20e6e30e8e77a634144cb026c3ddd732 /embassy-time | |
| parent | 889d482d2d56f278826b0b1b59c53c22f91ef413 (diff) | |
time: add `links` key, release v0.1.5.
Diffstat (limited to 'embassy-time')
| -rw-r--r-- | embassy-time/CHANGELOG.md | 7 | ||||
| -rw-r--r-- | embassy-time/Cargo.toml | 8 | ||||
| -rw-r--r-- | embassy-time/build.rs | 3 |
3 files changed, 17 insertions, 1 deletions
diff --git a/embassy-time/CHANGELOG.md b/embassy-time/CHANGELOG.md index 0dd938c20..6e79addf6 100644 --- a/embassy-time/CHANGELOG.md +++ b/embassy-time/CHANGELOG.md | |||
| @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. | |||
| 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
| 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 7 | 7 | ||
| 8 | ## 0.1.5 - 2023-10-16 | ||
| 9 | |||
| 10 | - Added `links` key to Cargo.toml, to prevent multiple copies of this crate in the same binary. | ||
| 11 | Needed because different copies might get different tick rates, causing | ||
| 12 | wrong delays if the time driver is using one copy and user code is using another. | ||
| 13 | This is especially common when mixing crates from crates.io and git. | ||
| 14 | |||
| 8 | ## 0.1.4 - 2023-10-12 | 15 | ## 0.1.4 - 2023-10-12 |
| 9 | 16 | ||
| 10 | - Added more tick rates | 17 | - Added more tick rates |
diff --git a/embassy-time/Cargo.toml b/embassy-time/Cargo.toml index e4b88d784..87b57d1e1 100644 --- a/embassy-time/Cargo.toml +++ b/embassy-time/Cargo.toml | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | [package] | 1 | [package] |
| 2 | name = "embassy-time" | 2 | name = "embassy-time" |
| 3 | version = "0.1.4" | 3 | version = "0.1.5" |
| 4 | edition = "2021" | 4 | edition = "2021" |
| 5 | description = "Instant and Duration for embedded no-std systems, with async timer support" | 5 | description = "Instant and Duration for embedded no-std systems, with async timer support" |
| 6 | repository = "https://github.com/embassy-rs/embassy" | 6 | repository = "https://github.com/embassy-rs/embassy" |
| @@ -13,6 +13,12 @@ categories = [ | |||
| 13 | "asynchronous", | 13 | "asynchronous", |
| 14 | ] | 14 | ] |
| 15 | 15 | ||
| 16 | # Prevent multiple copies of this crate in the same binary. | ||
| 17 | # Needed because different copies might get different tick rates, causing | ||
| 18 | # wrong delays if the time driver is using one copy and user code is using another. | ||
| 19 | # This is especially common when mixing crates from crates.io and git. | ||
| 20 | links = "embassy-time" | ||
| 21 | |||
| 16 | [package.metadata.embassy_docs] | 22 | [package.metadata.embassy_docs] |
| 17 | src_base = "https://github.com/embassy-rs/embassy/blob/embassy-time-v$VERSION/embassy-time/src/" | 23 | src_base = "https://github.com/embassy-rs/embassy/blob/embassy-time-v$VERSION/embassy-time/src/" |
| 18 | src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-time/src/" | 24 | src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-time/src/" |
diff --git a/embassy-time/build.rs b/embassy-time/build.rs new file mode 100644 index 000000000..5b0095661 --- /dev/null +++ b/embassy-time/build.rs | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | // empty, needed to be able to use `links` in Cargo.toml. | ||
| 2 | |||
| 3 | fn main() {} | ||
