Coder Social home page Coder Social logo

0.11.5 is a breaking change about evdev HOT 11 CLOSED

CryZe avatar CryZe commented on June 14, 2024 2
0.11.5 is a breaking change

from evdev.

Comments (11)

coolreader18 avatar coolreader18 commented on June 14, 2024 3

Oh, right, I forgot about that; I meant to make any new releases in a 0.12.x line but didn't remember when releasing 0.11.6. I guess I could release 0.11.7 with just that change reverted, and then 0.12 from there on out?

from evdev.

coolreader18 avatar coolreader18 commented on June 14, 2024 1

I guess I'll release a 0.11.6 and then a 0.12

from evdev.

coolreader18 avatar coolreader18 commented on June 14, 2024

Ah, thanks, sorry about that.

from evdev.

CryZe avatar CryZe commented on June 14, 2024

It looks like 0.11.6 contains the breaking change again.

from evdev.

jeff-hiner avatar jeff-hiner commented on June 14, 2024

What's the breaking change?

from evdev.

CryZe avatar CryZe commented on June 14, 2024

Someone reported this to me:

rror[E0599]: no method named `supported_events` found for reference `&(PathBuf, Device)` in the current scope
   --> /home/dagit/.cargo/registry/src/github.com-1ecc6299db9ec823/livesplit-hotkey-0.6.0/src/linux/mod.rs:281:27
    |
281 |             .filter(|d| d.supported_events().contains(EventType::KEY))
    |                           ^^^^^^^^^^^^^^^^ method not found in `&(PathBuf, Device)`

error[E0277]: a value of type `Vec<Device>` cannot be built from an iterator over elements of type `(PathBuf, Device)`
   --> /home/dagit/.cargo/registry/src/github.com-1ecc6299db9ec823/livesplit-hotkey-0.6.0/src/linux/mod.rs:282:14
    |
282 |             .collect();
    |              ^^^^^^^ value of type `Vec<Device>` cannot be built from `std::iter::Iterator<Item=(PathBuf, Device)>`
    |
    = help: the trait `FromIterator<(PathBuf, Device)>` is not implemented for `Vec<Device>`
    = help: the trait `FromIterator<T>` is implemented for `Vec<T>`
note: required by a bound in `collect`

I feel like it's the same as before? Maybe not.

from evdev.

jeff-hiner avatar jeff-hiner commented on June 14, 2024

@coolreader18 it appears the breaking change was in fn enumerate, changed in commit 9f63c9a.

The iterator EnumerateDevices now returns (PathBuf, RawDevice) instead of just the device.

from evdev.

CryZe avatar CryZe commented on June 14, 2024

Yeah that sounds good.

from evdev.

Shinyzenith avatar Shinyzenith commented on June 14, 2024

Could 0.11.6 be yanked? it contains the same breaking release as 0.11.5.
Last time I couldn't figure out what broke my code as it was a minor version bump...

from evdev.

coolreader18 avatar coolreader18 commented on June 14, 2024

Ok! 0.11.6 yanked, 0.11.7 published, 0.12.0 published! Sorry for all the confusion, everyone.

from evdev.

Shinyzenith avatar Shinyzenith commented on June 14, 2024

Thanks!

from evdev.

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.