convert shell.nix to flake.nix

This commit is contained in:
Vinzenz Schroeter 2024-11-09 21:25:46 +01:00
parent 30d74ff07d
commit 3db1fb643f
8 changed files with 196 additions and 29 deletions

View file

@ -22,7 +22,7 @@ servicepoint = "0.10.0"
## Examples
```rust
```rust should_panic
fn main() {
// establish connection
let connection = servicepoint::Connection::open("172.23.42.29:2342")

View file

@ -120,8 +120,7 @@ pub const PIXEL_COUNT: usize = PIXEL_WIDTH * PIXEL_HEIGHT;
/// ```rust
/// # use std::time::Instant;
/// # use servicepoint::{Command, CompressionCode, FRAME_PACING, Origin, Bitmap};
/// # let connection = servicepoint::Connection::open("172.23.42.29:2342")
/// # .expect("connection failed");
/// # let connection = servicepoint::Connection::Fake;
/// # let pixels = Bitmap::max_sized();
/// loop {
/// let start = Instant::now();