Skip to content

v0.4.0

Latest

Choose a tag to compare

@nekitbot nekitbot released this 02 Oct 16:15
· 1 commit to main since this release
2537f8d

0.4.0 (2026-10-02)

Features

  • Added bound propagation to #[derive(IntoOwned)].

    For instance:

    #[derive(IntoOwned)]
    struct Wrapped<T: Bound> {
        pub value: T,
    }

    Will generate the following implementation:

    impl<T: Bound> IntoOwned for Wrapped<T>
    where
        T: IntoOwned,
        <T as IntoOwned>::Owned: Bound,
    {
        type Owned = Wrapped<<T as IntoOwned>::Owned>;
    
        fn into_owned(self) -> Self::Owned {
            Self::Owned {
                value: IntoOwned::into_owned(self.value),
            }
        }
    }

Changes

  • Improved lifetime dependency resolution and promotion.

Fixes

  • Fixed several regressions in expansion.