1+ #![ cfg_attr( published_docs, feature( doc_cfg) ) ]
12/*
23 * Copyright (c) godot-rust; Bromeon and contributors.
34 * This Source Code Form is subject to the terms of the Mozilla Public
@@ -42,10 +43,10 @@ pub struct GodotVersion {
4243// Custom mode: Regenerate all files
4344
4445// This file is explicitly included in unit tests. Needs regex dependency.
45- #[ cfg( test) ]
46+ #[ cfg( test) ] # [ cfg_attr ( published_docs , doc ( cfg ( test ) ) ) ]
4647mod godot_version;
4748
48- #[ cfg( feature = "api-custom" ) ]
49+ #[ cfg( feature = "api-custom" ) ] # [ cfg_attr ( published_docs , doc ( cfg ( feature = "api-custom" ) ) ) ]
4950#[ path = "" ]
5051mod depend_on_custom {
5152 use super :: * ;
@@ -63,7 +64,7 @@ mod depend_on_custom {
6364 godot_exe:: write_gdextension_headers ( h_path, rs_path, false , watch) ;
6465 }
6566
66- #[ cfg( feature = "api-custom-extheader" ) ]
67+ #[ cfg( feature = "api-custom-extheader" ) ] # [ cfg_attr ( published_docs , doc ( cfg ( feature = "api-custom-extheader" ) ) ) ]
6768 pub fn write_gdextension_headers_from_c ( h_path : & Path , rs_path : & Path , watch : & mut StopWatch ) {
6869 godot_exe:: write_gdextension_headers ( h_path, rs_path, true , watch) ;
6970 }
@@ -73,13 +74,13 @@ mod depend_on_custom {
7374 }
7475}
7576
76- #[ cfg( feature = "api-custom" ) ]
77+ #[ cfg( feature = "api-custom" ) ] # [ cfg_attr ( published_docs , doc ( cfg ( feature = "api-custom" ) ) ) ]
7778pub use depend_on_custom:: * ;
7879
7980// ----------------------------------------------------------------------------------------------------------------------------------------------
8081// Custom mode: Generate all files based on user provided JSON.
8182
82- #[ cfg( feature = "api-custom-json" ) ]
83+ #[ cfg( feature = "api-custom-json" ) ] # [ cfg_attr ( published_docs , doc ( cfg ( feature = "api-custom-json" ) ) ) ]
8384#[ path = "" ]
8485mod depend_on_custom_json {
8586 use super :: * ;
@@ -105,13 +106,13 @@ mod depend_on_custom_json {
105106 }
106107}
107108
108- #[ cfg( feature = "api-custom-json" ) ]
109+ #[ cfg( feature = "api-custom-json" ) ] # [ cfg_attr ( published_docs , doc ( cfg ( feature = "api-custom-json" ) ) ) ]
109110pub use depend_on_custom_json:: * ;
110111
111112// ----------------------------------------------------------------------------------------------------------------------------------------------
112113// Prebuilt mode: Reuse existing files
113114
114- #[ cfg( not( any( feature = "api-custom" , feature = "api-custom-json" ) ) ) ]
115+ #[ cfg( not( any( feature = "api-custom" , feature = "api-custom-json" ) ) ) ] # [ cfg_attr ( published_docs , doc ( cfg ( not ( any ( feature = "api-custom" , feature = "api-custom-json" ) ) ) ) ) ]
115116#[ path = "" ]
116117mod depend_on_prebuilt {
117118 use super :: * ;
@@ -153,7 +154,7 @@ mod depend_on_prebuilt {
153154 }
154155}
155156
156- #[ cfg( not( any( feature = "api-custom" , feature = "api-custom-json" ) ) ) ]
157+ #[ cfg( not( any( feature = "api-custom" , feature = "api-custom-json" ) ) ) ] # [ cfg_attr ( published_docs , doc ( cfg ( not ( any ( feature = "api-custom" , feature = "api-custom-json" ) ) ) ) ) ]
157158pub use depend_on_prebuilt:: * ;
158159
159160// ----------------------------------------------------------------------------------------------------------------------------------------------
@@ -217,7 +218,7 @@ pub fn emit_wasm_nothreads_cfg() {
217218
218219 // The environment variable for target family has a list of applicable families separated by commas.
219220 // For Emscripten in particular, this can be "unix,wasm". Therefore, to check for the Wasm target, we must check each item in the list.
220- #[ cfg( feature = "experimental-wasm-nothreads" ) ]
221+ #[ cfg( feature = "experimental-wasm-nothreads" ) ] # [ cfg_attr ( published_docs , doc ( cfg ( feature = "experimental-wasm-nothreads" ) ) ) ]
221222 if std:: env:: var ( "CARGO_CFG_TARGET_FAMILY" )
222223 . expect ( "target family environment variable" )
223224 . split ( ',' )
0 commit comments