Skip to content
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

Integration with ds-rs & project ideas #1

Open
alex-spataru opened this issue Oct 7, 2020 · 3 comments
Open

Integration with ds-rs & project ideas #1

alex-spataru opened this issue Oct 7, 2020 · 3 comments

Comments

@alex-spataru
Copy link
Member

There are two ways that we can approach this problem:

  1. Use the limited C API exposed by ds-rs.
  2. Switch completely to Rust and use qmetaobject-rs or qml-rust to load the QML interface.

Personally, I have never worked with Rust. But I am willing to learn it because it is a systems programming language, which really interests me (aside of C/C++, I have only worked with Python and Ada).

@riftware
Copy link

riftware commented Oct 7, 2020

Never looked at rust myself. Are you thinking of using a dll to act as your interface to the Rust project? I mean the DLL will expose your C++ api to the QT UI? The DLL would be written in Rust but expose a more full fledged api?

@alex-spataru
Copy link
Member Author

alex-spataru commented Oct 11, 2020

@riftware As fas as I understand, we need to compile the ds-rs as a library, and then use its exposed C API with the QDriverStation UI (and a Qt-wrapper header for the ds-rs API). I am still figuring out how to compile it 😆

@StripedMonkey
Copy link

I'm not at all familiar with how rust works unfortunately, I'm not much of a rust guy either D: (Python noobs ftw) However, I think it's probably cleaner to simply have QDS become rust-based with QML and go from there. It would at minimum simplify the build process, as the one thing I'm incredibly attached to with rust is it's build system.

Really all QDS is supposed to be is a Driver Station lookalike, it shouldn't be much more than a frontend for ds-rs no? At least as far as I'm aware there's barely any real complexity needed for QDS if it were to use ds-rs as it's backend. If this project needs help I might be able to help a bit. I'm Alumni at this point though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants