Closed punk-dev-robot closed 10 months ago
I have the same issue too lol, I just tried to install it on my Arch but got the same error output. typing rustc --explain E0004
printed this out:
This error indicates that the compiler cannot guarantee a matching pattern for one or more
possible inputs to a match expression. Guaranteed matches are required in order to assign
values to match expressions, or alternatively, determine the flow of execution.
Erroneous code example:
enum Terminator {
HastaLaVistaBaby,
TalkToMyHand,
}
let x = Terminator::HastaLaVistaBaby;
match x { // error: non-exhaustive patterns: `HastaLaVistaBaby` not covered
Terminator::TalkToMyHand => {}
}
If you encounter this error you must alter your patterns so that every possible value of the
input type is matched. For types with a small number of variants (like enums) you should
probably cover all cases explicitly. Alternatively, the underscore _ wildcard pattern can be
added after all other patterns to match "anything else". Example:
enum Terminator {
HastaLaVistaBaby,
TalkToMyHand,
}
let x = Terminator::HastaLaVistaBaby;
match x {
Terminator::TalkToMyHand => {}
Terminator::HastaLaVistaBaby => {}
}
// or:
match x {
Terminator::TalkToMyHand => {}
_ => {}
}
Also, when you try to build from the source code, the same error output shows.
Arch just updated to ffmpeg 6.1, which isn't supported by the ffmpeg-next crate yet.
I just pushed a commit pulling ffmpeg-next from the 6.1 enablement PRs: https://github.com/zmwangx/rust-ffmpeg/pull/165 https://github.com/zmwangx/rust-ffmpeg-sys/pull/63
Unfortunately we may have to keep this patch or start maintaining a fork, as the maintainer is not responsive (they have a ad for a new maintainer on their repo, which I have sent them a few emails about filling...but oh well....)
Closing as it is fixed. Let me know if yall have issues :)
As I'm not rust developer I don't know how to switch to using crates from your MRs. I guess I will wait for them to be merged upstream or your maintained fork. Just in case you haven't seen it the checks failed on your MR here: https://github.com/zmwangx/rust-ffmpeg/pull/165
cargo install --git https://GitHub.com/russelltg/wl-screenrec
Should just work. Or wl-screenrec-git from AUR.
And yes, CI failed b/c it's blocked on a similar MR by the same person ok ffmpeg-sys-next (not my MRs btw)
Great that did it, thank you!
I'm getting compilation errors when trying to install (both aur packages and cargo):
Thank you for your work! I hope to try this software soon to replace
wf-recorder
for screen sharing over zoom as it is currently killing my cpu :)