linux-drm 0.2.0

Client for the Linux Direct Rendering Manager and Kernel Modesetting APIs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Rust API for Linux Direct Rendering Manager and Kernel Modesetting

The crate `linux-drm` wraps `linux-io` to provide more convenient access to
the Linux DRM/KMS API without depending on any C libraries.

This is currently experimental and the API is likely to change before becoming
stable in a 1.0 release as we explore different API designs.

In particular, the `ioctl` module currently exposes some IOCTL requests that
are unsound because they allow safe Rust to ask the kernel to write to
arbitrary pointers. Dealing with this will likely require some new features
in the underlying `linux-io` crate, but for now the focus is on designing
the higher-level API that wraps the raw IOCTL requests.

This crate also currently relies on some unstable features and is therefore
only usable on a nightly Rust toolchain.