Noir::RustUseImports
What a Rust file's top-level items bring into scope, read from the tree:
use lemmy_api::{post::{create::create_post, save::save_post as save}}; pub use self::handlers::*; #[path = "impl/real.rs"] mod real;
gives create_post => lemmy_api::post::create::create_post,
save => lemmy_api::post::save::save_post, the public glob
self::handlers, the module real at impl/real.rs, and the file's own
top-level fns. Only the top level is read: a use inside a fn or an
inline mod is scoped to that block. Items under #[cfg(test)] are left
out, and a name two uses bind to different paths is dropped as
ambiguous (e.g. #[cfg(feature = "a")] / #[cfg(not(feature = "a"))]).
No file I/O: callers hand over source text.
Constants
CFG_TEST_RE = /\A#\[\s*cfg\s*\(\s*test\s*\)\s*\]\z/
PATH_ATTR_RE = /\A#\[\s*path\s*=\s*"([^"]+)"\s*\]\z/