-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
Hide platform-specific code behind a single API #36
Comments
Marking this one as https://github.com/hannobraun/Fornjot/labels/good%20first%20issue, as it concerns a limited amount of code (which I linked in the original issue description) and doesn't require lots of knowledge about Fornjot. |
Is anyone working on this? I would like to work on this, also has the requirements changed from last it was updated? |
Hey @ozghimire, thank you for the interest! As far as I know, nobody is working on this. Feel free to pick it up! The requirements here are still up-to-date. I think the platform-specific code has changed very little, since I created this issue. |
Awesome, can you assign me this and I will start working on it. |
You can just start working whenever you want, and don't need me to officially assign you. But since you asked, I'll happily do it 😁 |
Hey @ozghimire, two notes:
|
@hannobraun So as part of the change, so the platform module should live inside the fj-host crate or it should be inside the fj-app? |
It needs to be in |
There is some platform-specific code in
model.rs
. There's also the watch event handling code inmain.rs
. This is fine for now, but following this approach everywhere will get unwieldy.I think the following concept would be better:
platforms
, that contains aPlatform
trait.#[cfg(...)]
as much as practical. All code should be compiled on all platforms, to prevent errors from creeping in.cfg!(...)
is fine, of course.The text was updated successfully, but these errors were encountered: