Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support OTP24 #11

Merged
merged 3 commits into from Jan 21, 2022
Merged

Support OTP24 #11

merged 3 commits into from Jan 21, 2022

Conversation

gmile
Copy link
Contributor

@gmile gmile commented Jan 21, 2022

Update multiple packages to support OTP24. Closes #10.

ℹ️ rustler itself seems to have addressed the issue with OTP24 for some time now, see this thread: rusterlium/rustler#359

Bumping ruslter version to 0.22.2 instead of 0.23.0, since corresponding
serde_rustler crate (actually, a fork of it) depends on ~> 0.22.0.

Using serde_rustler' fork, due to:

  sunny-g/serde_rustler#14
  sunny-g/serde_rustler#15 (not merged)
I don't know Rust, so going with the smallest & most naive approach possible:

  error[E0004]: non-exhaustive patterns: `Term(_)` not covered
    --> src/lib.rs:21:74
     |
  21 |     let input: Result<&str, &str> = args[0].decode().map_err(|err| match err {
     |                                                                          ^^^ pattern `Term(_)` not covered
     |
    ::: /Users/eugene/.cargo/registry/src/github.com-1ecc6299db9ec823/rustler-0.22.2/src/error.rs:19:5
     |
  19 |     Term(Box<dyn Encoder>),
     |     ---- not covered
     |
     = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
     = note: the matched value is of type `rustler::Error`
@praveenperera
Copy link
Member

Oh awesome @gmile, you found a serde_rustler that's been updated for 0.22

@praveenperera praveenperera merged commit 4db3a73 into avencera:master Jan 21, 2022
@praveenperera
Copy link
Member

Merged thank @gmile ❤️ 💜 💛 💙

@gmile
Copy link
Contributor Author

gmile commented Jan 21, 2022

@praveenperera awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OTP 24 compilation error
2 participants