You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe avoid using attributes.md as a dumping ground for random attributes?
I think the last point may be the most debatable. Right now, to me, it appears as just a giant page that is difficult to navigate. I think it would be good to move the details off to separate pages, and just have an index in attributes.md that links to where to find each one. This is already done for about half the attributes. Unfortunately it's not really clear where some of the other attributes should live.
Here is a preliminary outline of how I think such an index would look, and where the attributes link to.
Conditional Compilation
cfg (conditional-compilation.md)
cfg_attr (conditional-compilation.md)
Testing
test
ignore
should_panic
Derive
derive
automatically_derived (currently undocumented)
Macro-related
macro_use (FUTURE macros-by-example.md)
macro_export (FUTURE macros-by-example.md)
proc_macro (procedural-macros.md)
proc_macro_derive (procedural-macros.md)
proc_macro_attribute (procedural-macros.md)
Lint Check
allow
deny
forbid
warn
must_use
Tool lints
Linking, Symbols, and FFI
link (external-blocks.md)
link_name (external-blocks.md???)
no_link (MAYBE extern-crates.md?)
repr (type-layout.md)
crate_type (linkage.md)
no_main
no_start
export_name (abi.md)
link_section (abi.md)
no_mangle (abi.md)
used (abi.md)
crate_name
windows_subsystem
Code Generation
inline
cold
no_builtins
target_feature (undocumented)
Compiler Settings
feature (undocumented)
recursion_limit
type_length_limit (undocumented)
Documentation
doc (rustdoc book)
Preludes
no_std (crates-and-source-files.md)
no_implicit_prelude (modules.md)
Deprecation
deprecated (maybe move this to lints or documentation?)
path (modules.md)
Runtime
panic_handler (runtime.md)
global_allocator (??? is this runtime?)
Tool
I'm thinking maybe just moving some of these to dedicated pages (testing, lints, code generation, etc.)
Any thoughts? Ideas on how to better organize? Does this sound terrible?
I would like to regroup and update the attributes page, and I would like some feedback on how to best improve it. Some of my goals are:
I think the last point may be the most debatable. Right now, to me, it appears as just a giant page that is difficult to navigate. I think it would be good to move the details off to separate pages, and just have an index in attributes.md that links to where to find each one. This is already done for about half the attributes. Unfortunately it's not really clear where some of the other attributes should live.
Here is a preliminary outline of how I think such an index would look, and where the attributes link to.
cfg(conditional-compilation.md)cfg_attr(conditional-compilation.md)testignoreshould_panicderiveautomatically_derived(currently undocumented)macro_use(FUTURE macros-by-example.md)macro_export(FUTURE macros-by-example.md)proc_macro(procedural-macros.md)proc_macro_derive(procedural-macros.md)proc_macro_attribute(procedural-macros.md)allowdenyforbidwarnmust_uselink(external-blocks.md)link_name(external-blocks.md???)no_link(MAYBE extern-crates.md?)repr(type-layout.md)crate_type(linkage.md)no_mainno_startexport_name(abi.md)link_section(abi.md)no_mangle(abi.md)used(abi.md)crate_namewindows_subsysteminlinecoldno_builtinstarget_feature(undocumented)feature(undocumented)recursion_limittype_length_limit(undocumented)doc(rustdoc book)no_std(crates-and-source-files.md)no_implicit_prelude(modules.md)deprecated(maybe move this to lints or documentation?)path(modules.md)panic_handler(runtime.md)global_allocator(??? is this runtime?)I'm thinking maybe just moving some of these to dedicated pages (testing, lints, code generation, etc.)
Any thoughts? Ideas on how to better organize? Does this sound terrible?