4 ms·
If you are using esp-idf-sys you can include external C library's. Beside it providing all the original esp-idf C bindings, it can include either locally vendor
by vollbrecht 3y ago
If you are using esp-idf-sys you can include external C library's. Beside it providing all the original esp-idf C bindings, it can include either locally vendored library's or (using the esp-idf component manager) remote components.
You just need to declare them correctly inside your Cargo.toml and it will automatically expose it all inside Rust. Though i have to say using C api's can be a hazard and to effectively using it you now have two problems as a potential rust beginner. First you need a good rust unsafe understanding and second you need good C understanding. So nothing i would recommend to a beginner, in either of this fields.