pin-project

A crate for safe and ergonomic pin-projection.

APACHE-2.0 License

Downloads
315.9M
Stars
595
Committers
12

Bot releases are visible (Hide)

pin-project - 1.0.1

Published by taiki-e about 4 years ago

pin-project - 1.0.0

Published by taiki-e about 4 years ago

Changes since the 1.0.0-alpha.1 release:

pin-project - 0.4.27

Published by taiki-e about 4 years ago

  • Update minimal version of syn to 1.0.44
pin-project - 0.4.26

Published by taiki-e about 4 years ago

pin-project - 0.4.25

Published by taiki-e about 4 years ago

  • Suppress drop_bounds lint, which will be added to rustc in the future. See #272 for more details.

    (Note: 1.0.0-alpha.1 already contains this change.)

pin-project - 0.4.24

Published by taiki-e about 4 years ago

  • Fix compatibility of generated code with forbid(future_incompatible)

    Note: This does not guarantee compatibility with forbid(future_incompatible) in the future.
    If rustc adds a new lint, we may not be able to keep this.

pin-project - 1.0.0-alpha.1

Published by taiki-e about 4 years ago

See also tracking issue for 1.0 release.

pin-project - 0.4.23

Published by taiki-e about 4 years ago

pin-project - 0.4.22

Published by taiki-e over 4 years ago

  • Documentation improvements.
pin-project - 0.4.21

Published by taiki-e over 4 years ago

pin-project - 0.4.20

Published by taiki-e over 4 years ago

pin-project - 0.4.19

Published by taiki-e over 4 years ago

pin-project - 0.4.17

Published by taiki-e over 4 years ago

  • Support naming the projection types.

    By passing an argument with the same name as the method to the attribute, you can name the projection type returned from the method:

    use pin_project::pin_project;
    use std::pin::Pin;
    
    #[pin_project(project = EnumProj)]
    enum Enum<T> {
        Variant(#[pin] T),
    }
    
    fn func<T>(x: Pin<&mut Enum<T>>) {
        match x.project() {
            EnumProj::Variant(y) => {
                let _: Pin<&mut T> = y;
            }
        }
    }
    
pin-project - 0.4.14

Published by taiki-e over 4 years ago

pin-project - 0.4.12

Published by taiki-e over 4 years ago

Package Rankings
Top 3.04% on Crates.io
Badges
Extracted from project README
crates.io docs.rs license msrv github actions