How to fix Elixir's 1.11 application boundaries?

Tesla should pick option 3 in the warning and add xref: [exclude: [:gun, Mint]], since :gun and Mint, etc is optional for them.

Adding :gun to your deps won’t solve it, as this is strictly a problem for when Tesla is compiled.

EDIT: This answer is wrong, please see comments below.