skir_elixir_client
Native Elixir runtime for skir-elixir-gen. Supports JSON and binary serialization, SkirRPC, and an optional Phoenix/Plug adapter.
Installation
Requires Elixir 1.18+ and Erlang/OTP 27+.
Add to your application's mix.exs, then run mix deps.get:
{:skir_elixir_client, "~> 0.2"}Quick example
Using the User module generated in the generator guide:
alias Example.Protocol.UserSkir.User
user = User.new(id: 42, name: "Alice")
{:ok, json} = User.encode_json(user)
{:ok, ^user} = User.decode_json(json)Development
Set up with:
mix local.hex --force
mix local.rebar --force
mix deps.get
npm ci --ignore-scripts
Run npm run test:all and mix docs --warnings-as-errors to check the runtime
and build the documentation locally.