-
Notifications
You must be signed in to change notification settings - Fork 196
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
Allow usage in a CMake-based build #7
Comments
@igrr, @georgik - to make the CMake-first build compatible with
Any help (in terms of |
@georgik Can you help with ^^^? I have the (minimal) changes to the |
That would be really nice if we could do it, we'd love to be able to start hacking on Rust with |
@georgik As per my comment in the Matrix channel - strictly speaking - you can use All these crates give you, is (a) unsafe, autogenerated Rust bindings to the ESP-ID C APIs (= So in fact I would argue that the above environment variables ( Side topic: this code seems a bit strange. The decision (whether your crate is having a "std" feature enabled or not - and note that this is different from e.g. building the std library as part of your crate build) should not be taken based on the chip type. Overall, I think there is still some confusion around the whole STD topic. For a reason of course - the topic is a bit intricate and the presence of two "std-related" notions (the no_std notion and the notion of whether you want to build - as part of your crate build - either the std library or the core library) does not make it easier. Perhaps we should discuss during the next meeting. |
IIRC this might be a leftover (?) from the time when we couldn't build std on rv32imc due to missing atomics. |
Hi (cross-linking from espressif/rust-esp32-example#34)
thanks so much for your work on embedded rust, and in particular on ESP chips :)
We're a company using ESP on our hardware, and we'd love to move our codebase to Rust. Because that move will be incremental, we'd like to compile our C/C++ codebase and switch some modules to Rust incrementally. For this, it seems more natural to use a "CMake-based" build that would compile our Rust modules as a library, and link our code to it. And of course, we'd love to use
esp-idf-svc
:)For now, we saw https://github.com/ivmarkov/rust-esp32-std-hello which uses
esp-idf-svc
, but uses a "cargo-first" build which seems less natural for us.Would it be possible to allow building
esp-idf-svc
using a CMake build so that it can be included in a CMake project like for instance https://github.com/espressif/rust-esp32-example ?The text was updated successfully, but these errors were encountered: