carapace icon indicating copy to clipboard operation
carapace copied to clipboard

tinygo support

Open rsteube opened this issue 2 years ago • 1 comments

Support tinygo for minimal sized standalone completers and carapace-spec.

  • build with tinygo build -no-debug -panic=trap -gc=leaking (Optimizing binaries)
  • strip binary
  • compress with upx -9
  • reduce carapace-pflag to Bool, BoolSlice, Count, String and StringSlice
  • also avoid large imports like fmt if possible (and if actually makes sense)
  • detach from cobra using a minified fork as alternative import

rsteube avatar Jun 14 '22 12:06 rsteube

needs https://github.com/tinygo-org/tinygo/issues/632 needs https://github.com/tinygo-org/tinygo/issues/2950

rsteube avatar May 19 '23 18:05 rsteube