bnjbvr commented on Issue #2799:
crate-public is good for now.
+1 for this. I've tried to use it more generally, because making things generally public with
pub
(nopub(crate)
) seems to make unused code invisible to rustc; in theory, external users could still use it, so it's considered live code. (And rustc doesn't seem to try to infer that things markedpub
and buried in, but that are not accessible from the outside of the crate, are in fact equivalent topub(crate)
.)
Last updated: Dec 23 2024 at 12:05 UTC