#fb #ioctl #abstraction #basic #devices #handles #necessary

framebuffer

Basic framebuffer abstraction. Handles the necessary ioctls and mmaps the framebuffer device.

14 releases

0.3.1 Nov 13, 2021
0.3.0 Jun 16, 2021
0.2.2 Nov 8, 2020
0.2.0 Nov 26, 2019
0.1.3 Nov 24, 2015

#308 in Graphics APIs

Download history 346/week @ 2024-07-19 399/week @ 2024-07-26 309/week @ 2024-08-02 415/week @ 2024-08-09 238/week @ 2024-08-16 243/week @ 2024-08-23 221/week @ 2024-08-30 194/week @ 2024-09-06 335/week @ 2024-09-13 339/week @ 2024-09-20 336/week @ 2024-09-27 362/week @ 2024-10-04 483/week @ 2024-10-11 298/week @ 2024-10-18 182/week @ 2024-10-25 254/week @ 2024-11-01

1,299 downloads per month
Used in 10 crates (9 directly)

WTFPL license

93KB
235 lines

rust-framebuffer

Basic framebuffer abstraction for Rust.

An example can be found in the examples directory. Use the following command to compile and run:

sudo cargo run --release --example rust-logo

To avoid having to run all commands as root, you can add yourself to the video group:

sudo usermod -aG video <username>

Make sure to check out the starfield example as well!

Basic documentation is available: http://roysten.github.io/rust-framebuffer/target/doc/framebuffer/. The documentation is a bit sparse, but I hope the examples can make up for that.


lib.rs:

Simple linux framebuffer abstraction. Examples can be found here.

Dependencies