diff --git a/gdnative-core/src/init.rs b/gdnative-core/src/init.rs index 0cd7f2948..352e53b67 100644 --- a/gdnative-core/src/init.rs +++ b/gdnative-core/src/init.rs @@ -291,6 +291,8 @@ impl ClassBuilder { } pub fn add_signal(&self, signal: Signal) { + // FIXME(#357): Temporary allow for ExportInfo fields. + #[allow(deprecated)] unsafe { let name = GodotString::from_str(signal.name); let owned = signal diff --git a/gdnative-core/src/init/property.rs b/gdnative-core/src/init/property.rs index 392054a25..cf3abd0a1 100644 --- a/gdnative-core/src/init/property.rs +++ b/gdnative-core/src/init/property.rs @@ -1,5 +1,8 @@ //! Property registration. +// FIXME(#357): Temporary allow for ExportInfo fields. +#![allow(deprecated)] + use std::mem; use crate::get_api; @@ -30,8 +33,22 @@ pub trait Export: ToVariant { /// Metadata about the exported property. #[derive(Debug)] pub struct ExportInfo { + #[deprecated( + since = "0.8.1", + note = "Fields of ExportInfo will become private in 0.9. Use one of the constructors or Export::export_info instead." + )] pub variant_type: VariantType, + + #[deprecated( + since = "0.8.1", + note = "Fields of ExportInfo will become private in 0.9. Use one of the constructors or Export::export_info instead." + )] pub hint_kind: sys::godot_property_hint, + + #[deprecated( + since = "0.8.1", + note = "Fields of ExportInfo will become private in 0.9. Use one of the constructors or Export::export_info instead." + )] pub hint_string: GodotString, }