Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,3 +237,28 @@ jobs:
working-directory: ${{ matrix.example_directory }}
run: |
cargo clippy --locked

check-pico-de-gallo-examples:
runs-on: ubuntu-latest
# we use a matrix here just because env can't be used in job names
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
strategy:
fail-fast: false
matrix:
example_directory: ["examples/pico-de-gallo"]
name: ubuntu / check-examples
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install stable
uses: dtolnay/rust-toolchain@stable
- name: Download Cargo.lock files
if: ${{ inputs.download-lockfiles }}
uses: actions/download-artifact@v4
with:
name: updated-lock-files
- name: cargo clippy
working-directory: ${{ matrix.example_directory }}
run: |
cargo clippy --locked
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"Cargo.toml",
"examples/rt633/Cargo.toml",
"examples/rt685s-evk/Cargo.toml",
"examples/std/Cargo.toml"
"examples/std/Cargo.toml",
"examples/pico-de-gallo/Cargo.toml"
]
}
}
21 changes: 17 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ embassy-imxrt = { git = "https://github.com/OpenDevicePartnership/embassy-imxrt"
embassy-sync = "0.7.2"
embassy-time = "0.5.0"
embassy-time-driver = "0.2.1"
embedded-batteries-async = "0.2.0"
embedded-batteries-async = "0.3"
embedded-cfu-protocol = { git = "https://github.com/OpenDevicePartnership/embedded-cfu" }
embedded-hal = "1.0"
embedded-hal-async = "1.0"
Expand Down
2 changes: 2 additions & 0 deletions embedded-service/src/comms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ pub struct Data<'a> {
contents: &'a dyn Any,
}

unsafe impl<'a> Send for Data<'a> {}

impl<'a> Data<'a> {
/// Construct a Data portion of a Message from some data input
pub fn new(from: &'a impl Any) -> Self {
Expand Down
Loading
Loading