-
Notifications
You must be signed in to change notification settings - Fork 124
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
External component #32
Comments
AFAIK there is no way to do this yet. Perhaps adding an env variable, or something in the Cargo.toml to allow specifying more header files? Instead of hardcoded to An alternative option is to move your custom component into a |
I've tried to go in an other way, just with creating a wrapper around this component based on |
There is currently no esp-idf-native way to do this, but you can do this with a sys-crate. We actually propagate all esp-idf gcc include arguments here. They can then be retrieved in all dependent build scripts with: embuild::build::CInclArgs::try_from_env("ESP_IDF") With this and the compiler you can use The compiler path you can get using |
Awesome! Thanks for assistant, will try that |
Hey, guys! Thanks for building such a great library! I just have a quick question - is there a way to use external (custom) ESP-IDF component in building this crate? Like importing with some env variable or anything else? For a moment I see that all of framework components and their headers are hardcoded in
binding.h
forbindgen
and without modification of sources I won't be able to integrate smth. Thanks in advance!The text was updated successfully, but these errors were encountered: