rsocket / rsocket-rust

RSocket Rust Implementation using Tokio
Apache License 2.0
199 stars 20 forks source link

Use Rust 2021 edition #54

Closed adoerr closed 2 years ago

adoerr commented 2 years ago

Use Rust 2021 edition

Motivation:

Rust 2021 is out since October 2021.

Modifications:

Update the edition manifest section to 2021

Result:

Should work as before

jjeffcaii commented 2 years ago

There's one thing we need to confirm, does it work correctly if a lib with 2018 edition depends on it?

adoerr commented 2 years ago

Yes, each target can specify it's own Edition

... and individual targets can specify which edition they use. See the [Edition Guide](https://doc.rust-lang.org/edition-guide/index.html) for more information.

So basically the edition manifest entry is per packet.

jjeffcaii commented 2 years ago

It has been merged. Thanks!