Skip to content

Add public-test-deps feature for better visibility control #424

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

Merged
merged 1 commit into from
Jun 3, 2021

Conversation

AaronKutch
Copy link
Contributor

@AaronKutch AaronKutch commented Jun 2, 2021

fixes #422. Now, the only unwanted things in the public interface are some macros. This is unavoidable because #[macro_export] does not allow for fine grained control. The public interface is finally fixed.

src/lib.rs Outdated
{$(#[$($meta:meta)*])* pub(crate) $ident:ident $($tokens:tt)*} => {
$(#[$($meta)*])* pub $ident $($tokens)*
};
}
Copy link
Member

Choose a reason for hiding this comment

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

If you place the macros before the mod items, you shouldn't need #[macro_export] and use crate::public_test_dep.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I managed to remove all macros from the public interface. I'm pretty sure I tried this before and it wouldn't work, I must have had some detail wrong.

@Amanieu Amanieu merged commit dab4379 into rust-lang:master Jun 3, 2021
@AaronKutch AaronKutch deleted the issue422 branch June 3, 2021 15:10
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.

u128_divide_sparc get build into rust stdlib for x86_64-pc-windows-msvc target
3 participants