diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-01-26 14:23:51 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2024-01-26 14:23:51 +0100 |
| commit | adb024bdbe49ba77b3f30af016c0c2ee184f456b (patch) | |
| tree | b0eaaa86ca866a78287340bfdf81a941887dc980 | |
| parent | 73cfa8f8a9b1c462c829b82a534af96cc652bb39 (diff) | |
usb-dfu: add docs metadata.
| -rwxr-xr-x | .github/ci/doc.sh | 2 | ||||
| -rw-r--r-- | embassy-usb-dfu/Cargo.toml | 14 |
2 files changed, 13 insertions, 3 deletions
diff --git a/.github/ci/doc.sh b/.github/ci/doc.sh index d0aff1e43..7112d8aaa 100755 --- a/.github/ci/doc.sh +++ b/.github/ci/doc.sh | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | ## on push branch=main | 2 | ## on push branch=main |
| 3 | 3 | ||
| 4 | set -euo pipefail | 4 | set -euxo pipefail |
| 5 | 5 | ||
| 6 | export RUSTUP_HOME=/ci/cache/rustup | 6 | export RUSTUP_HOME=/ci/cache/rustup |
| 7 | export CARGO_HOME=/ci/cache/cargo | 7 | export CARGO_HOME=/ci/cache/cargo |
diff --git a/embassy-usb-dfu/Cargo.toml b/embassy-usb-dfu/Cargo.toml index 1ca5fea42..4d6ffeb5f 100644 --- a/embassy-usb-dfu/Cargo.toml +++ b/embassy-usb-dfu/Cargo.toml | |||
| @@ -12,14 +12,24 @@ categories = [ | |||
| 12 | "asynchronous" | 12 | "asynchronous" |
| 13 | ] | 13 | ] |
| 14 | 14 | ||
| 15 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | 15 | [package.metadata.embassy_docs] |
| 16 | src_base = "https://github.com/embassy-rs/embassy/blob/embassy-usb-v$VERSION/embassy-usb-dfu/src/" | ||
| 17 | src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-usb-dfu/src/" | ||
| 18 | features = ["defmt", "cortex-m"] | ||
| 19 | target = "thumbv7em-none-eabi" | ||
| 20 | flavors = [ | ||
| 21 | { name = "dfu", features = [ "dfu" ] }, | ||
| 22 | { name = "application", features = [ "application" ] }, | ||
| 23 | ] | ||
| 24 | |||
| 25 | [package.metadata.docs.rs] | ||
| 26 | features = ["defmt", "cortex-m", "dfu"] | ||
| 16 | 27 | ||
| 17 | [dependencies] | 28 | [dependencies] |
| 18 | bitflags = "2.4.1" | 29 | bitflags = "2.4.1" |
| 19 | cortex-m = { version = "0.7.7", features = ["inline-asm"], optional = true } | 30 | cortex-m = { version = "0.7.7", features = ["inline-asm"], optional = true } |
| 20 | defmt = { version = "0.3.5", optional = true } | 31 | defmt = { version = "0.3.5", optional = true } |
| 21 | embassy-boot = { version = "0.2.0", path = "../embassy-boot" } | 32 | embassy-boot = { version = "0.2.0", path = "../embassy-boot" } |
| 22 | # embassy-embedded-hal = { version = "0.1.0", path = "../embassy-embedded-hal" } | ||
| 23 | embassy-futures = { version = "0.1.1", path = "../embassy-futures" } | 33 | embassy-futures = { version = "0.1.1", path = "../embassy-futures" } |
| 24 | embassy-sync = { version = "0.5.0", path = "../embassy-sync" } | 34 | embassy-sync = { version = "0.5.0", path = "../embassy-sync" } |
| 25 | embassy-time = { version = "0.3.0", path = "../embassy-time" } | 35 | embassy-time = { version = "0.3.0", path = "../embassy-time" } |
