说明
可以加载 erlang 的库
搜索
1 | mix hex.search --package nebulex |
用法
加载本地库
1 | {:xxx, path: "../xxx"} |
指定分支
1 | {:bumblebee, github: "elixir-nx/bumblebee", branch: "main"} |
强制使用某个版本
1 | {:bumblebee, github: "elixir-nx/bumblebee", branch: "main", override: true} |
指定环境下加载
1 | {:exla, "~> 0.7", only: [:dev, :test]} |
运行时并不加载
1 | {:ex_doc, "~> 0.29", only: :dev, runtime: false} |