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: Nov 22 2024 at 16:03 UTC