Remix.run Logo
prophesi 17 hours ago

In Elixir land, the Ash Framework created a package called usage_rules[0] as an experimental attempt to solve this problem a few months ago. The latest version of the Phoenix Framework (1.8) includes it in their `mix phx.new` generator and in their own hex packages[1]. Library owners would need to add their own usage rules, but it seems to help even for just the core packages Phoenix includes.

[0] https://hexdocs.pm/usage_rules/readme.html

[1] https://github.com/phoenixframework/phoenix/tree/main/usage-...