Skip to content

Commit

Permalink
Release rustler 0.33.0
Browse files Browse the repository at this point in the history
  • Loading branch information
filmor committed May 29, 2024
1 parent dd7c91b commit 3d7eb93
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 10 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
See [`UPGRADE.md`](./UPGRADE.md) for additional help when upgrading to newer
versions.

## [unreleased]
## [0.33.0] - 2024-05-29

### Added

- Add optional support for using Erlang's allocator as Rust's global allocator
- Optional support for using Erlang's allocator as Rust's global allocator
(#580).
- Comparison functions for PIDs (#611).
- Conversions from and to Rust paths (`PathBuf` and `Path`) (#608).

### Fixed

- `mix compile` failing on path dependencies in the Rust library (#577, fixed in
#578 and #607)

### Changed

- Drop usage of `lazy_static` in favour of `std::sync::OnceLock`. This change
raises the minimal supported Rust version to 1.70.
- Drop obsolete and incorrect `Rustler.nif_versions` function.

### Removed

Expand Down
6 changes: 6 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

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

## 0.32 -> 0.33

The macro changes that where already carried out in version `0.22` are now
mandatory, the deprecated macros have been removed. Please see below for
documentation on how to convert from the old to the new set of macros.

## 0.31 -> 0.32

1. The functionality of `rustler_bigint` has moved into `rustler`. The library
Expand Down
6 changes: 3 additions & 3 deletions rustler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "rustler"
description = "Safe Rust wrappers for creating Erlang NIF functions"
repository = "https://github.com/rusterlium/rustler"
version = "0.32.1" # rustler version
version = "0.33.0" # rustler version
authors = ["Hansihe <me@hansihe.com>"]
license = "MIT/Apache-2.0"
readme = "../README.md"
Expand All @@ -22,8 +22,8 @@ nif_version_2_17 = ["nif_version_2_16", "rustler_sys/nif_version_2_17"]
serde = ["dep:serde"]

[dependencies]
rustler_codegen = { path = "../rustler_codegen", version = "0.32.1", optional = true}
rustler_sys = { path = "../rustler_sys", version = "~2.4.0" }
rustler_codegen = { path = "../rustler_codegen", version = "0.33.0", optional = true}
rustler_sys = { path = "../rustler_sys", version = "~2.4.1" }
num-bigint = { version = "0.4", optional = true }
serde = { version = "1", optional = true }

Expand Down
2 changes: 1 addition & 1 deletion rustler_codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "rustler_codegen"
description = "Compiler plugin for Rustler"
repository = "https://github.com/rusterlium/rustler/tree/master/rustler_codegen"
version = "0.32.1" # rustler_codegen version
version = "0.33.0" # rustler_codegen version
authors = ["Hansihe <hansihe@hansihe.com>"]
license = "MIT/Apache-2.0"
readme = "../README.md"
Expand Down
2 changes: 1 addition & 1 deletion rustler_mix/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This package is available on [Hex.pm](https://hex.pm/packages/rustler). To insta
```elixir
def deps do
[
{:rustler, "~> 0.32.1", runtime: false}
{:rustler, "~> 0.33.0", runtime: false}
]
end
```
Expand Down
2 changes: 1 addition & 1 deletion rustler_mix/lib/rustler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,5 @@ defmodule Rustler do
end

@doc false
def rustler_version, do: "0.32.1"
def rustler_version, do: "0.33.1"
end
2 changes: 1 addition & 1 deletion rustler_mix/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Rustler.Mixfile do
use Mix.Project

@source_url "https://github.com/rusterlium/rustler"
@version "0.32.1"
@version "0.33.0"

def project do
[
Expand Down
2 changes: 1 addition & 1 deletion rustler_sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ name = "rustler_sys"
# When depending on this crate, you should ALWAYS
# use a tilde requirements with AT LEAST `~MAJOR.MINOR`.
# Example: "~2.0"
version = "2.4.0"
version = "2.4.1"

authors = ["Daniel Goertzen <daniel.goertzen@gmail.com>"]
description = "Create Erlang NIF modules in Rust using the C NIF API."
Expand Down

0 comments on commit 3d7eb93

Please sign in to comment.