-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bring in Rust support through the external module #78306
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The following west manifest projects have been modified in this Pull Request:
Note: This message is automatically posted and updated by the Manifest GitHub Action. |
a3cb3a3
to
35c7dcb
Compare
This was referenced Sep 12, 2024
Add zephyr-lang-rust as an optional module. This module brings in support for writing applications in Zephyr using the Rust programming language. At this point, the integration supports: - Building applications with Rust support. - CI testing of samples and tests from the rust module (twister functionality already present). Still to do is adding documentation to the Zephyr docs with an overview of Rust support as well as the generation of the rustdoc docs. Signed-off-by: David Brown <david.brown@linaro.org>
Although the Cmake rules for Rust leave all build files in the build directory, sometimes tools such as IDEs can leave a few files in the source tree. Ignore these to make sure they don't get committed. Signed-off-by: David Brown <david.brown@linaro.org>
Although the Cmake rules to build Rust applications keeps the target directory inside of the build directory, some IDE tools may generate a target directory while editing the code. Ignore these so they never get checked in. Signed-off-by: David Brown <david.brown@linaro.org>
Indicate that this the lang-rust module (modules/lang/rust) is maintained. Signed-off-by: David Brown <david.brown@linaro.org>
This is a little complicated. We currently just jump directly to rust's panic, so we aren't likely to actually need these unwind tables. But, they would be needed if we ever reall paniced. As of the time of this change, the tables seem to just be 24 bytes of ROM space. Signed-off-by: David Brown <david.brown@linaro.org>
I've incorporated #78901 here as it is needed to build any rust code that can possibly panic. It only affects some Cortex-M targets. |
d3zd3z
commented
Sep 25, 2024
teburd
previously approved these changes
Sep 25, 2024
In order to be able to ifdef based on `CONFIG_RUST`, the config must be defined in the main repo (because the rust module is optional). Add this as a placeholder. If the module is not availabe, the symbol will be present, and always disabled. The module will provide a full definition for the Kconfig. Signed-off-by: David Brown <david.brown@linaro.org>
pdgendt
approved these changes
Sep 25, 2024
teburd
approved these changes
Sep 25, 2024
MaureenHelm
approved these changes
Sep 26, 2024
nashif
approved these changes
Sep 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: Architectures
area: ARM
ARM (32-bit) Architecture
area: Process
area: Rust
Issues affecting Rust support in Zephyr
manifest
manifest-zephyr-lang-rust
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As discussed in the 2024-09-11 TSC, this PR brings in the work on the zephyr-collab branch with that work on an external module.
With this module. The tests and samples from the rust module will be tested by CI.