Skip to content

Commit fd5128b

Browse files
committed
Add docs.rs metadata
1 parent 0a9c7fb commit fd5128b

File tree

8 files changed

+43
-1
lines changed

8 files changed

+43
-1
lines changed

godot-bindings/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "MPL-2.0"
77
keywords = ["gamedev", "godot", "engine", "ffi", "sys"]
88
categories = ["game-engines", "graphics"]
99

10-
# Since features are additive and we want the user to user prebuilt by default, we need to have `prebuilt-godot` as the
10+
# Since features are additive, and we want the user to user prebuilt by default, we need to have `prebuilt-godot` as the
1111
# default feature. However, it's not possible to _disable_ the prebuilt dependency when specifying `api-custom` (without
1212
# requiring no-default-features), so we unfortunately still need to depend on prebuilt and just ignore it.
1313
# The artifact generator explicitly excludes that though (to avoid a quasi-circular dependency back to its repo).
@@ -34,3 +34,8 @@ which = { optional = true, version = "6" }
3434
[dev-dependencies]
3535
# For tests, we need regex unconditionally. Keep this in sync with above dependency.
3636
regex = { version = "1.5.5", default-features = false, features = ["std", "unicode-gencat"] }
37+
38+
# https://docs.rs/about/metadata
39+
[package.metadata.docs.rs]
40+
features = ["experimental-godot-api"]
41+
rustdoc-args = ["--cfg", "published_docs"]

godot-cell/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,8 @@ proptest = ["dep:proptest"]
1212

1313
[dependencies]
1414
proptest = { version = "1.4.0", optional = true }
15+
16+
# https://docs.rs/about/metadata
17+
[package.metadata.docs.rs]
18+
features = ["experimental-godot-api"]
19+
rustdoc-args = ["--cfg", "published_docs"]

godot-codegen/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,8 @@ regex = { version = "1.5.5", default-features = false, features = ["std", "unico
3333

3434
[build-dependencies]
3535
godot-bindings = { path = "../godot-bindings" } # emit_godot_version_cfg
36+
37+
# https://docs.rs/about/metadata
38+
[package.metadata.docs.rs]
39+
features = ["experimental-godot-api"]
40+
rustdoc-args = ["--cfg", "published_docs"]

godot-core/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,8 @@ serde_json = { version = "1.0" }
4040
[build-dependencies]
4141
godot-bindings = { path = "../godot-bindings" }
4242
godot-codegen = { path = "../godot-codegen" }
43+
44+
# https://docs.rs/about/metadata
45+
[package.metadata.docs.rs]
46+
features = ["experimental-godot-api"]
47+
rustdoc-args = ["--cfg", "published_docs"]

godot-ffi/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,8 @@ gensym = "0.1.1"
3232
[build-dependencies]
3333
godot-bindings = { path = "../godot-bindings" }
3434
godot-codegen = { path = "../godot-codegen" }
35+
36+
# https://docs.rs/about/metadata
37+
[package.metadata.docs.rs]
38+
features = ["experimental-godot-api"]
39+
rustdoc-args = ["--cfg", "published_docs"]

godot-fmt/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,20 @@
22
name = "godot-fmt"
33
version = "0.1.0"
44
edition = "2021"
5+
rust-version = "1.78"
56
license = "MPL-2.0"
7+
keywords = ["gamedev", "godot", "engine", "ffi"]
8+
categories = ["game-engines", "graphics"]
69

710
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
811

912
[dependencies]
1013
proc-macro2 = "1"
1114

15+
# https://docs.rs/about/metadata
16+
[package.metadata.docs.rs]
17+
features = ["experimental-godot-api"]
18+
rustdoc-args = ["--cfg", "published_docs"]
1219

1320
# Disabled below, since it pulls in too many dependencies during `cargo test` but is not really used.
1421
# Dev-dependencies cannot be optional and feature-gated. Enable manually when needed.

godot-macros/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@ venial = "0.6"
2626

2727
[build-dependencies]
2828
godot-bindings = { path = "../godot-bindings" } # emit_godot_version_cfg
29+
30+
# https://docs.rs/about/metadata
31+
[package.metadata.docs.rs]
32+
features = ["experimental-godot-api"]
33+
rustdoc-args = ["--cfg", "published_docs"]

godot/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,8 @@ trace = ["godot-core/trace"]
2929
[dependencies]
3030
godot-core = { path = "../godot-core" }
3131
godot-macros = { path = "../godot-macros" }
32+
33+
# https://docs.rs/about/metadata
34+
[package.metadata.docs.rs]
35+
features = ["experimental-godot-api"]
36+
rustdoc-args = ["--cfg", "published_docs"]

0 commit comments

Comments
 (0)