# Objective - In #12366 `![cfg_attr(docsrs, feature(doc_auto_cfg))] `was added. But to apply it it needs `--cfg=docsrs` in rustdoc-args. ## Solution - Apply `--cfg=docsrs` to all crates and CI. I also added `[package.metadata.docs.rs]` to all crates to avoid adding code behind a feature and forget adding the metadata. Before:  After: 
		
			
				
	
	
		
			37 lines
		
	
	
		
			932 B
		
	
	
	
		
			TOML
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			932 B
		
	
	
	
		
			TOML
		
	
	
	
	
	
[package]
 | 
						|
name = "bevy_input"
 | 
						|
version = "0.14.0-dev"
 | 
						|
edition = "2021"
 | 
						|
description = "Provides input functionality for Bevy Engine"
 | 
						|
homepage = "https://bevyengine.org"
 | 
						|
repository = "https://github.com/bevyengine/bevy"
 | 
						|
license = "MIT OR Apache-2.0"
 | 
						|
keywords = ["bevy"]
 | 
						|
 | 
						|
[features]
 | 
						|
default = []
 | 
						|
serialize = ["serde"]
 | 
						|
 | 
						|
[dependencies]
 | 
						|
# bevy
 | 
						|
bevy_app = { path = "../bevy_app", version = "0.14.0-dev" }
 | 
						|
bevy_ecs = { path = "../bevy_ecs", version = "0.14.0-dev" }
 | 
						|
bevy_math = { path = "../bevy_math", version = "0.14.0-dev" }
 | 
						|
bevy_utils = { path = "../bevy_utils", version = "0.14.0-dev" }
 | 
						|
bevy_reflect = { path = "../bevy_reflect", version = "0.14.0-dev", features = [
 | 
						|
  "glam",
 | 
						|
  "smol_str",
 | 
						|
] }
 | 
						|
 | 
						|
# other
 | 
						|
serde = { version = "1", features = ["derive"], optional = true }
 | 
						|
thiserror = "1.0"
 | 
						|
smol_str = "0.2"
 | 
						|
 | 
						|
[lints]
 | 
						|
workspace = true
 | 
						|
 | 
						|
[package.metadata.docs.rs]
 | 
						|
rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"]
 | 
						|
all-features = true
 |