Packages

Kick (kick.com) without the I/O: requests, parsers, the realtime chat protocol and webhook verification, from one Rust core

Current section

Files

Jump to
kicksdk mix.exs
Raw

mix.exs

defmodule Kicksdk.MixProject do
  use Mix.Project

  @version "0.1.1"
  @source "https://github.com/AnisAbdellatif/kicksdk"

  def project do
    [
      app: :kicksdk,
      version: @version,
      elixir: "~> 1.18",
      start_permanent: Mix.env() == :prod,
      deps: deps(),
      description:
        "Kick (kick.com) without the I/O: requests, parsers, the realtime chat protocol and webhook verification, from one Rust core",
      package: package(),
      docs: [main: "Kicksdk", source_url: @source, source_ref: "v#{@version}"]
    ]
  end

  def application, do: [extra_applications: [:logger]]

  defp deps do
    [
      {:rustler_precompiled, "~> 0.10.0"},
      # Only to build from source; precompiled NIFs need nothing.
      {:rustler, "~> 0.38.0", optional: true, runtime: false},
      {:ex_doc, "~> 0.38", only: :dev, runtime: false}
    ]
  end

  defp package do
    [
      licenses: ["MIT", "Apache-2.0"],
      links: %{"GitHub" => @source},
      # native/ and the checksum file are written by the release workflow
      # (scripts/vendor-native.sh, mix rustler_precompiled.download).
      files: ~w(lib native/Cargo.toml native/Cargo.lock native/crates native/LICENSE-MIT
        native/LICENSE-APACHE native/README.md checksum-Elixir.Kicksdk.Native.exs mix.exs README.md)
    ]
  end
end