4 releases
| 0.2.2 | Apr 12, 2021 |
|---|---|
| 0.2.1 | Apr 8, 2021 |
| 0.2.0 | Apr 7, 2021 |
| 0.1.0 | Apr 6, 2021 |
#6 in #rfb
48 downloads per month
Used in breakwater
9KB
140 lines
Libvncserver bindings
This library contains safe Rust bindings for Libvncserver
Sample
use vncserver::*;
fn main() {
let server = rfb_get_screen(400, 300, 8, 3, 4);
rfb_framebuffer_malloc(server, 400*300*4);
rfb_init_server(server);
rfb_run_event_loop(server, -1, 0);
}
libvnc-rs
The libvnc-rs repo aims to provide safe Rust binding over Libvncserver-based libraries.
You can find more about Libvncserver on https://github.com/LibVNC/libvncserver.
Example
use vncserver::*;
fn main() {
let server = rfb_get_screen(400, 300, 8, 3, 4);
rfb_framebuffer_malloc(server, 400*300*4);
rfb_init_server(server);
rfb_run_event_loop(server, -1, 0);
}
Getting Started
You can quickly try out the examples by cloning this repo and running the following commands:
# Runs the "sample" example
cargo run --example sample
WARNING
The libvnc-rs is still in the very early stages of development. APIs can and will change. Important features are missing.
No runtime deps
~0–2.2MB
~42K SLoC