-
Notifications
You must be signed in to change notification settings - Fork 181
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
Extra component #363
Comments
See esp-rs/esp-idf-sys#114 (comment) for reference. |
For remote components,
And add this :
in my Cargo.toml in the root directory, but nothing happened after I ran the Cargo build (nothing with the name littlefs came up in the bindings.rs or anywhere else). |
I don't know if you already did this, but you still need a E.g. [[package.metadata.esp-idf-sys.extra_components]]
# Name and version from registry https://components.espressif.com/components/joltwallet/littlefs
remote_component = {name = "joltwallet/littlefs", version = "1.13.0"}
# The C header file in the src directory, that includes the relevant littlefs headers for bindings generation.
bindings_header = "src/bindings.h" esp-idf-sys is probably not rebuilt from the |
Its also good to compile with |
Now it is interesting and easy to use .
|
Thanks to "N3xed" , Got the result that I wanted. |
Is there an example or something to help us how to add a new component to esp-idf-hal.
I have read "https://github.com/esp-rs/esp-idf-sys/blob/master/BUILD-OPTIONS.md#extra-esp-idf-components", but even that is not a complete guide. e.g. I searched for this
[package.metadata.esp-idf-sys] extra_components = [ { component_dirs = [ "dir1", "dir2" ], bindings_header = "bindings.h", bindings_module = "name" } ]
i added this to my cargo.toml in the root directory, but nothing happens ("I expected to at least get an error message that there is no dir1 dir2 or something similar, but nothing happened after the cargo build).
My real question is that I use the following
[dependencies] esp-idf-svc = { version = "0.47.3", default-features = false }
And I would like to add the following :
https://github.com/joltwallet/esp_littlefs
as an external component to my project.
What are the ways I can achieve this (I prefer to use it as a patch besides using "esp-idf-svc" in my load and not to clone "esp-idf-svc" codes to my project directly and customize this . )
The text was updated successfully, but these errors were encountered: