packages icon indicating copy to clipboard operation
packages copied to clipboard

Show compilation target in search results

Open sporto opened this issue 8 months ago • 2 comments

Many packages only work in JS or Erlang. To tell if I can use a package in my app, I need to go their repository and find the gleaml.toml to see what target they support. It would be great to show the compilation target in the search results. e.g. Universal, JS, Erlang.

Thanks

sporto avatar Apr 13 '25 22:04 sporto

How would that be determined? Consider target support in Gleam is calculated per-function.

lpil avatar Apr 13 '25 23:04 lpil

Hmm, I was thinking about the target field in gleam.toml. But re-reading the docs at https://gleam.run/writing-gleam/gleam-toml/ maybe this field is not indication enough.

Maybe have some tag based on the package having erlang or js ffi. If that is possible.

sporto avatar Apr 14 '25 03:04 sporto