adoptoposs / mjml_nif

Elixir NIF bindings for the MJML Rust implementation (mrml)
https://hexdocs.pm/mjml
MIT License
123 stars 17 forks source link

Bump rustler from 0.25.0 to 0.26.0 #69

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps rustler from 0.25.0 to 0.26.0.

Changelog

Sourced from rustler's changelog.

[0.26.0] - 2022-09-02

Highlight

TaggedEnum

We added TaggedEnum, which is a generalized enum type (#440, thanks to @​SeokminHong!). Example:

#[derive(NifTaggedEnum)]
pub enum TaggedEnum1 {
    Named { x: i32, y: i32 },
    String1(String),
    String2(String),
    Untagged,
}

On the Elixir side, the variants are represented as two-tuples {tag::atom(), inner::term()} | atom(), where the inner term is

  • a map for the variant Named in the example above
  • a binary for the String1 and String2 variants

The Untagged variant is represented as the atom :untagged in Elixir.

Added

Improved

  • Use &[impl Encoder] for keys and values in map_from_arrays() to improve ergonomics (#453, thanks @​SeokminHong)
  • Improved encode/decode performance of TaggedEnum considerably (#482, thanks @​cleaton)
  • Test on OTP 25 (#455)

Fixed

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)