Debian Codegraph @

debian/rust-vendor/link-section/docs/REEXPORT.md

raw
1 # Re-exporting from another crate
2
3 The macros assume this crate is available as a direct dependency, resolving their
4 support paths through the crate's own name. If you re-export this crate's items as
5 part of your own crate (so that downstream users don't need to depend on it
6 directly), you have two options:
7
8 - (preferred) use the declarative macro form. It resolves its support paths
9 relative to your re-export, so no extra configuration is required.
10 - Alternatively, pass the `crate_path` attribute to redirect the macro's
11 generated output to the path where this crate has been re-exported.
12
13 See the `crate_path` entry in the *Macro Attributes* section below for the exact
14 syntax for this crate.