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

Re-exports crates for which local traits are implemented #54

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Tomaz-Vieira
Copy link

@Tomaz-Vieira Tomaz-Vieira commented Oct 8, 2023

This PR allows users to access the exact crates for which ShaderType is implemented when using optional features like e.g. nalgebra or tinyvec. This is done like so: encase::nalgebra::...

Without this PR, consumers of this crate must look into encase's Cargo.lock file and add exactly the same version of encase's dependency to their own Cargo.toml file.

closes #51

pub use imbl;
#[cfg(all(feature = "rpds", feature = "archery"))]
pub use rpds;

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like these should all be wrapped in a pub mod reexports or they will be in the root. Actually it might not be that bad since most people will only enable one or a few of these anyway.

Thoughts?

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.

Consider reexporting crates for which ShaderType are implemented
2 participants