Is Mix part of Elixir?

Where is the Mix module defined? Does it just come with Elixir? Does every Elixir project have a dependency on the Mix module?

Thanks

2 Likes

Yes, it’s included in Elixir. The code is at https://github.com/elixir-lang/elixir/tree/master/lib/mix It will be loaded with Elixir together.

2 Likes

Mix is part of elixir, yes. It is the default build-system in the elixir eco-system but if you really wan’t to, you can use anything else, but leaving mix makes you make mixs work, so I wouldn’t suggest to do that :wink:

Also the dependency on mix is compile time only. Once you distribute your compiled application, there is nothing left of Mix, unless you did something wrong preparing the release.

3 Likes