Packages

A a serialization code generator for Gleam

Current section

3 Versions

Jump to

Compare versions

7 files changed
+283 additions
-40 deletions
  @@ -63,6 +63,8 @@ The types that are currently supported are:
63 63 | `String` | `String` | Text strings |
64 64 | `List` | `List(Int)` | Lists of any supported type |
65 65 | `Tuple` | `#(Int, Float)` | Tuples of any supported types |
66 + | `option.Option` | `Option(Bool)` | stdlib Option of any supported type |
67 + | `dict.Dict` | `Dict(Int, Float)` | stdlib Dict of any supported type values |
66 68 | `Type Aliases` | `type Alias = String` | Type aliases are resolved to their underlying type |
67 69 | `Custom Types` | `type Node { Leaf(Int) \| Branch(Node, Node) }` | Custom types with multiple variants |
68 70 | `Recursive Types` | `type Node { Node(left: Node, right: Node) \| Leaf(Int) }` | Types that reference themselves |
  @@ -1,5 +1,5 @@
1 1 name = "sara"
2 - version = "1.0.0"
2 + version = "1.0.1"
3 3
4 4 description = "A a serialization code generator for Gleam"
5 5
  @@ -7,7 +7,7 @@ licences = ["Apache-2.0"]
7 7 repository = { type = "github", user = "gungun974", repo = "Sara" }
8 8
9 9 [dependencies]
10 - builder = "== 0.0.1"
10 + builder = "== 0.0.2"
11 11 justin = ">= 1.0.1 and < 2.0.0"
12 12 filepath = ">= 1.1.2 and < 2.0.0"
13 13 gleam_stdlib = ">= 0.44.0 and < 2.0.0"
  @@ -16,4 +16,4 @@ glance = ">= 6.0.0 and < 7.0.0"
16 16 [dev-dependencies]
17 17 gleeunit = ">= 1.0.0 and < 2.0.0"
18 18 booklet = ">= 1.1.0 and < 2.0.0"
19 - birdie = ">= 1.5.4 and < 2.0.0"
19 + birdie = ">= 2.0.0 and < 3.0.0"
  @@ -1,50 +1,50 @@
1 - {<<"name">>, <<"sara">>}.
2 - {<<"app">>, <<"sara">>}.
3 - {<<"version">>, <<"1.0.0">>}.
1 + {<<"name">>, <<"sara"/utf8>>}.
2 + {<<"app">>, <<"sara"/utf8>>}.
3 + {<<"version">>, <<"1.0.1"/utf8>>}.
4 4 {<<"description">>, <<"A a serialization code generator for Gleam"/utf8>>}.
5 - {<<"licenses">>, [<<"Apache-2.0">>]}.
6 - {<<"build_tools">>, [<<"gleam">>]}.
5 + {<<"licenses">>, [<<"Apache-2.0"/utf8>>]}.
6 + {<<"build_tools">>, [<<"gleam"/utf8>>]}.
7 7 {<<"links">>, [
8 - {<<"Repository">>, <<"https://github.com/gungun974/Sara">>}
8 + {<<"Repository"/utf8>>, <<"https://github.com/gungun974/Sara"/utf8>>}
9 9 ]}.
10 10 {<<"requirements">>, [
11 - {<<"filepath">>, [
12 - {<<"app">>, <<"filepath">>},
11 + {<<"filepath"/utf8>>, [
12 + {<<"app">>, <<"filepath"/utf8>>},
13 13 {<<"optional">>, false},
14 - {<<"requirement">>, <<">= 1.1.2 and < 2.0.0">>}
14 + {<<"requirement">>, <<">= 1.1.2 and < 2.0.0"/utf8>>}
15 15 ]},
16 - {<<"glance">>, [
17 - {<<"app">>, <<"glance">>},
16 + {<<"glance"/utf8>>, [
17 + {<<"app">>, <<"glance"/utf8>>},
18 18 {<<"optional">>, false},
19 - {<<"requirement">>, <<">= 6.0.0 and < 7.0.0">>}
19 + {<<"requirement">>, <<">= 6.0.0 and < 7.0.0"/utf8>>}
20 20 ]},
21 - {<<"gleam_stdlib">>, [
22 - {<<"app">>, <<"gleam_stdlib">>},
21 + {<<"gleam_stdlib"/utf8>>, [
22 + {<<"app">>, <<"gleam_stdlib"/utf8>>},
23 23 {<<"optional">>, false},
24 - {<<"requirement">>, <<">= 0.44.0 and < 2.0.0">>}
24 + {<<"requirement">>, <<">= 0.44.0 and < 2.0.0"/utf8>>}
25 25 ]},
26 - {<<"justin">>, [
27 - {<<"app">>, <<"justin">>},
26 + {<<"builder"/utf8>>, [
27 + {<<"app">>, <<"builder"/utf8>>},
28 28 {<<"optional">>, false},
29 - {<<"requirement">>, <<">= 1.0.1 and < 2.0.0">>}
29 + {<<"requirement">>, <<"== 0.0.2"/utf8>>}
30 30 ]},
31 - {<<"builder">>, [
32 - {<<"app">>, <<"builder">>},
31 + {<<"justin"/utf8>>, [
32 + {<<"app">>, <<"justin"/utf8>>},
33 33 {<<"optional">>, false},
34 - {<<"requirement">>, <<"== 0.0.1">>}
34 + {<<"requirement">>, <<">= 1.0.1 and < 2.0.0"/utf8>>}
35 35 ]}
36 36 ]}.
37 37 {<<"files">>, [
38 - <<"LICENSE">>,
39 - <<"README.md">>,
40 - <<"gleam.toml">>,
41 - <<"include/sara@json_Config.hrl">>,
42 - <<"include/sara@json_CustomCodec.hrl">>,
43 - <<"include/sara@json_GeneratedCode.hrl">>,
44 - <<"src/sara.app.src">>,
45 - <<"src/sara.erl">>,
46 - <<"src/sara.gleam">>,
47 - <<"src/sara/json.gleam">>,
48 - <<"src/sara@json.erl">>,
49 - <<"src/sara_ffi.erl">>
38 + <<"LICENSE"/utf8>>,
39 + <<"README.md"/utf8>>,
40 + <<"gleam.toml"/utf8>>,
41 + <<"include/sara@json_Config.hrl"/utf8>>,
42 + <<"include/sara@json_CustomCodec.hrl"/utf8>>,
43 + <<"include/sara@json_GeneratedCode.hrl"/utf8>>,
44 + <<"src/sara.app.src"/utf8>>,
45 + <<"src/sara.erl"/utf8>>,
46 + <<"src/sara.gleam"/utf8>>,
47 + <<"src/sara/json.gleam"/utf8>>,
48 + <<"src/sara@json.erl"/utf8>>,
49 + <<"src/sara_ffi.erl"/utf8>>
50 50 ]}.
  @@ -1,5 +1,5 @@
1 1 {application, sara, [
2 - {vsn, "1.0.0"},
2 + {vsn, "1.0.1"},
3 3 {applications, [builder,
4 4 filepath,
5 5 glance,
  @@ -12,7 +12,7 @@
12 12 -endif.
13 13
14 14 -file("src/sara.gleam", 109).
15 - -spec elapsed(fun(() -> TLZ)) -> {TLZ, float()}.
15 + -spec elapsed(fun(() -> POH)) -> {POH, float()}.
16 16 elapsed(Fun) ->
17 17 sara_ffi:elapsed(Fun).
Loading more files…