View Source Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
unreleased
Unreleased
0-14-3-2023-05-26
0.14.3 - 2023-05-26
added
Added
Add precompilation target for Linux running on RISC-V 64 bits machines. This is useful for projects using Nerves.
Note that this is going to require
rustler_precompiled
v0.6 or above, since the that version includes RISC-V on Linux as defaults.Add support for OTP 26 by updating the
rustler-sys
package.
0-14-2-2023-05-20
0.14.2 - 2023-05-20
added-1
Added
Add precompilation target for Linux running on ARM64 machines (both musl and gnu ABI). This is useful for projects using Nerves.
Note that this is going to require
rustler_precompiled
v0.6 or above, since the that version includes ARM64 on Linux as defaults.
0-14-1-2023-05-20
0.14.1 - 2023-05-20
added-2
Added
- Add support for
rustler_precompiled
v0.6.
changed
Changed
Update Rustler version in the crate from
v0.26
tov0.28
. This shouldn't break anything, but would require the installation of rustlerv0.28
if needed in the Elixir side.Change the Rust edition to 2021 (it was 2018). This shouldn't change any behaviour.
0-14-0-2022-11-04
0.14.0 - 2022-11-04
changed-1
Changed
- Require
rustler_precompiled
equal or abovev0.5.2
- thanks @Benjamin-Philip. - Use
Application.compile_env/3
instead ofApplication.get_env/3
in the native module.
0-13-1-2022-06-24
0.13.1 - 2022-06-24
fixed
Fixed
- Fix the precompilation build for targets using
cross
by adding aCross.toml
file with a setting telling to read theRUSTLER_NIF_VERSION
env var from the host machine.
0-13-0-2022-04-28
0.13.0 - 2022-04-28
changed-2
Changed
- Bump requirement for
rustler_precompiled
to~> v0.4
. This is needed to avoid installing Rustler by default. - Bump
html5ever
(Rust crate) tov0.26.0
.
0-12-0-2022-03-14
0.12.0 - 2022-03-14
changed-3
Changed
- Start using
rustler_precompiled
as dependency.
0-11-0-2021-12-15
0.11.0 - 2021-12-15
security
Security
- Add checksum verification of precompiled NIF files before extracting
them to the correct location. This is to avoid supply chain attacks.
With this change we added a new mix task to download all the files
and generate the checksum before publishing the package. Additionally
the user can download only the local NIF file with the checksum.
See the
RELEASE_CHECKLIST.md
file for details on how we ensure this works correctly.
removed
Removed
- Remove support for Elixir 1.10 and below. This is to keep a policy of supporting the latest three Elixir versions.
changed-4
Changed
- Switch from thread pool to being a dirty NIF. This prevents the resulting term from having to be sent between processes, and therefore prevents an extra copy from having to be performed.
- In the FlatSink implementation for the NIF, track children in a pool instead of allocating new vectors for every node. This significantly reduces allocator pressure while parsing, and improves performance.
- When converting a parsed FlatSink into its term representation, use a common child node stack instead of allocating a new one for every node. This significantly reduces allocator pressure while creating terms, and improves performance.
- Start using LTO for the NIF compilation. This reduces the build size and improves performance.
fixed-1
Fixed
- Fix the target selection when using
TARGET_*
env vars on macOS.
0-10-1-2021-11-24
0.10.1 - 2021-11-24
fixed-2
Fixed
- It provides a precompiled NIF for ARM 64 bits running on Linux. This is needed for Raspberry PI 4.
0-10-0-2021-11-24
0.10.0 - 2021-11-24
added-3
Added
- Add the ability to download precompiled NIFs. We provide compiled NIF files in our GitHub releases page (from GitHub Actions) and the lib will try to download the correct NIF respecting the OS, NIF version and architecture of your build machine. This also works for Nerves projects that compiles to different targets. This way the Rust toolchain is not needed for most of people using this project.
fixed-3
Fixed
- Fix compilation on macOS.
0-9-0-2021-10-02
0.9.0 - 2021-10-02
added-4
Added
- Add support for OTP 24. This was achieved by updating Rustler to v0.22.