mirror of
https://github.com/bevyengine/bevy
synced 2025-01-10 20:29:01 +00:00
# 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: 
18 lines
440 B
TOML
18 lines
440 B
TOML
[package]
|
|
name = "bevy_ptr"
|
|
version = "0.14.0-dev"
|
|
edition = "2021"
|
|
description = "Utilities for working with untyped pointers in a more safe way"
|
|
homepage = "https://bevyengine.org"
|
|
repository = "https://github.com/bevyengine/bevy"
|
|
license = "MIT OR Apache-2.0"
|
|
keywords = ["bevy", "no_std"]
|
|
|
|
[dependencies]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[package.metadata.docs.rs]
|
|
rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"]
|
|
all-features = true
|