@@ -83,9 +83,10 @@ pub fn profiled(meta: TokenStream, input: TokenStream) -> TokenStream {
8383
8484/// Makes it possible to use a type as a NativeScript.
8585///
86- /// ## Required attributes
86+ /// ## Type attributes
8787///
88- /// The following attributes are required on the type deriving `NativeClass`:
88+ /// The behavior of the derive macro can be customized using attributes on the type
89+ /// deriving `NativeClass`. All type attributes are optional.
8990///
9091/// ### `#[inherit(gdnative::api::BaseClass)]`
9192///
@@ -97,9 +98,10 @@ pub fn profiled(meta: TokenStream, input: TokenStream) -> TokenStream {
9798/// Inheritance from other scripts, either in Rust or other languages, is
9899/// not supported.
99100///
100- /// ## Optional type attributes
101+ /// If no `#[inherit(...)]` is provided, [`gdnative::api::Reference`](../gdnative/api/struct.Reference.html)
102+ /// is used as a base class. This behavior is consistent with GDScript: omitting the
103+ /// `extends` keyword will inherit `Reference`.
101104///
102- /// Behavior of the derive macro can be customized using attribute on the type:
103105///
104106/// ### `#[user_data(gdnative::user_data::SomeWrapper<Self>)]`
105107///
@@ -134,7 +136,10 @@ pub fn profiled(meta: TokenStream, input: TokenStream) -> TokenStream {
134136///
135137/// See documentation on `Instance::emplace` for an example on how this can be used.
136138///
137- /// ## Optional field attributes
139+ ///
140+ /// ## Field attributes
141+ ///
142+ /// All field attributes are optional.
138143///
139144/// ### `#[property]`
140145///
0 commit comments