Coder Social home page Coder Social logo

Comments (5)

fpagliughi avatar fpagliughi commented on May 26, 2024 1

Nice! Thanks. No worries about the response time; this week I merged a 3 year old PR into one of my project. It was so old that the author had deleted his branch and likely retired from his job.

I think this kind of thing (older compilers) will become more common as Rust becomes more popular and corporate. On this job, we need four different developer groups to approve an update to the compiler!

from serialport-rs.

fpagliughi avatar fpagliughi commented on May 26, 2024

Alternately reconsider the version = 2021 requirement.

The library itself seems to compile fine with rustc v1.46.0. The tests seem to use some newer features, going up to around v.154.0 (version 2018).

Considering this library is especially useful in Embedded Linux contexts, it would be really nice to keep the MSRV as old as reasonably possible without making things painful for yourselves. But certainly don't constrain it by artificially specifying a later version than is necessary.

By just changing the version in Cargo.toml, it works for me with the latest Yocto:

edition = "2018"
#rust-version = "1.54"

from serialport-rs.

jessebraham avatar jessebraham commented on May 26, 2024

Thanks for this issue! Sorry for taking so long to get around to replying and for breaking compatibility, I didn't realize such relatively old versions of Rust were still commonly used 😁

I've reverted to the 2018 edition locally and fixed any clippy/other issues, so I will get that pushed and merged. I also plan to publish a new release of this library soon (this or next week) which will include these changes, so you should be able to use this newest version moving forward.

from serialport-rs.

jessebraham avatar jessebraham commented on May 26, 2024

I released 4.2.0 today which is now edition 2018 again, and includes the serde PR.

from serialport-rs.

fpagliughi avatar fpagliughi commented on May 26, 2024

Nice! Thanks.

from serialport-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.