Skip to content

Commit c6fe06f

Browse files
committed
v0.3.0
1 parent afbbe32 commit c6fe06f

File tree

9 files changed

+48
-41
lines changed

9 files changed

+48
-41
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ rebar3.crashdump
1919
*~
2020
gen
2121
doc
22+
build

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v0.3.0 - 2021-11-23
4+
5+
- Converted to use the Gleam build tool.
6+
37
## v0.2.0 - 2021-09-11
48

59
- Updated for Gleam v0.17.0.

README.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,11 @@ Gleam’s actor system is built with a few primary goals:
1919

2020
## Installation
2121

22-
To use the OTP library in a Gleam rebar3 project, add `gleam_otp` to the `deps`
23-
section of the projects `rebar.config` file. The result might, for instance,
24-
look like this:
25-
26-
```erlang
27-
{deps, [
28-
{gleam_stdlib, "0.16.0"},
29-
{gleam_otp, "0.1.6"}
30-
]}.
31-
```
22+
To use the OTP library in a Gleam rebar3 project, add `gleam_otp` to the `dependencies` section of the projects `gleam.toml` file.
3223

33-
The next time you run `rebar3 shell` (or any other rebar3 command that induces
34-
compilation) rebar3 will download the deps as you've specified.
24+
```toml
25+
gleam_otp = "~> 0.1"
26+
```
3527

3628
### How to understand the Gleam OTP library
3729

gleam.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
11
name = "gleam_otp"
2+
version = "0.3.0"
3+
licences = ["Apache-2.0"]
4+
description = "Fault tolerant multicore Gleam programs with OTP"
5+
6+
repository = { type = "github", user = "gleam-lang", repo = "otp" }
7+
links = [
8+
{ title = "Website", href = "https://gleam.run" },
9+
{ title = "Sponsor", href = "https://github.com/sponsors/lpil" },
10+
]
11+
12+
[dependencies]
13+
gleam_stdlib = "~> 0.18"
14+
gleam_erlang = "~> 0.2"
15+
16+
[dev-dependencies]
17+
gleeunit = "~> 0.1"

manifest.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This file was generated by Gleam
2+
# You typically do not need to edit this file
3+
4+
packages = [
5+
{ name = "gleam_erlang", version = "0.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "B183BA07519354B4C27AD7F000E6CC8DF4F1B853FB940EC84E14F907EFFBA777" },
6+
{ name = "gleam_stdlib", version = "0.18.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "2938F996BBB25D75E973226846CDDFA33AB5590AFC8A9D043A356EA85272510D" },
7+
{ name = "gleeunit", version = "0.4.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "E8FDD4E31E0BBB87F625B0BB4DEABDE780180F1C2B15A4534442823066468638" },
8+
]
9+
10+
[requirements]
11+
gleam_erlang = "~> 0.2"
12+
gleam_stdlib = "~> 0.18"
13+
gleeunit = "~> 0.1"

rebar.config

Lines changed: 0 additions & 13 deletions
This file was deleted.

rebar.lock

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/gleam_otp_external.erl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
% import Gleam records
1313

14-
-include("gen/src/gleam@otp@process_Sender.hrl").
15-
-include("gen/src/gleam@otp@process_Exit.hrl").
16-
-include("gen/src/gleam@otp@process_PortDown.hrl").
17-
-include("gen/src/gleam@otp@process_ProcessDown.hrl").
18-
-include("gen/src/gleam@otp@process_StatusInfo.hrl").
14+
-include("gleam@otp@process_Sender.hrl").
15+
-include("gleam@otp@process_Exit.hrl").
16+
-include("gleam@otp@process_PortDown.hrl").
17+
-include("gleam@otp@process_ProcessDown.hrl").
18+
-include("gleam@otp@process_StatusInfo.hrl").
1919

2020
% Guards
2121

test/gleam_otp_test.gleam

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import gleeunit
2+
3+
pub fn main() {
4+
gleeunit.main()
5+
}

0 commit comments

Comments
 (0)