| Crates.io | libgsh |
| lib.rs | libgsh |
| version | 1.2.0 |
| created_at | 2025-04-30 15:33:56.093625+00 |
| updated_at | 2025-05-06 19:34:23.589176+00 |
| description | Graphical Shell server SDK library |
| homepage | |
| repository | https://github.com/WilliamRagstad/gsh |
| max_upload_size | |
| id | 1655053 |
| size | 107,476 |
This is a SDK library for building server applications that interact seamlessly with the gsh client.
It provides essential tools and abstractions to enable efficient communication between the server and the gsh graphical shell client application.
Install the latest release of libgsh using cargo:
cargo install libgsh
gsh client.This library is an integral part of the gsh ecosystem, enabling developers to create robust and interactive server applications that leverage the graphical capabilities of the gsh client.
Do you want to build your own service with gsh?
Choose between these out-of-the-box server implementations:
| Server | Description | Technology |
|---|---|---|
async |
An asynchronous server that handle communication concurrently. | Tokio async runtime |
simple |
A basic server that handle non-blocking communication | Native multi-threading |
Recommendation
Theasyncserver provides better performance and scalability for most applications.
View the examples directory for service implementations using the async and simple servers.
There you can view how they interact with the gsh client.
View the compatibility document for more information on supported versions.
The libgsh library is designed to be modular and extensible, allowing developers to build custom server-side functionality. It provides a set of abstractions and utilities that simplify the process of establishing and managing connections with the gsh client.
sequenceDiagram
participant Client as gsh client
participant CGSH as client <br> gsh library
participant SGSH as server <br> gsh library
participant Server as libgsh service
Client->>CGSH: Connect to server
CGSH-->>SGSH: TLS + Handshake
SGSH->>Server: Client Hello message
SGSH-->>CGSH: Server Hello ACK message
alt Server require Authentication
rect rgb(190, 30, 50)
CGSH<<->>Client: Enter credentials
CGSH-->>SGSH: Send credentials
SGSH<<->>Server: Verify credentials
SGSH-->>CGSH: Authentication result
end
end
CGSH->>Client: Server Hello ACK message
par main event loop
rect rgb(50, 60, 210)
Client->>Server: User input
Server->>Client: Visual/Media output
end
end
Install the following dependencies before proceeding with setting up your development environment:
protoc version 30.2 (shared dependency)cmake version 3.31.7 (sdl2 dependency)