elitau / pact_elixir

Elixir version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.
MIT License
34 stars 8 forks source link

Bump rustler from `4d8a93e` to `263a027` in /native/pactmockserver #247

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps rustler from 4d8a93e to 263a027.

Upgrade guide

Sourced from rustler's upgrade guide.

Upgrade

This document is intended to simplify upgrading to newer versions by extending the changelog.

0.21 -> 0.22

0.22 changes how to define NIFs. Users upgrading to 0.22 should to do these things:

  1. Replace rustler_atoms! with rustler::atoms!
  2. Replace resource_struct_init! with rustler::resource!
  3. Replace rustler::rustler_export_nifs! with rustler::init!
  4. Use the new rustler::nif proc_macro to declare NIFs

Replacing rustler_atoms! with rustler::atoms! is fairly simple and already sufficiently described in CHANGELOG.md. Similarly, replacing resource_struct_init! with rustler::resource! is a simple rename, so this does not need additional examples here.

Replace rustler::rustler_export_nifs! with rustler::init!

rustler::init! in combination with the new rustler::nif proc_macro simplifies exporting NIFs. Before, the NIFs and their arity needed to be specified using tuple syntax:

rustler::rustler_export_nifs! {
    "Elixir.Math",
    [
        ("add", 2, add),
    ("long_running_operation", 0, long_running_operation, SchedulerFlags::DirtyCpu)
    ],
    None
}

Now, listing the NIFs directly is sufficient:

rustler::init!("Elixir.Math", [add, long_running_operation]);

With this new macro, defining an on_load function (e.g. to set up a resource with rustler::resource!), is done like this:

rustler::init!("Elixir.Math", [add, long_running_operation], load = a_function);

Note that NIF flags such as SchedulerFlags::DirtyCpu are not declared in rustler::init!, but using the proc_macro rustler::nif. See further below for information on migration NIF flags.

... (truncated)

Commits
  • 263a027 Merge pull request #493 from filmor/owned-binary-sync
  • fd23b1e Make OwnedBinary Sync
  • f6fa268 Use setup-beam on Windows and simplify Clippy steps (#492)
  • 1ec2923 Merge pull request #490 from evnu/fix-warnings
  • b64768d tests: Remove unused logger application
  • 515c0cc tests: Replace deprecated use Bitwise
  • ec14312 rustler_bigint: Increase rustler version and tag RC
  • b386867 prepare_release: Commit rustler_bigint version requirement
  • 201d316 (release) 0.26.0
  • 8282f08 prepare_release: Update version requirement for rustler_bigint
  • Additional commits viewable in compare view


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)
dependabot[bot] commented 2 years ago

Superseded by #248.