This commit enhances the user experience by eliminating the need for explicit import statements when using #[derive(get_size::GetSize)]. Previously, the use of this derive required an accompanying use get_size::GetSize; statement, without which the compiler would raise a not-found trait error.
Automatic Trait Reference:
The derived code now references the GetSize trait using the full path ::get_size::GetSize. This change ensures that the trait is recognized by the compiler without requiring an explicit import statement by the user.
Use Case for Protobuf:
This update is particularly beneficial in scenarios like adding derives to protobuf-generated code, where manually importing traits can be challenging or impossible.
This commit simplifies the development process by streamlining the use of the GetSize derive and improving compatibility with generated code bases.
This commit enhances the user experience by eliminating the need for explicit import statements when using
#[derive(get_size::GetSize)]
. Previously, the use of this derive required an accompanyinguse get_size::GetSize;
statement, without which the compiler would raise a not-found trait error.Automatic Trait Reference:
GetSize
trait using the full path::get_size::GetSize
. This change ensures that the trait is recognized by the compiler without requiring an explicit import statement by the user.Use Case for Protobuf:
This commit simplifies the development process by streamlining the use of the
GetSize
derive and improving compatibility with generated code bases.