add crate doc to examples

This commit is contained in:
Vinzenz Schroeter 2024-05-28 20:28:20 +02:00
parent e135bd60a7
commit daaa31a276
6 changed files with 12 additions and 0 deletions

View file

@ -12,4 +12,6 @@ version = "0.5.0"
[workspace.lints.rust]
missing-docs = "warn"
[workspace.lints.clippy]
missing-docs-in-crate-items = "warn"

View file

@ -1,3 +1,5 @@
//! An example for how to send text to the display.
use clap::Parser;
use servicepoint::{ByteGrid, Command, Connection, Grid, Origin};

View file

@ -1,3 +1,5 @@
//! A simple game of life implementation to show how to render graphics to the display.
use std::thread;
use clap::Parser;

View file

@ -1,3 +1,5 @@
//! A simple example for how to send pixel data to the display.
use std::thread;
use clap::Parser;

View file

@ -1,3 +1,6 @@
//! A simple example for how to set brightnesses for tiles on the screen.
//! Continuously changes the tiles in a random window to random brightnesses.
use std::time::Duration;
use clap::Parser;

View file

@ -1,3 +1,4 @@
//! An example on how to modify the image on screen without knowing the current content.
use std::thread;
use std::time::Duration;