diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-06-29 19:51:16 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-06-29 19:55:32 +0200 |
| commit | 6eac49186d5a5da4c310027e59adcd0bf44ae514 (patch) | |
| tree | 3cbd9c15c68c7ee3859a17ec6d6fc7150e569686 /embassy-net-driver | |
| parent | 4feabb13bfbda46de74be09566118adc1ba49d5d (diff) | |
Release embassy-net v0.1
Diffstat (limited to 'embassy-net-driver')
| -rw-r--r-- | embassy-net-driver/Cargo.toml | 11 | ||||
| -rw-r--r-- | embassy-net-driver/README.md | 16 |
2 files changed, 26 insertions, 1 deletions
diff --git a/embassy-net-driver/Cargo.toml b/embassy-net-driver/Cargo.toml index ff6f29355..da6d9ad62 100644 --- a/embassy-net-driver/Cargo.toml +++ b/embassy-net-driver/Cargo.toml | |||
| @@ -3,7 +3,13 @@ name = "embassy-net-driver" | |||
| 3 | version = "0.1.0" | 3 | version = "0.1.0" |
| 4 | edition = "2021" | 4 | edition = "2021" |
| 5 | license = "MIT OR Apache-2.0" | 5 | license = "MIT OR Apache-2.0" |
| 6 | 6 | description = "Driver trait for the `embassy-net` async TCP/IP network stack." | |
| 7 | repository = "https://github.com/embassy-rs/embassy" | ||
| 8 | categories = [ | ||
| 9 | "embedded", | ||
| 10 | "no-std", | ||
| 11 | "asynchronous", | ||
| 12 | ] | ||
| 7 | 13 | ||
| 8 | [package.metadata.embassy_docs] | 14 | [package.metadata.embassy_docs] |
| 9 | src_base = "https://github.com/embassy-rs/embassy/blob/embassy-net-driver-v$VERSION/embassy-net-driver/src/" | 15 | src_base = "https://github.com/embassy-rs/embassy/blob/embassy-net-driver-v$VERSION/embassy-net-driver/src/" |
| @@ -11,5 +17,8 @@ src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-net-d | |||
| 11 | features = ["defmt"] | 17 | features = ["defmt"] |
| 12 | target = "thumbv7em-none-eabi" | 18 | target = "thumbv7em-none-eabi" |
| 13 | 19 | ||
| 20 | [package.metadata.docs.rs] | ||
| 21 | features = ["defmt"] | ||
| 22 | |||
| 14 | [dependencies] | 23 | [dependencies] |
| 15 | defmt = { version = "0.3", optional = true } \ No newline at end of file | 24 | defmt = { version = "0.3", optional = true } \ No newline at end of file |
diff --git a/embassy-net-driver/README.md b/embassy-net-driver/README.md index 84f25492d..6a757380d 100644 --- a/embassy-net-driver/README.md +++ b/embassy-net-driver/README.md | |||
| @@ -1,5 +1,21 @@ | |||
| 1 | # embassy-net-driver | 1 | # embassy-net-driver |
| 2 | 2 | ||
| 3 | This crate contains the driver trait necessary for adding [`embassy-net`](https://crates.io/crates/embassy-net) support | ||
| 4 | for a new hardware platform. | ||
| 5 | |||
| 6 | If you want to *use* `embassy-net` with already made drivers, you should depend on the main `embassy-net` crate, not on this crate. | ||
| 7 | |||
| 8 | If you are writing a driver, you should depend only on this crate, not on the main `embassy-net` crate. | ||
| 9 | This will allow your driver to continue working for newer `embassy-net` major versions, without needing an update, | ||
| 10 | if the driver trait has not had breaking changes. | ||
| 11 | |||
| 12 | See also [`embassy-net-driver-channel`](https://crates.io/crates/embassy-net-driver-channel), which provides a higer-level API | ||
| 13 | to construct a driver that processes packets in its own background task and communicates with the `embassy-net` task via | ||
| 14 | packet queues for RX and TX. | ||
| 15 | |||
| 16 | ## Interoperability | ||
| 17 | |||
| 18 | This crate can run on any executor. | ||
| 3 | 19 | ||
| 4 | ## License | 20 | ## License |
| 5 | 21 | ||
