-
Notifications
You must be signed in to change notification settings - Fork 93
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
support for RUST language #281
Comments
Hi @jozeblackblox, Thank you for reaching out. Unfortunately, Rust is not within our current scope. However, I encourage you to submit this as a feature request in our forum. In the meantime, I recommend exploring the official ubxlib documentation and usage examples, which may provide helpful guidance for integrating it into your Rust project. Best of luck with your implementation! |
Hi @jozeblackblox, If I understood your question correctly, you could do something like this... So,
Now, build the library using your system's C/C++ build toolchain.
Make sure the library builds successfully and locate the generated library files ( ### Use bindgen to Create Rust Bindings Open your Cargo.toml and add
And it's done) Example
|
Hello! Thank you for the answer! I still have problems creating .a file to include it in my Rust project. Since I use ESP32, I tried with CMakeLists from ESP32 Runner, but without success. I tried with Windows and WSL2. Does UBXLIB rely on esp-idf or can I make standalone build? Can you specify build process with few more details? Thanks! |
Good afternoon, @jozeblackblox! Let's start from the beginning.
Ok, let me try to explain it step by step. Step 1:
I. Install ESP-IDF sudo apt update
sudo apt install git wget flex bison gperf python3 python3-pip cmake ninja-build ccache libffi-dev libssl-dev dfu-util II. Clone ESP-IDF repo git clone --recursive https://github.com/espressif/esp-idf.git
cd esp-idf
./install.sh III. Set environment variables . ./export.sh
./install.sh Step 2: Configure
|
Hello! Sorry for late response, I had to jump on another project. I have successfully created libubxlib.a with your instructions! Thanks! I can use functions, like uPortInit(), in my RUST code. Now I have to dig into cellular functionality 👷 I hope you will someday add support for the RUST language or maybe create a working example with an external C library 🙂 🙏 |
Hi there!!! 👋 I'm glad to hear that I could help you🤗. I wish you the best of luck with your projects!
We’ll have to wait a bit, I’m still studying:) I’d like to ask you a couple of questions about your experience. If you don’t mind, let me know how I can reach you, or you can message me wherever it’s convenient for you—all my links are in my profile🙃. Thanks! Have a good day! 🍀☀️😎 |
Hello!
I hope this is still in scope...
I want to use ubxlib in must std RUST project - I started from plain template .
How to build and use ubxlib?
The text was updated successfully, but these errors were encountered: