Skip to content

Fixes a lot of issues and upgrades to 3.4#34

Merged
coderedart merged 18 commits into
PistonDevelopers:masterfrom
coderedart:master
Apr 29, 2025
Merged

Fixes a lot of issues and upgrades to 3.4#34
coderedart merged 18 commits into
PistonDevelopers:masterfrom
coderedart:master

Conversation

@coderedart
Copy link
Copy Markdown

@coderedart coderedart commented Apr 4, 2025

partially closes PistonDevelopers/glfw-rs#586

  • support pre-built libraries on mac/windows.
  • support from source builds on all platforms.
  • support pkg-config based builds for using system (or custom-built) libraries.
  • pre-generated bindings using gen_bindings.sh script. And some manual bindings in src/sys/manual.rs.
  • built-time generated bindings using bindgen feature.
  • README updated and included in crate docs.
  • ported multi-window example from C to rust (from official glfw repo)
  • github workflow to check src/pre-built/pkgconfig + shared/static builds. It also checks generating bindings at build time and verify that pre-generated bindings are same on different platforms.
  • strip glfw version from crate's version (Anyone who wants the glfw version can use constants GLFW_VERSION_* for the header or glfwGetVersion function for the linked/loaded library).
  • use edition 2021 because a bunch of code uses features from that edition.
  • Add emscripten support + basic example
  • uses VULKAN_SDK for vulkan headers (if env var is set)
  • generate docs for linux/mac/win/emscripten on docs.rs with all features enabled.

* support from source builds on all platforms.
* pre-generated bindings using gen_bindings.sh script. And some manual bindings in `src/sys/manual.rs`.
* built-time generated bindings using bindgen feature.
* README updated and included in crate docs.
* ported multi-window example from C to rust (from official glfw repo)
* github workflow to check src/pre-built + shared/static builds. It also checks generating bindings at build time and verify that pre-generated bindings are same on different platforms.
* change version to just be normal.
* use edition 2021 because a bunch of code uses features from that edition.
@coderedart coderedart requested a review from bvssvni April 4, 2025 15:02
@coderedart coderedart self-assigned this Apr 4, 2025
@coderedart
Copy link
Copy Markdown
Author

ping @bvssvni

@coderedart
Copy link
Copy Markdown
Author

I think we can publish this to crates.io, to prepare for glfw-rs release.

@coderedart
Copy link
Copy Markdown
Author

Except for cross-compilation, I think this is more or less done.

If there's any issues found, we can fix them later. @bvssvni can you publish this to crates.io, so that we can move PistonDevelopers/glfw-rs#589 forward? Or add me as maintainer on crates.io too if you don't have the time :)

@coderedart coderedart merged commit ee8e5f0 into PistonDevelopers:master Apr 29, 2025
3 checks passed
@bvssvni bvssvni mentioned this pull request Jun 5, 2025
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

Successfully merging this pull request may close these issues.

Close out-dated issues and general maintenance

2 participants