pub struct LinuxReleaseSpec {
pub repo: String,
pub tag: String,
pub asset_gnu: String,
pub asset_musl: String,
pub binaries: Vec<String>,
}Expand description
GitHub-release-driven Linux binary install spec.
When set on WslInstallConfig::auto_install_linux_release, the
installer probes each detected distro’s libc (glibc → _gnu,
musl → _musl), curls the matching tarball from a GitHub
release URL, and tar-extracts the listed binaries straight to
/usr/local/bin/.
This replaces the old socat + npiperelay bridge-dependency install.
Native sshenc-agent (or whichever app) running inside the distro
supersedes the SSH-protocol-over-socat hack — the native agent
handles SSH protocol locally and crosses the WSL/Windows boundary
only for the JSON-RPC TPM bridge, which is a different
(deterministic) transport.
Fields§
§repo: StringGitHub repo in owner/name form, e.g. "godaddy/sshenc".
tag: StringRelease tag to install, e.g. "v0.6.36". Caller passes this
in rather than reading CARGO_PKG_VERSION so consumer apps
can pin to a known-good version on rollback if needed.
asset_gnu: StringTarball name for glibc-based distros, e.g.
"sshenc-x86_64-unknown-linux-gnu.tar.gz". Resolved to
https://github.com/{repo}/releases/download/{tag}/{asset_gnu}.
asset_musl: StringTarball name for musl-based distros, e.g.
"sshenc-x86_64-unknown-linux-musl.tar.gz". Used when the
distro’s ldd --version output doesn’t mention “GNU”.
binaries: Vec<String>Binaries to install from the extracted tarball, e.g.
["sshenc", "sshenc-agent", "sshenc-keygen", "gitenc"].
Trait Implementations§
Source§impl Clone for LinuxReleaseSpec
impl Clone for LinuxReleaseSpec
Source§fn clone(&self) -> LinuxReleaseSpec
fn clone(&self) -> LinuxReleaseSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more