pw_kernel: Support in-library unit tests Support defining unit tests in the crate under test in the style of normal `cargo test` tests. This is accomplished via a global `//pw_kernel:enable_tests` flag which is used by individual Bazel targets to enable the Rust flag `--cfg=test`. Change-Id: I17130d924592383f3e820f8193ced5032b237739 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/294932 Reviewed-by: Erik Gilling <konkers@google.com> Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com> Commit-Queue: Joshua Liebow-Feeser <joshlf@google.com> Docs-Not-Needed: Joshua Liebow-Feeser <joshlf@google.com> Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dave Roth <davidroth@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.