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

Globally remove all allow(dead_code) exceptions and make extensions public #430

Merged
merged 5 commits into from
May 8, 2021

Conversation

MarijnS95
Copy link
Collaborator

allow(dead_code) is hiding the fact that some extension functions are inadvertently not public and hence unusable by crate users, nor does it enforce clean coding practices.

In addition remove ash/src/allocator.rs which does not appear to be used (anymore?) and isn't in a working state anyway.


CC @Rua, I'm curious how you intended to use these extensions in vulkano :)

Fixes: 5eb39fe ("Add VK_KHR_get_physical_device_properties2 extension (#400)")
Fixes: 98d66c6 ("Add VK_KHR/EXT_buffer_device_address extension (#405)")
Fixes: d8d7423 ("Add VK_KHR_get_memory_requirements2 extension (#401)")
Fixes: a0a1f5d ("Add VK_KHR_maintenance extensions (#406)")
This is hiding the fact that some extension functions are inadvertently
not public and hence unusable by crate users, nor does it enforce clean
coding practices.

In addition remove `ash/src/allocator.rs` which does not appear to be
used (anymore?) and isn't in a working state anyway.
@Rua
Copy link
Contributor

Rua commented May 8, 2021

Vulkano already uses them, so any switch to Ash would require support for them, that's all.

@MarijnS95
Copy link
Collaborator Author

@Rua I meant that the functions were not accessible outside of the Ash crate before this PR 😉

@Rua
Copy link
Contributor

Rua commented May 8, 2021

Oops! Well, the Vulkano conversion hasn't happened yet. Still some implementation details to consider, as well as the suggestion to use Erupt instead that someone brought up.

@MaikKlein MaikKlein merged commit 28b6253 into master May 8, 2021
@MarijnS95 MarijnS95 deleted the pub-api branch May 8, 2021 19:45
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.

3 participants