Skip to content

Commit

Permalink
Merge pull request #26 from b5g-ex/rel-v0.2.0
Browse files Browse the repository at this point in the history
release v0.2.0
  • Loading branch information
takasehideki authored Feb 22, 2024
2 parents 45ef94f + 5e3336a commit 0741171
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ You can install this package into your project by adding `zenohex` to your list
defp deps do
[
...
{:zenohex, "~> 0.2.0-rc.2"},
{:zenohex, "~> 0.2.0"},
...
]
end
Expand Down Expand Up @@ -120,7 +120,7 @@ When you want to build NIF module locally into your project, install Rustler by
defp deps do
[
...
{:zenohex, "~> 0.2.0-rc.2"},
{:zenohex, "~> 0.2.0"},
{:rustler, ">= 0.0.0", optional: true},
...
]
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Zenohex.MixProject do
use Mix.Project

@version "0.2.0-rc.2"
@version "0.2.0"
@source_url "https://github.com/b5g-ex/zenohex"

def project do
Expand Down
2 changes: 1 addition & 1 deletion native/zenohex_nif/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion native/zenohex_nif/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zenohex_nif"
version = "0.2.0-rc.2"
version = "0.2.0"
authors = []
edition = "2021"

Expand Down
7 changes: 7 additions & 0 deletions test/version_match_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@ defmodule Zenohex.VersionMatchTest do
version_on_cargo_toml =
Toml.decode_file!("native/zenohex_nif/Cargo.toml")["package"]["version"]

version_on_cargo_lock =
Toml.decode_file!("native/zenohex_nif/Cargo.lock")["package"]
|> Enum.filter(fn map -> map["name"] == "zenohex_nif" end)
|> List.first()
|> Map.get("version")

assert version_on_mix_exs == version_on_cargo_toml
assert version_on_mix_exs == version_on_cargo_lock
end
end
end

0 comments on commit 0741171

Please sign in to comment.