Skip to content

Commit

Permalink
feat: erlang encoding and decoding HS256
Browse files Browse the repository at this point in the history
  • Loading branch information
brettkolodny committed Feb 18, 2024
1 parent a5771d8 commit c6f231e
Show file tree
Hide file tree
Showing 6 changed files with 240 additions and 119 deletions.
5 changes: 3 additions & 2 deletions gleam.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ version = "1.0.0"
# links = [{ title = "Website", href = "https://gleam.run" }]

[dependencies]
gleam_stdlib = "~> 0.32"
gleam_json = "~> 0.7"
gleam_stdlib = "~> 0.34"
gleam_json = "~> 1.0"
gleam_crypto = "~> 1.3"

[dev-dependencies]
gleeunit = "~> 1.0"
8 changes: 5 additions & 3 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
# You typically do not need to edit this file

packages = [
{ name = "gleam_json", version = "0.7.0", build_tools = ["gleam"], requirements = ["gleam_stdlib", "thoas"], otp_app = "gleam_json", source = "hex", outer_checksum = "CB405BD93A8828BCD870463DE29375E7B2D252D9D124C109E5B618AAC00B86FC" },
{ name = "gleam_crypto", version = "1.3.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_crypto", source = "hex", outer_checksum = "ADD058DEDE8F0341F1ADE3AAC492A224F15700829D9A3A3F9ADF370F875C51B7" },
{ name = "gleam_json", version = "1.0.0", build_tools = ["gleam"], requirements = ["thoas", "gleam_stdlib"], otp_app = "gleam_json", source = "hex", outer_checksum = "8B197DD5D578EA6AC2C0D4BDC634C71A5BCA8E7DB5F47091C263ECB411A60DF3" },
{ name = "gleam_stdlib", version = "0.34.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "1FB8454D2991E9B4C0C804544D8A9AD0F6184725E20D63C3155F0AEB4230B016" },
{ name = "gleeunit", version = "1.0.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "D364C87AFEB26BDB4FB8A5ABDE67D635DC9FA52D6AB68416044C35B096C6882D" },
{ name = "thoas", version = "0.4.1", build_tools = ["rebar3"], requirements = [], otp_app = "thoas", source = "hex", outer_checksum = "4918D50026C073C4AB1388437132C77A6F6F7C8AC43C60C13758CC0ADCE2134E" },
]

[requirements]
gleam_json = { version = "~> 0.7" }
gleam_stdlib = { version = "~> 0.32" }
gleam_crypto = { version = "~> 1.3"}
gleam_json = { version = "~> 1.0" }
gleam_stdlib = { version = "~> 0.34" }
gleeunit = { version = "~> 1.0" }
16 changes: 16 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
with import <nixpkgs> {};

mkShell {
buildInputs = [
nodejs_18
helix
gleam
erlang
rebar3
cheat
bat
nil
nodePackages.typescript-language-server
];
}

7 changes: 0 additions & 7 deletions src/ffi.mjs

This file was deleted.

Loading

0 comments on commit c6f231e

Please sign in to comment.