CatHub.Protocol 0.1.1

dotnet add package CatHub.Protocol --version 0.1.1
                    
NuGet\Install-Package CatHub.Protocol -Version 0.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CatHub.Protocol" Version="0.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CatHub.Protocol" Version="0.1.1" />
                    
Directory.Packages.props
<PackageReference Include="CatHub.Protocol" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CatHub.Protocol --version 0.1.1
                    
#r "nuget: CatHub.Protocol, 0.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CatHub.Protocol@0.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CatHub.Protocol&version=0.1.1
                    
Install as a Cake Addin
#tool nuget:?package=CatHub.Protocol&version=0.1.1
                    
Install as a Cake Tool

CatHub

CatHub lets radio applications that use CAT, Hamlib NET, virtual serial, and WinKeyer interfaces safely share one transceiver and keyer.

The daemon is the single owner of each physical device. It serializes mutations, serves separately permissioned client endpoints, arbitrates PTT, and leaves the station unkeyed after shutdown or a failed client session.

Current support

  • First-class Kenwood TS-590 backend
  • Broad rig support through an external rigctld backend
  • Hamlib NET endpoints with per-endpoint permissions
  • TS-590 and TS-2000 compatible virtual serial endpoints
  • Single-VFO presentation for applications that cannot model the active VFO correctly
  • Multi-client WinKeyer broker with typed gRPC and virtual serial endpoints
  • Standalone and embedded [cat_hub] configuration layouts

Install

Install the daemon from crates.io with Rust 1.88 or newer:

cargo install cathub --version 0.1.1

Alternatively, download the Windows or Linux archive and adjacent SHA-256 checksum from the GitHub Releases page. Extract the archive and place cathub or cathub.exe on PATH.

To build the daemon from source:

git clone https://github.com/treitforge/cathub.git
Set-Location cathub
cargo build --release -p cathub

The source-built executable is target\release\cathub.exe on Windows and target/release/cathub on Linux. A daemon operator does not need either protocol-development package described below.

Build and test

The full repository gate requires PowerShell 7, a current stable Rust toolchain, the .NET 10 SDK, and Buf:

.\build.ps1 check

The principal checks can also be run directly:

cargo build --workspace
cargo test --workspace
cargo fmt --all -- --check
cargo clippy --workspace --all-targets -- -D warnings
buf lint
dotnet build CatHub.slnx

The Rust protocol crate vendors protoc, so cargo build does not require a separate Protocol Buffers compiler installation.

Configuration

CatHub's default configuration path is:

  • Windows: %APPDATA%\cathub\cathub.toml
  • Linux: $XDG_CONFIG_HOME/cathub/cathub.toml, or ~/.config/cathub/cathub.toml

Set CATHUB_CONFIG_PATH or pass --config to use another file. The complete example is config/cathub.toml.

A standalone document uses top-level [radio], [winkeyer], and endpoint tables. CatHub also accepts those settings beneath [cat_hub] in a larger managed document. Use --section cat_hub when a launcher must require the embedded layout.

Validate and inspect configuration without opening hardware:

cathub config validate --config config\cathub.toml
cathub config print-effective --config config\cathub.toml
cathub config print-effective --format json --config config\cathub.toml

Extract an embedded [cat_hub] section without changing the source file:

cathub config migrate `
  --from C:\station\managed-config.toml `
  --output "$env:APPDATA\cathub\cathub.toml"

Migration refuses to overwrite an existing destination unless --force is supplied. Source removal is never automatic. --remove-source-section creates a .bak copy before changing the managed document.

Run

The repository helper builds the daemon when necessary, copies the sample configuration to the platform default on first use, and starts CatHub:

.\scripts\Start-CatHub.ps1

For an installed binary:

cathub config validate
cathub

Client interfaces

  • Hamlib-aware clients connect to a configured [[hamlib_net]] TCP listener.
  • Serial CAT clients connect to the application side of a dedicated virtual serial pair.
  • Legacy WinKeyer clients connect to their own virtual serial pair.
  • Typed WinKeyer clients connect to the loopback gRPC address in [winkeyer].api_bind.

Each endpoint has its own permissions. Applications never open the physical radio or keyer port directly.

Protocol packages

The cathub crate builds and installs the daemon. cathub-protocol is the Rust client/server contract crate. CatHub.Protocol is the .NET client package project. The protocol packages are for applications that use the typed WinKeyer API and are not required to run the daemon.

The release workflow packages both protocol artifacts into a GitHub release. Published client packages are available as cathub-protocol for Rust and CatHub.Protocol for .NET. Registry publication remains a separate release-authority operation. See release and compatibility.

Documentation

License

MIT. See LICENSE.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.1 0 7/15/2026
0.1.0 0 7/15/2026