Skip to content

xcomm 0.1.4

Latest

Choose a tag to compare

@cantona cantona released this 23 Nov 10:28

Changes since 0.1.3

  • Static Linux binaries: x86_64 and aarch64, linked with musl, attached to this release (below): no shared libraries needed, and less memory than a build linked with glibc (a 32 MiB pty flood peaked at 2.4 MB rather than 4.4 MB on x86_64).
  • Faster floods: device output reaches the terminal 3-5 % (text) and 10-12 % (binary) faster through a pty: xcomm writes it through a non-blocking open of its own terminal, leaving the one it shares with the shell blocking.
  • xcomm ctl run exits 4 when the port goes away while it waits for its match, printing the output that came before it, instead of waiting across the reconnect, where a board that came back could answer a command it never ran.
  • xcomm ctl send cut by the port going away exits 4 at once, instead of waiting for a reply that never came or sending the rest to the device that came back.

Full list: CHANGELOG.md.

Install

brew install cantona/tap/xcomm      # macOS, Linux
cargo install --locked xcomm        # Rust 1.93+
herdr plugin install cantona/xcomm  # the herdr plugin
xcomm skill install                 # the agent skill

Static binaries (Linux):

v=0.1.4 t=x86_64-unknown-linux-musl    # or aarch64-unknown-linux-musl
u=https://github.com/cantona/xcomm/releases/download/v$v/xcomm-$v-$t.tar.gz
curl -fLO "$u" && curl -fLO "$u.sha256" &&
  sha256sum -c "xcomm-$v-$t.tar.gz.sha256" &&
  tar -xzf "xcomm-$v-$t.tar.gz" && mkdir -p ~/.local/bin &&
  install -m 755 "xcomm-$v-$t/xcomm" "xcomm-$v-$t/xcomm-wait" ~/.local/bin/