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

0.33 #615

Merged
merged 2 commits into from
May 29, 2024
Merged

0.33 #615

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]>"]
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 <[email protected]>"]
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
12 changes: 1 addition & 11 deletions rustler_mix/lib/rustler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,5 @@ defmodule Rustler do
end

@doc false
def rustler_version, do: "0.32.1"

@doc """
Supported NIF API versions.
"""
def nif_versions,
do: [
~c"2.14",
~c"2.15",
~c"2.16"
]
def rustler_version, do: "0.33.1"
end
9 changes: 0 additions & 9 deletions rustler_mix/lib/rustler/compiler/messages.ex
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,4 @@ defmodule Rustler.Compiler.Messages do
Note: You should already have this if you made your project with the project generator.
"""
end

def message({:unsupported_nif_version, version}) do
"""
Your current version of Erlang is on NIF version '#{version}'.
Rustler currently supports versions #{inspect(Rustler.nif_versions())}.

Go open an issue about this on github!
"""
end
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 <[email protected]>"]
description = "Create Erlang NIF modules in Rust using the C NIF API."
Expand Down
Loading