File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
godot-codegen/src/special_cases Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 26
26
# * report_objects: list individual leaked objects when running LeakSanitizer
27
27
LSAN_OPTIONS : report_objects=1
28
28
29
- CARGO_DENY_VERSION : " 0.16.1 "
30
- CARGO_MACHETE_VERSION : " 0.7.0 "
29
+ CARGO_DENY_VERSION : " 0.18.5 "
30
+ CARGO_MACHETE_VERSION : " 0.9.1 "
31
31
32
32
33
33
defaults :
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ pub fn is_native_struct_excluded(ty: &str) -> bool {
97
97
codegen_special_cases:: is_native_struct_excluded ( ty)
98
98
}
99
99
100
+ #[ rustfmt:: skip]
100
101
pub fn is_godot_type_deleted ( godot_ty : & str ) -> bool {
101
102
// Note: parameter can be a class or builtin name, but also something like "enum::AESContext.Mode".
102
103
@@ -117,15 +118,20 @@ pub fn is_godot_type_deleted(godot_ty: &str) -> bool {
117
118
}
118
119
}
119
120
121
+ // cfg!(target_os = "...") are relatively new and need more testing. If causing problems, revert to `true` (deleted) for now.
122
+ // TODO(v0.5): for doc generation, consider moving the target-filters to the generated code, so that API docs still show the classes.
120
123
match godot_ty {
121
- // Hardcoded cases that are not accessible.
122
124
// Only on Android.
125
+ | "JavaClass"
123
126
| "JavaClassWrapper"
127
+ | "JavaObject"
124
128
| "JNISingleton"
125
- | "JavaClass"
129
+ => !cfg ! ( target_os = "android" ) ,
130
+
126
131
// Only on Wasm.
127
132
| "JavaScriptBridge"
128
133
| "JavaScriptObject"
134
+ => !cfg ! ( target_os = "emscripten" ) ,
129
135
130
136
// Thread APIs.
131
137
| "Thread"
You can’t perform that action at this time.
0 commit comments