Current section

Files

Jump to
Raw

mix.exs

# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:f3126954a08cc9ae5714e27f702200031b34d6bcecdf7ad5a62988c5e56700dd
# To regenerate: alef generate
# To verify freshness: alef verify

# Dependency versions here are alef-managed and are rewritten on every `alef build`. ~keep
# To raise one durably, set it in `[crates.elixir.dependency_versions]`; a direct edit to this file is discarded.

defmodule HtmlToMarkdown.MixProject do
  use Mix.Project

  def project do
    [
      app: :html_to_markdown,
      version: "3.18.0",
      elixir: "~> 1.14",
      elixirc_paths: ["lib", Path.expand("../../packages/elixir/native/html_to_markdown_nif/src", __DIR__)],
      rustler_crates: [
        html_to_markdown_nif: [
          mode: :release,
          targets: [
            "aarch64-apple-darwin",
            "aarch64-unknown-linux-gnu",
            "x86_64-unknown-linux-gnu",
            "x86_64-pc-windows-msvc"
          ]
        ]
      ],
      description: "High-performance HTML to Markdown converter",
      package: package(),
      deps: deps()
    ]
  end

  defp package do
    [
      licenses: ["MIT"],
      maintainers: ["Na'aman Hirschfeld <naaman@xberg.io>", "Tobias Perlstein <tobias@xberg.io>"],
      links: %{"GitHub" => "https://github.com/xberg-io/html-to-markdown"},
      files:
        ~w(lib .formatter.exs mix.exs README* checksum-*.exs native/html_to_markdown_nif/Cargo.toml native/html_to_markdown_nif/Cargo.lock native/html_to_markdown_nif/src)
    ]
  end

  defp deps do
    [
      {:jason, "~> 1.4"},
      {:rustler, "~> 0.38", runtime: false},
      {:rustler_precompiled, "~> 0.10"},
      {:credo, "~> 1.7", only: [:dev, :test], runtime: false},
      {:ex_doc, "~> 0.40", only: :dev, runtime: false}
    ]
  end
end