<commit_before>
# Rust DRM

Rust DRM provides a Rust interface to the Direct Rendering Manager API
in Linux.  This uses ioctl's to talk to DRM driver in order to get the
current state of screens, perform mode setting, get vsync timing and
allocate dumb buffers.

(Nothing to do with Digital (Rights|Restrictions) Management.)

## To use

Add to Cargo.toml:

```
drm = { git = "https://github.com/HornetBlack/rust-drm.git" }
```

Add to your crate:

```
extern crate drm;
```

## Things to see and do:

* Listing availble cards:

```rust
use drm::Device;
for path in Device::cards().unwrap() {
    println!("{}", path.display());
    let mut dev = Device::open(&path).unwrap();
}
```

* Get the version information:

```rust
let version = dev.version();<commit_msg>Minor edits to README.md<commit_after>
# Rust DRM

Rust DRM provides a Rust interface to the Direct Rendering Manager API
in Linux.  This uses ioctl's to talk to a DRM driver in order to get the
current state of screens, perform mode setting, get vsync timing and
allocate dumb buffers.

(Nothing to do with Digital Rights Management.)

## To use

Add to Cargo.toml:

```
drm = { git = "https://github.com/HornetBlack/rust-drm.git" }
```

Add to your crate:

```
extern crate drm;
```

## Things to see and do:

* Listing availble cards:

```rust
use drm::Device;
for path in Device::cards().unwrap() {
    println!("{}", path.display());
    let mut dev = Device::open(&path).unwrap();
}
```

* Get the version information:

```rust
let version = dev.version();
{'fraction_non_alphanumeric': 0.13237221494102228, 'fraction_numerical': 0.0, 'mean_word_length': 4.056291390728477, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4565662', 'n_tokens_mistral': 513, 'n_tokens_neox': 478, 'n_words': 193}