├── .gitignore ├── doomarkable.png ├── res ├── default_screen.png └── default_screen.xcf ├── doomarkable.draft ├── Cross.toml ├── .github └── workflows │ ├── audit_dependencies.yml │ └── check_and_build.yml ├── Cargo.toml ├── src ├── layout │ ├── confirmexit.rs │ ├── confirmfullscreen.rs │ ├── settings.rs │ ├── keyboard.rs │ ├── controls.rs │ └── mod.rs ├── blue_noise_dither.rs ├── evdev_keyboard.rs └── main.rs ├── README.md ├── LICENSE └── Cargo.lock /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | .vscode 3 | /.idea 4 | *.iml 5 | -------------------------------------------------------------------------------- /doomarkable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinusCDE/doomarkable/HEAD/doomarkable.png -------------------------------------------------------------------------------- /res/default_screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinusCDE/doomarkable/HEAD/res/default_screen.png -------------------------------------------------------------------------------- /res/default_screen.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinusCDE/doomarkable/HEAD/res/default_screen.xcf -------------------------------------------------------------------------------- /doomarkable.draft: -------------------------------------------------------------------------------- 1 | name=DOOMarkable 2 | desc=DOOM on the reMarkable 3 | call=/opt/bin/doomarkable 4 | imgFile=doomarkable 5 | -------------------------------------------------------------------------------- /Cross.toml: -------------------------------------------------------------------------------- 1 | [target.armv7-unknown-linux-gnueabihf] 2 | image = "ghcr.io/toltec-dev/rust:v3.2" 3 | # Config from /root/.cargo/config of above image: 4 | env.passthrough = [ 5 | "CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc", 6 | "CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_RUSTFLAGS=-C link-arg=-march=armv7-a -C link-arg=-marm -C link-arg=-mfpu=neon -C link-arg=-mfloat-abi=hard -C link-arg=-mcpu=cortex-a9", 7 | ] 8 | -------------------------------------------------------------------------------- /.github/workflows/audit_dependencies.yml: -------------------------------------------------------------------------------- 1 | # Checking all used dependencies for known security vulns. 2 | # 3 | # Only checking on master since new vulns can appear during a PR, 4 | # but it's not that PR's job to fix these vulns right there. 5 | # The issue should only be shown up after merging and a separate PR 6 | # can be created to address the issue(s) then. 7 | 8 | name: Audit dependencies 9 | on: 10 | push: 11 | branches: [ master ] 12 | # Also run monthly 13 | schedule: 14 | - cron: '0 0 1 * *' 15 | jobs: 16 | 17 | 18 | audit: 19 | name: Audit 20 | runs-on: ubuntu-latest 21 | steps: 22 | - uses: actions/checkout@v3 23 | - uses: actions-rs/toolchain@v1 24 | with: 25 | toolchain: stable 26 | target: armv7-unknown-linux-gnueabihf 27 | profile: minimal 28 | - name: Security Audit 29 | uses: actions-rs/audit-check@v1 30 | with: 31 | token: ${{ secrets.GITHUB_TOKEN }} 32 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "doomarkable" 3 | version = "0.4.2" 4 | edition = "2018" 5 | authors = ["Linus "] 6 | 7 | # Using build script to generate the dither cache 8 | # and compressing it at compilation so it can be 9 | # included in the final binary. 10 | build = "build/main.rs" 11 | 12 | [build-dependencies] 13 | image = "0.25" 14 | zstd = "0.13" 15 | 16 | [profile.release.build-override] 17 | # Makes dithered cache calculation about 25x faster! 18 | opt-level = 2 19 | 20 | [dependencies] 21 | doomgeneric = "=0.3.0-beta.2" 22 | libremarkable = "0.7.0" 23 | fxhash = "0.2" 24 | mimalloc = { version = "0.1", default-features = false } 25 | log = "0.4" 26 | env_logger = "0.11" 27 | zstd = "0.13" # Matched with libremarkable, since only one version of zstd-sys can be built 28 | inotify = "0.11" 29 | evdev = "0.13" 30 | 31 | [profile.release] 32 | # Improves performance significantly 33 | lto = "thin" 34 | codegen-units = 1 35 | 36 | # Maybe a slight performance increase. Not really worth it. 37 | #panic = "abort" 38 | -------------------------------------------------------------------------------- /.github/workflows/check_and_build.yml: -------------------------------------------------------------------------------- 1 | name: Check and build 2 | on: [ push, pull_request ] 3 | jobs: 4 | 5 | 6 | check: 7 | name: Check 8 | runs-on: ubuntu-latest 9 | steps: 10 | - uses: actions/checkout@v5 11 | - uses: actions-rs/cargo@v1 12 | # TODO: Would be nice to get rid of all warnings at some 13 | # point and make this check fail if any are found. 14 | name: Run cargo check 15 | with: 16 | use-cross: true 17 | command: check 18 | args: --target=armv7-unknown-linux-gnueabihf 19 | 20 | 21 | build_snapshot: 22 | name: Build snapshot 23 | runs-on: ubuntu-latest 24 | steps: 25 | - uses: actions/checkout@v5 26 | - uses: actions-rs/cargo@v1 27 | name: Run cargo build --release 28 | with: 29 | use-cross: true 30 | command: build 31 | args: --release --target=armv7-unknown-linux-gnueabihf 32 | - uses: actions/upload-artifact@v4 33 | with: 34 | name: snapshot 35 | path: target/armv7-unknown-linux-gnueabihf/release/doomarkable 36 | 37 | 38 | # TODO: Clippy, rustfmt and similar here as well 39 | # See https://actions-rs.github.io/ 40 | -------------------------------------------------------------------------------- /src/layout/confirmexit.rs: -------------------------------------------------------------------------------- 1 | use super::{ButtonAction, Element, Layout, LayoutId}; 2 | use libremarkable::framebuffer::common; 3 | 4 | pub fn create() -> Layout { 5 | let buttons = vec![ 6 | Element::Text { 7 | rect: common::mxcfb_rect { 8 | left: 0, 9 | top: 1400 - 300 - 10 - 10, 10 | width: common::DISPLAYWIDTH as u32, 11 | height: 100, 12 | }, 13 | text: "Are you sure?", 14 | size: 100.0, 15 | }, 16 | Element::Text { 17 | rect: common::mxcfb_rect { 18 | left: 0, 19 | top: 1400 - 300 - 10 - 10 + 100, 20 | width: common::DISPLAYWIDTH as u32, 21 | height: 100, 22 | }, 23 | text: "Any unsaved progress will get lost!", 24 | size: 50.0, 25 | }, 26 | Element::Button { 27 | rect: common::mxcfb_rect { 28 | left: (common::DISPLAYWIDTH as u32 - (300 + 50 + 300)) / 2, 29 | top: 1400 - 300 - 10 - 10 + 100 + 75 + 50, 30 | width: 300, 31 | height: 150, 32 | }, 33 | label: "Exit", 34 | label_size: 75.0, 35 | action: ButtonAction::Function(Box::new(|| { 36 | std::process::exit(0); 37 | })), 38 | }, 39 | Element::Button { 40 | rect: common::mxcfb_rect { 41 | left: (common::DISPLAYWIDTH as u32 - (300 + 50 + 300)) / 2 + 300 + 50, 42 | top: 1400 - 300 - 10 - 10 + 100 + 75 + 50, 43 | width: 300, 44 | height: 150, 45 | }, 46 | label: "Back", 47 | label_size: 75.0, 48 | action: ButtonAction::SwitchLayout(LayoutId::Settings), 49 | }, 50 | ]; 51 | 52 | Layout::new(buttons) 53 | } 54 | -------------------------------------------------------------------------------- /src/layout/confirmfullscreen.rs: -------------------------------------------------------------------------------- 1 | use super::{ButtonAction, Element, Layout, LayoutId}; 2 | use libremarkable::framebuffer::common; 3 | 4 | pub fn create() -> Layout { 5 | let buttons = vec![ 6 | Element::Text { 7 | rect: common::mxcfb_rect { 8 | left: 0, 9 | top: 1400 - 300 - 10 - 10, 10 | width: common::DISPLAYWIDTH as u32, 11 | height: 100, 12 | }, 13 | text: "Go Fullscreen?", 14 | size: 100.0, 15 | }, 16 | Element::Text { 17 | rect: common::mxcfb_rect { 18 | left: 0, 19 | top: 1400 - 300 - 10 - 10 + 100, 20 | width: common::DISPLAYWIDTH as u32, 21 | height: 100, 22 | }, 23 | text: "You'll need to attach a physical keyboard to play!", 24 | size: 50.0, 25 | }, 26 | Element::Text { 27 | rect: common::mxcfb_rect { 28 | left: 0, 29 | top: 1400 - 300 - 10 - 10 + 100 + 75, 30 | width: common::DISPLAYWIDTH as u32, 31 | height: 100, 32 | }, 33 | text: "To exit fullscreen, just touch anywhere.", 34 | size: 50.0, 35 | }, 36 | Element::Button { 37 | rect: common::mxcfb_rect { 38 | left: (common::DISPLAYWIDTH as u32 - (300 + 50 + 300)) / 2, 39 | top: 1400 - 300 - 10 - 10 + 100 + 75 + 75 + 50, 40 | width: 300, 41 | height: 150, 42 | }, 43 | label: "OK", 44 | label_size: 75.0, 45 | action: ButtonAction::EnterFullscreen, 46 | }, 47 | Element::Button { 48 | rect: common::mxcfb_rect { 49 | left: (common::DISPLAYWIDTH as u32 - (300 + 50 + 300)) / 2 + 300 + 50, 50 | top: 1400 - 300 - 10 - 10 + 100 + 75 + 75 + 50, 51 | width: 300, 52 | height: 150, 53 | }, 54 | label: "Back", 55 | label_size: 75.0, 56 | action: ButtonAction::SwitchLayout(LayoutId::Settings), 57 | }, 58 | ]; 59 | 60 | Layout::new(buttons) 61 | } 62 | -------------------------------------------------------------------------------- /src/layout/settings.rs: -------------------------------------------------------------------------------- 1 | use super::{ButtonAction, Element, Layout, LayoutId}; 2 | use crate::FB; 3 | use libremarkable::framebuffer::{common, FramebufferRefresh}; 4 | 5 | pub fn create() -> Layout { 6 | let buttons = vec![ 7 | Element::Button { 8 | rect: common::mxcfb_rect { 9 | left: 1404 - 62 - 100, 10 | top: 1400 - 300 - 10 - 10, 11 | width: 100, 12 | height: 50, 13 | }, 14 | label: "Back", 15 | label_size: 25.0, 16 | action: ButtonAction::SwitchLayout(LayoutId::Controls), 17 | }, 18 | Element::Text { 19 | rect: common::mxcfb_rect { 20 | left: 0, 21 | top: 1400 - 300 - 10 - 10, 22 | width: common::DISPLAYWIDTH as u32, 23 | height: 100, 24 | }, 25 | text: "Settings", 26 | size: 100.0, 27 | }, 28 | Element::Button { 29 | rect: common::mxcfb_rect { 30 | left: 62, 31 | top: 1400 - 300 - 10 + 100 + 10 + (100 + 10) * 0, 32 | width: 400, 33 | height: 100, 34 | }, 35 | label: "Full refresh", 36 | label_size: 50.0, 37 | action: ButtonAction::Function(Box::new(|| { 38 | FB.lock().unwrap().full_refresh( 39 | common::waveform_mode::WAVEFORM_MODE_GC16, 40 | common::display_temp::TEMP_USE_MAX, 41 | common::dither_mode::EPDC_FLAG_USE_REMARKABLE_DITHER, 42 | 0, 43 | true, 44 | ); 45 | })), 46 | }, 47 | Element::Button { 48 | rect: common::mxcfb_rect { 49 | left: 62, 50 | top: 1400 - 300 - 10 + 100 + 10 + (100 + 10) * 1, 51 | width: 400, 52 | height: 100, 53 | }, 54 | label: "Fullscreen", 55 | label_size: 50.0, 56 | action: ButtonAction::SwitchLayout(LayoutId::ConfirmFullscreen), 57 | }, 58 | Element::Button { 59 | rect: common::mxcfb_rect { 60 | left: 62, 61 | top: 1400 - 300 - 10 + 100 + 10 + (100 + 10) * 2, 62 | width: 400, 63 | height: 100, 64 | }, 65 | label: "Exit", 66 | label_size: 50.0, 67 | action: ButtonAction::SwitchLayout(LayoutId::ConfirmExit), 68 | }, 69 | ]; 70 | 71 | Layout::new(buttons) 72 | } 73 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DOOMarkable 2 | 3 | [![rm1](https://img.shields.io/badge/rM1-supported-green)](https://remarkable.com/store/remarkable) 4 | [![rm2](https://img.shields.io/badge/rM2-not_recommended-yellow)](https://remarkable.com/store/remarkable-2) 5 | [![opkg](https://img.shields.io/badge/OPKG-doomarkable-blue)](https://github.com/toltec-dev/toltec) 6 | [![launchers](https://img.shields.io/badge/Launchers-supported-green)](https://github.com/reHackable/awesome-reMarkable#launchers) 7 | 8 | This is a doom port intended for the reMarkable 1. 9 | 10 |   11 | 12 | [Demo Video on rM 1](https://youtu.be/wdH3GFU74sM) | [Demo Video on rM 2 (not recommended)](https://youtu.be/PFR3QHZ7kGw) 13 | 14 | ## What's mainly used and how it's done 15 | 16 | It is composed out of a lot of different compontents: 17 | 18 | - [doomgeneric-rs](https://github.com/LinusCDE/doomgeneric-rs) - Rust bindings for doomgeneric 19 | - [doomgeneric](https://github.com/ozkl/doomgeneric) - An awesome and easy to use doom port made by @ozkl 20 | - [libremarkable](https://github.com/canselcik/libremarkable/) - Drawing to the display and reading inputs 21 | - [blue-noise](https://github.com/mblode/blue-noise/) - An amazing dithering algorithm to fake grayscale output 22 | 23 | The meat of the work was to port doom to rust (doomgeneric-rs) and dithering the image and doing that as fast as possible! 24 | The dither speed was achived through forcing better optimizations and caching the code. The dithering is actually done at compile time for a 320x200 source image and the results (for upscaling 4x) are put into the generated binary itself. The binary then just needs to decompress this and look up the results for each pixel. 25 | 26 | ## Current state 27 | 28 | The game currently runs at about 11-14 FPS on the device. 29 | It's not using the low latency drawing even though it's pretty simple to use since the image has no gray shades. 30 | The reason is that using an A2-Like refresh has less artifacts and ghosting. 31 | I personally find this worth the extra latency when playing. 32 | 33 | The game currently runs fine but there are still some things to do: 34 | 35 | - [ ] Making it easy to get the game resources **(semi done)** 36 | - [x] Properly exit the game without requiring killing the process 37 | - [x] Adjusting gamma to make dithered visuals clearer for certain rooms 38 | - [x] Add an battery indicator (this sucks a lot of juice ..ahem.. blood) 39 | - [x] Package it up for [toltec](https://github.com/toltec-dev/toltec) and inclusion in [launchers](https://github.com/reHackable/awesome-reMarkable#launchers) 40 | - [ ] Consider a smaller size for the rM 2, so the eink software driver doesn't die trying to update that many dots 41 | 42 | ## How to run 43 | 44 | - Download the latest binary from the [release page](https://github.com/LinusCDE/doomarkable/releases) (the file without any extension) 45 | - Copy the file to e.g. `/home/root` on your reMarkable (e.g. using FileZilla or WinSCP) 46 | - Find an appropriate IWAD file (game resources) and put it in `/home/root` ([more details](https://github.com/LinusCDE/piston-doom#get-an-iwad-file)) 47 | - Log into the device using ssh (e.g. with Putty) and go into your chosen directory 48 | - Make the binary executable by running `chmod +x doomarkable` 49 | - Ensure no other UI is running (e.g. stop the default UI with `systemctl stop xochitl` and start it later using start instead of stop) 50 | - Run the binary: `./doomarkable` (on the rM 2, you'll need [rm2fb](https://github.com/ddvk/remarkable2-framebuffer) and prefix that command with `rm2fb-client`) 51 | - DOOM should now run on your device. If the game doesn't come up, view the output for any errors or enable debugging by adding `RUST_LOG=debug` before the command 52 | 53 | ### Environment variable for the reMarkable 2 54 | 55 | The environment variable `LIBREMARKABLE_FB_DISFAVOR_INTERNAL_RM2FB` can be set to `1` to make this application not try to use its internal framebuffer client for [RM2FB](https://github.com/ddvk/remarkable2-framebuffer/). 56 | 57 | ### Compiling 58 | 59 | In general building should work on most toolchains. You generally wanna target armv7-unknown-linux-gnueabihf for any remarkable. 60 | But as with all things in life, stuff never works great on every setup. 61 | 62 | That's why I recommend to nowadays build with the rust image from [toltec-dev/toolchain](https://github.com/toltec-dev/toolchain). It is the most modern and the closest to the actual reMarkable system as you're gonna get as of now. 63 | 64 | To make it easier to use, I found that you can use the rust image (`ghcr.io/toltec-dev/rust:v3.2`, [all versions](https://github.com/toltec-dev/toolchain/pkgs/container/rust)). 65 | This is done using the `Cross.toml` file. So you should just need to run `cross build --target=armv7-unknown-linux-gnueabihf --release` and it will use the above image (or possibly newer if this readme gets out-of-date). 66 | -------------------------------------------------------------------------------- /src/blue_noise_dither.rs: -------------------------------------------------------------------------------- 1 | use libremarkable::image::{DynamicImage, GenericImageView, GrayImage, Luma}; 2 | 3 | pub struct CachedDither4X { 4 | dither_cache: Vec, 5 | } 6 | 7 | impl CachedDither4X { 8 | fn convert_vec_u8_to_vec_u16(vec: Vec) -> Vec { 9 | assert!(vec.len() % 2 == 0); 10 | vec.chunks_exact(2) 11 | .map(|b| u16::from_le_bytes([b[0], b[1]])) 12 | .collect() 13 | } 14 | 15 | pub fn new(raw_dither_cache: Vec) -> Self { 16 | Self { 17 | dither_cache: Self::convert_vec_u8_to_vec_u16(raw_dither_cache), 18 | } 19 | } 20 | 21 | /// TODO: Fix duplication in build/blue_noise_calculator.rs 22 | #[inline] 23 | fn calc_dither_cache_index(old_pixel: &Luma, x: u32, y: u32) -> usize { 24 | const PIX_WIDTH: usize = 256; // 256 shades of gray (each with its own dithered u16) 25 | const LINE_WIDTH: usize = 320 as usize * PIX_WIDTH; // TODO: 320 is still hardcoded! 26 | let x = x as usize; 27 | let y = y as usize; 28 | let pix_luma_val = old_pixel[0] as usize; 29 | (y * LINE_WIDTH) + (x * PIX_WIDTH) + pix_luma_val 30 | } 31 | 32 | /// TODO: Fix duplication in build/blue_noise_calculator.rs 33 | #[inline] 34 | pub fn calc_dither_cache_len(width: u32, height: u32) -> usize { 35 | width as usize * height as usize * 256 36 | } 37 | 38 | #[inline] 39 | pub fn get_dithered_pixels_4x4(&self, old_pixel: &Luma, x: u32, y: u32) -> u16 { 40 | self.dither_cache[Self::calc_dither_cache_index(old_pixel, x, y)] 41 | } 42 | 43 | pub fn dither_image(&mut self, input_image: &DynamicImage) -> GrayImage { 44 | assert_eq!( 45 | Self::calc_dither_cache_len(input_image.width(), input_image.height()), 46 | self.dither_cache.len() 47 | ); 48 | 49 | // RgbImage == ImageBuffer, Vec> 50 | let start = std::time::Instant::now(); 51 | // Grayscale image 52 | //let old_img = libremarkable::image::imageops::grayscale(input_image); 53 | // No need for srgb correction. 54 | let old_img = libremarkable::image::GrayImage::from_fn( 55 | input_image.width(), 56 | input_image.height(), 57 | |x, y| { 58 | let pixel = input_image.get_pixel(x, y); 59 | /*let r = pixel.data[0] as f32 / 255.0 * 1.5; 60 | let g = pixel.data[1] as f32 / 255.0 * 1.5; 61 | let b = pixel.data[2] as f32 / 255.0 * 1.5; 62 | let gray = (1f32.min((r + g + b) / 3.0) * 255f32) as u8; 63 | Luma([gray])*/ 64 | 65 | let r = pixel.0[0] as u16; 66 | let g = pixel.0[1] as u16; 67 | let b = pixel.0[2] as u16; 68 | Luma([((r + g + b) / 3) as u8]) 69 | }, 70 | ); 71 | debug!("Dither: Grayscaling took {:?}", start.elapsed()); 72 | 73 | let (width, height) = old_img.dimensions(); 74 | 75 | //let mut new_img = GrayImage::new(width * 4, height * 4); 76 | let mut new_img_vec = vec![0u8; (width as usize * 4) * (height as usize * 4)]; 77 | 78 | // Using such a naive loop without any additions makes the code about 30% faster! 79 | let mut i_scaled = 0; 80 | let mut x: u32; 81 | let mut y: u32 = 0; 82 | loop { 83 | if y == height { 84 | break; 85 | } 86 | 87 | x = 0; 88 | loop { 89 | if x == width { 90 | break; 91 | } 92 | 93 | let old_pixel = old_img.get_pixel(x, y); 94 | let res = self.get_dithered_pixels_4x4(old_pixel, x, y); 95 | new_img_vec[i_scaled + 0] = ((res >> 00) & 0x1) as u8 * 255; 96 | new_img_vec[i_scaled + 1] = ((res >> 01) & 0x1) as u8 * 255; 97 | new_img_vec[i_scaled + 2] = ((res >> 02) & 0x1) as u8 * 255; 98 | new_img_vec[i_scaled + 3] = ((res >> 03) & 0x1) as u8 * 255; 99 | let i_scaled_nextline = i_scaled + (width as usize * 4); 100 | new_img_vec[i_scaled_nextline + 0] = ((res >> 04) & 0x1) as u8 * 255; 101 | new_img_vec[i_scaled_nextline + 1] = ((res >> 05) & 0x1) as u8 * 255; 102 | new_img_vec[i_scaled_nextline + 2] = ((res >> 06) & 0x1) as u8 * 255; 103 | new_img_vec[i_scaled_nextline + 3] = ((res >> 07) & 0x1) as u8 * 255; 104 | let i_scaled_nextline = i_scaled_nextline + (width as usize * 4); 105 | new_img_vec[i_scaled_nextline + 0] = ((res >> 08) & 0x1) as u8 * 255; 106 | new_img_vec[i_scaled_nextline + 1] = ((res >> 09) & 0x1) as u8 * 255; 107 | new_img_vec[i_scaled_nextline + 2] = ((res >> 10) & 0x1) as u8 * 255; 108 | new_img_vec[i_scaled_nextline + 3] = ((res >> 11) & 0x1) as u8 * 255; 109 | let i_scaled_nextline = i_scaled_nextline + (width as usize * 4); 110 | new_img_vec[i_scaled_nextline + 0] = ((res >> 12) & 0x1) as u8 * 255; 111 | new_img_vec[i_scaled_nextline + 1] = ((res >> 13) & 0x1) as u8 * 255; 112 | new_img_vec[i_scaled_nextline + 2] = ((res >> 14) & 0x1) as u8 * 255; 113 | new_img_vec[i_scaled_nextline + 3] = ((res >> 15) & 0x1) as u8 * 255; 114 | 115 | x += 1; 116 | i_scaled += 4; 117 | } 118 | 119 | y += 1; 120 | i_scaled += width as usize * (4 * 3); 121 | } 122 | 123 | GrayImage::from_vec(width * 4, height * 4, new_img_vec).unwrap() 124 | } 125 | } 126 | -------------------------------------------------------------------------------- /src/layout/keyboard.rs: -------------------------------------------------------------------------------- 1 | use super::{ButtonAction, Element, Layout, LayoutId}; 2 | use libremarkable::framebuffer::common; 3 | 4 | struct KeyDefinition { 5 | weighted_width: f32, 6 | title: &'static str, 7 | primary_letter: char, 8 | } 9 | 10 | impl KeyDefinition { 11 | fn new(weighted_width: f32, title: &'static str, primary_letter: char) -> Self { 12 | Self { 13 | weighted_width, 14 | title, 15 | primary_letter, 16 | } 17 | } 18 | } 19 | 20 | fn create_keyboard_definitions() -> Vec> { 21 | vec![ 22 | // Row 1 23 | vec![ 24 | KeyDefinition::new(61.0, "^", '^'), 25 | KeyDefinition::new(61.0, "1", '1'), 26 | KeyDefinition::new(61.0, "2", '2'), 27 | KeyDefinition::new(61.0, "3", '3'), 28 | KeyDefinition::new(61.0, "4", '4'), 29 | KeyDefinition::new(61.0, "5", '5'), 30 | KeyDefinition::new(61.0, "6", '6'), 31 | KeyDefinition::new(61.0, "7", '7'), 32 | KeyDefinition::new(61.0, "8", '8'), 33 | KeyDefinition::new(61.0, "9", '9'), 34 | KeyDefinition::new(61.0, "0", '0'), 35 | KeyDefinition::new(61.0, "-", '-'), 36 | KeyDefinition::new(61.0, "+", '+'), 37 | KeyDefinition::new(120.0, "Backspace", '\x7f'), 38 | ], 39 | // Row 2 40 | vec![ 41 | KeyDefinition::new(90.0, "Tab", '\x09'), 42 | KeyDefinition::new(61.0, "q", 'q'), 43 | KeyDefinition::new(61.0, "w", 'w'), 44 | KeyDefinition::new(61.0, "e", 'e'), 45 | KeyDefinition::new(61.0, "r", 'r'), 46 | KeyDefinition::new(61.0, "t", 't'), 47 | KeyDefinition::new(61.0, "y", 'y'), 48 | KeyDefinition::new(61.0, "u", 'u'), 49 | KeyDefinition::new(61.0, "i", 'i'), 50 | KeyDefinition::new(61.0, "o", 'o'), 51 | KeyDefinition::new(61.0, "p", 'p'), 52 | KeyDefinition::new(61.0, "" /*"{"*/, '\0'), 53 | KeyDefinition::new(61.0, "" /*"}"*/, '\0'), 54 | KeyDefinition::new(91.0, "" /*"|"*/, '\0'), 55 | ], 56 | // Row 3 57 | vec![ 58 | KeyDefinition::new(106.0, "Caps Lock", 0xba as char), 59 | KeyDefinition::new(61.0, "a", 'a'), 60 | KeyDefinition::new(61.0, "s", 's'), 61 | KeyDefinition::new(61.0, "d", 'd'), 62 | KeyDefinition::new(61.0, "f", 'f'), 63 | KeyDefinition::new(61.0, "g", 'g'), 64 | KeyDefinition::new(61.0, "h", 'h'), 65 | KeyDefinition::new(61.0, "j", 'j'), 66 | KeyDefinition::new(61.0, "k", 'k'), 67 | KeyDefinition::new(61.0, "l", 'l'), 68 | KeyDefinition::new(61.0, ":", ':'), 69 | KeyDefinition::new(61.0, "\"", '\"'), 70 | KeyDefinition::new(136.0, "Enter", '\x0d'), 71 | ], 72 | // Row 4 73 | vec![ 74 | KeyDefinition::new(136.0, "Shift", '\x0e'), // Shift in?? 75 | KeyDefinition::new(61.0, "z", 'z'), 76 | KeyDefinition::new(61.0, "x", 'x'), 77 | KeyDefinition::new(61.0, "c", 'c'), 78 | KeyDefinition::new(61.0, "v", 'v'), 79 | KeyDefinition::new(61.0, "b", 'b'), 80 | KeyDefinition::new(61.0, "n", 'n'), 81 | KeyDefinition::new(61.0, "m", 'm'), 82 | KeyDefinition::new(61.0, "<", '<'), 83 | KeyDefinition::new(61.0, ">", '>'), 84 | KeyDefinition::new(61.0, "?", '?'), 85 | KeyDefinition::new(167.0, "Shift", 0xb6 as char), // Shift in?? 86 | ], 87 | // Row 5 88 | vec![ 89 | KeyDefinition::new(92.0, "Ctrl", 0x9d as char), 90 | KeyDefinition::new(61.0, /*"Super"*/ "", '\0'), 91 | KeyDefinition::new(92.0, "Alt", 0xb8 as char), 92 | KeyDefinition::new(362.0, "Space", ' '), 93 | KeyDefinition::new(92.0, "Alt", 0xb8 as char), 94 | KeyDefinition::new(61.0, "" /*"Super"*/, '\0'), 95 | KeyDefinition::new(61.0, "" /*"Menu"*/, '\0'), 96 | KeyDefinition::new(92.0, "Ctrl", 0x9d as char), 97 | ], 98 | ] 99 | } 100 | 101 | pub fn create() -> Layout { 102 | let mut buttons = vec![Element::Button { 103 | rect: common::mxcfb_rect { 104 | left: 1404 - 62 - 100, 105 | top: 1400 - 300 - 10 - 10, 106 | width: 100, 107 | height: 50, 108 | }, 109 | label: "Back", 110 | label_size: 25.0, 111 | action: ButtonAction::SwitchLayout(LayoutId::Controls), 112 | }]; 113 | 114 | let keys = create_keyboard_definitions(); 115 | let weighted_height = 61f32; 116 | //let height_weight_sum = weighted_height * keys.len() as f32; 117 | let width_weight_sum = keys[0].iter().map(|k| k.weighted_width).sum::(); 118 | 119 | let mut y = (1400 - 300 - 10 - 10 + 50 + 100) as f32; 120 | 121 | let width_factor = (common::DISPLAYWIDTH as f32 - (62 * 2) as f32) / width_weight_sum; 122 | //let height_factor = ((common::DISPLAYHEIGHT as u32 - 62) as f32 - y) / height_weight_sum; 123 | let height_factor = width_factor; // Square keys 124 | 125 | //let text: Vec = keys.iter().map(|k| k.iter().map(|k| k.weighted_width).sum()).collect(); 126 | //info!("{:?}", text); 127 | 128 | for row in keys { 129 | let mut x = 62f32; 130 | for key in row { 131 | buttons.push(Element::Button { 132 | rect: common::mxcfb_rect { 133 | left: x as u32, 134 | top: y as u32, 135 | width: (key.weighted_width * width_factor) as u32, 136 | height: (weighted_height * height_factor) as u32, 137 | }, 138 | label: key.title, 139 | label_size: 25.0, 140 | action: ButtonAction::DoomKey(key.primary_letter as u8), 141 | }); 142 | x += key.weighted_width * width_factor; 143 | } 144 | 145 | y += weighted_height * height_factor; 146 | } 147 | 148 | Layout::new(buttons) 149 | } 150 | -------------------------------------------------------------------------------- /src/layout/controls.rs: -------------------------------------------------------------------------------- 1 | use super::{ButtonAction, Element, Layout, LayoutId}; 2 | use doomgeneric::input::keys; 3 | use libremarkable::framebuffer::common; 4 | 5 | pub fn create() -> Layout { 6 | let buttons = vec![ 7 | Element::Button { 8 | rect: common::mxcfb_rect { 9 | left: 722, 10 | top: 1400, 11 | width: 200, 12 | height: 200 + 10 + 200, 13 | }, 14 | label: "<", 15 | label_size: 100.0, 16 | action: ButtonAction::DoomKey(*keys::KEY_LEFT), 17 | }, 18 | Element::Button { 19 | rect: common::mxcfb_rect { 20 | left: 722 + 200 + 10, 21 | top: 1400, 22 | width: 200, 23 | height: 200, 24 | }, 25 | label: "^", 26 | label_size: 100.0, 27 | action: ButtonAction::DoomKey(*keys::KEY_UP), 28 | }, 29 | Element::Button { 30 | rect: common::mxcfb_rect { 31 | left: 722 + 200 + 10, 32 | top: 1400 + 200 + 10, 33 | width: 200, 34 | height: 200, 35 | }, 36 | label: "v", 37 | label_size: 100.0, 38 | action: ButtonAction::DoomKey(*keys::KEY_DOWN), 39 | }, 40 | Element::Button { 41 | rect: common::mxcfb_rect { 42 | left: 722 + 200 + 10 + 200 + 10, 43 | top: 1400, 44 | width: 200, 45 | height: 200 + 10 + 200, 46 | }, 47 | label: ">", 48 | label_size: 100.0, 49 | action: ButtonAction::DoomKey(*keys::KEY_RIGHT), 50 | }, 51 | Element::Button { 52 | rect: common::mxcfb_rect { 53 | left: 62, 54 | top: 1400, 55 | width: 300, 56 | height: 200 + 10 + 200, 57 | }, 58 | label: "Strafe", 59 | label_size: 25.0, 60 | action: ButtonAction::DoomKey(*keys::KEY_STRAFE), 61 | }, 62 | Element::Button { 63 | rect: common::mxcfb_rect { 64 | left: 62 + 300 + 10, 65 | top: 1400, 66 | width: 300, 67 | height: 200 + 10 + 200, 68 | }, 69 | label: "Fire", 70 | label_size: 25.0, 71 | action: ButtonAction::DoomKey(*keys::KEY_FIRE), 72 | }, 73 | Element::Button { 74 | rect: common::mxcfb_rect { 75 | left: 62, 76 | top: 1400 - 10 - 150 - 10 - 150, 77 | width: 300, 78 | height: 150, 79 | }, 80 | label: "ESC", 81 | label_size: 25.0, 82 | action: ButtonAction::DoomKey(keys::KEY_ESCAPE), 83 | }, 84 | Element::Button { 85 | rect: common::mxcfb_rect { 86 | left: 62, 87 | top: 1400 - 150 - 10, 88 | width: 300, 89 | height: 150, 90 | }, 91 | label: "Enter", 92 | label_size: 25.0, 93 | action: ButtonAction::DoomKey(keys::KEY_ENTER), 94 | }, 95 | Element::Button { 96 | rect: common::mxcfb_rect { 97 | left: 62 + 300 + 10, 98 | top: 1400 - 300 - 10 - 10, 99 | width: 300, 100 | height: 150 + 10 + 150, 101 | }, 102 | label: "Use", 103 | label_size: 25.0, 104 | action: ButtonAction::DoomKey(*keys::KEY_USE), 105 | }, 106 | Element::Button { 107 | rect: common::mxcfb_rect { 108 | left: 1404 - 62 - 100, 109 | top: 1400 - 300 - 10 - 10, 110 | width: 100, 111 | height: 50, 112 | }, 113 | label: "Settings", 114 | label_size: 25.0, 115 | action: ButtonAction::SwitchLayout(LayoutId::Settings), 116 | }, 117 | Element::Button { 118 | rect: common::mxcfb_rect { 119 | left: 1404 - 62 - 100, 120 | top: 1400 - 300 - 10 - 10 + 50 + 5, 121 | width: 100, 122 | height: 50, 123 | }, 124 | label: "Keyboard", 125 | label_size: 25.0, 126 | action: ButtonAction::SwitchLayout(LayoutId::Keyboard), 127 | }, 128 | Element::Button { 129 | rect: common::mxcfb_rect { 130 | left: 722 + (75 - 4) * 0, 131 | top: 1400 - 300 - 10 - 10, 132 | width: 75, 133 | height: 75, 134 | }, 135 | label: "2", 136 | label_size: 25.0, 137 | action: ButtonAction::DoomKey(keys::from_char('2').unwrap()), 138 | }, 139 | Element::Button { 140 | rect: common::mxcfb_rect { 141 | left: 722 + (75 - 4) * 1, 142 | top: 1400 - 300 - 10 - 10, 143 | width: 75, 144 | height: 75, 145 | }, 146 | label: "3", 147 | label_size: 25.0, 148 | action: ButtonAction::DoomKey(keys::from_char('3').unwrap()), 149 | }, 150 | Element::Button { 151 | rect: common::mxcfb_rect { 152 | left: 722 + (75 - 4) * 2, 153 | top: 1400 - 300 - 10 - 10, 154 | width: 75, 155 | height: 75, 156 | }, 157 | label: "4", 158 | label_size: 25.0, 159 | action: ButtonAction::DoomKey(keys::from_char('4').unwrap()), 160 | }, 161 | Element::Button { 162 | rect: common::mxcfb_rect { 163 | left: 722 + (75 - 4) * 0, 164 | top: 1400 - 300 - 10 - 10 + (75 - 4) * 1, 165 | width: 75, 166 | height: 75, 167 | }, 168 | label: "5", 169 | label_size: 25.0, 170 | action: ButtonAction::DoomKey(keys::from_char('5').unwrap()), 171 | }, 172 | Element::Button { 173 | rect: common::mxcfb_rect { 174 | left: 722 + (75 - 4) * 1, 175 | top: 1400 - 300 - 10 - 10 + (75 - 4) * 1, 176 | width: 75, 177 | height: 75, 178 | }, 179 | label: "6", 180 | label_size: 25.0, 181 | action: ButtonAction::DoomKey(keys::from_char('6').unwrap()), 182 | }, 183 | Element::Button { 184 | rect: common::mxcfb_rect { 185 | left: 722 + (75 - 4) * 2, 186 | top: 1400 - 300 - 10 - 10 + (75 - 4) * 1, 187 | width: 75, 188 | height: 75, 189 | }, 190 | label: "7", 191 | label_size: 25.0, 192 | action: ButtonAction::DoomKey(keys::from_char('7').unwrap()), 193 | }, 194 | Element::Button { 195 | rect: common::mxcfb_rect { 196 | left: 722 + (75 - 4) * 0, 197 | top: 1400 - 300 - 10 - 10 + (75 - 4) * 2, 198 | width: (75 - 4) * 3 + 4, 199 | height: 75, 200 | }, 201 | label: "Arms", 202 | label_size: 25.0, 203 | action: ButtonAction::DoomKey(keys::from_char('1').unwrap()), 204 | }, 205 | ]; 206 | 207 | Layout::new(buttons) 208 | } 209 | -------------------------------------------------------------------------------- /src/evdev_keyboard.rs: -------------------------------------------------------------------------------- 1 | use std::{path::Path, sync::mpsc::Sender}; 2 | 3 | use doomgeneric::input::KeyData; 4 | use evdev::KeyCode; 5 | 6 | const DEV_INPUT_DIR: &str = "/dev/input"; 7 | 8 | pub fn init(keydata_tx: Sender) { 9 | scan_for_existing_keyboards(&keydata_tx); 10 | spawn_keyboard_watcher(keydata_tx); 11 | } 12 | 13 | fn scan_for_existing_keyboards(keydata_tx: &Sender) { 14 | // Find existing unknown evdev devices in /dev/input 15 | for entry in std::fs::read_dir(DEV_INPUT_DIR).expect("Listing files of input devices dir") { 16 | let entry = match entry { 17 | Ok(entry) => entry, 18 | Err(_) => continue, 19 | }; 20 | let filename = entry.file_name().to_str().unwrap().to_owned(); 21 | let path = Path::new(DEV_INPUT_DIR).join(&filename); 22 | if path.is_dir() 23 | || !filename.starts_with("event") 24 | || libremarkable::input::scan::SCANNED.gpio_path == path 25 | || libremarkable::input::scan::SCANNED.wacom_path == path 26 | || libremarkable::input::scan::SCANNED.multitouch_path == path 27 | { 28 | continue; // Skip directories or known input devices (gpio, mt, wacom) 29 | } 30 | debug!("Existing evdev device detected: {path:?}"); 31 | spawn_evdev_keyboard(path, keydata_tx.clone()); 32 | } 33 | } 34 | 35 | fn spawn_keyboard_watcher(keydata_tx: Sender) { 36 | // Listen for new devices in /dev/input to allow hotplugging keyboards 37 | std::thread::spawn(move || { 38 | let mut inotify = match inotify::Inotify::init() { 39 | Ok(inotify) => { 40 | if let Err(err) = inotify 41 | .watches() 42 | .add(DEV_INPUT_DIR, inotify::WatchMask::CREATE) 43 | { 44 | error!("Could initialize inotify, however adding a watch for new files in {DEV_INPUT_DIR:?} failed: {err:?}"); 45 | return; 46 | } 47 | inotify 48 | } 49 | Err(err) => { 50 | error!("Could not initialize inotify: {err:?}"); 51 | return; 52 | } 53 | }; 54 | 55 | let mut inotify_buffer = [0u8; 4096]; 56 | loop { 57 | let inotify_events = match inotify.read_events_blocking(&mut inotify_buffer) { 58 | Ok(events) => events, 59 | Err(err) => { 60 | error!("Encountered an issue while reading inotify events! Keyboard hotplugging will not work anymore! {:?}", err); 61 | return; 62 | } 63 | }; 64 | 65 | for event in inotify_events { 66 | if !event.mask.contains(inotify::EventMask::CREATE) 67 | || event.mask.contains(inotify::EventMask::ISDIR) 68 | { 69 | continue; // Make sure this is a new file being created 70 | } 71 | 72 | let filename = event.name.unwrap().to_str().unwrap(); 73 | if !filename.starts_with("event") { 74 | continue; // Ignore things like "touchscreen0", "mouse0", etc. 75 | } 76 | let path = Path::new(DEV_INPUT_DIR).join(filename); 77 | debug!("New evdev device detected: {path:?}"); 78 | spawn_evdev_keyboard(path, keydata_tx.clone()); 79 | } 80 | } 81 | }); 82 | } 83 | 84 | // Check if device is a keyboard, spawn new thread and listen for keystrokes and send them to keydata_tx 85 | fn spawn_evdev_keyboard(path: impl AsRef, keydata_tx: Sender) { 86 | // Check if this device is a valid keyboard 87 | let mut device = match evdev::Device::open(&path) { 88 | Ok(device) => device, 89 | Err(err) => { 90 | error!("Failed opening evdev device {:?}! {:?}", path.as_ref(), err); 91 | return; 92 | } 93 | }; 94 | if !device.supported_events().contains(evdev::EventType::KEY) 95 | || [ 96 | KeyCode::KEY_Q, 97 | KeyCode::KEY_W, 98 | KeyCode::KEY_E, 99 | KeyCode::KEY_R, 100 | KeyCode::KEY_T, 101 | KeyCode::KEY_Y, 102 | ] 103 | .iter() 104 | .any(|key| { 105 | !device 106 | .supported_keys() 107 | .map(|keys| keys.contains(*key)) 108 | .unwrap_or(false) 109 | }) 110 | { 111 | info!("The evdev device {:?} is not a keyboard.", path.as_ref()); 112 | return; 113 | } 114 | 115 | let path = path.as_ref().to_path_buf(); 116 | // Listen for keys in new thread 117 | std::thread::spawn(move || { 118 | let name = device.name().unwrap().to_owned(); 119 | info!("Keyboard at {path:?} detected: {name}"); 120 | 121 | loop { 122 | let evs: Vec = match device.fetch_events() { 123 | Ok(evs) => evs, 124 | Err(err) => { 125 | debug!("Lost connection to keyboard {name} ({path:?}). It likely got disconnected. Error: {err}"); 126 | info!("Keyboard disconnected: {name}"); 127 | return; 128 | } 129 | }.collect(); 130 | 131 | for ev in evs { 132 | if let evdev::EventSummary::Key(_event, key, value) = ev.destructure() { 133 | if value != 0 && value != 1 { 134 | continue; // Ignore key being held (value == 2) and other potential values. 135 | } 136 | 137 | if let Ok((keycode, scancodes)) = device.get_scancode_by_index(key.0) { 138 | debug!("{} ({key:?}, keycode: {keycode}, scancodes: {scancodes:?}) => {value}", key.0); 139 | } else { 140 | debug!("{} ({key:?}) => {value}", key.0); 141 | } 142 | 143 | if let Some(doom_key_code) = map_evdev_keycode_to_doom(key) { 144 | keydata_tx 145 | .send(KeyData { 146 | key: doom_key_code, 147 | pressed: value == 1, 148 | }) 149 | .ok(); 150 | } else { 151 | debug!("No mapping for key found. Last keypress is not forwarded to game.") 152 | } 153 | } 154 | } 155 | } 156 | }); 157 | } 158 | 159 | fn map_evdev_keycode_to_doom(key: KeyCode) -> Option { 160 | // https://github.com/ozkl/doomgeneric/blob/613f870b6fa83ede448a247de5a2571092fa729d/doomgeneric/doomkeys.h 161 | Some(match key { 162 | KeyCode::KEY_A => 'a' as u8, 163 | KeyCode::KEY_B => 'b' as u8, 164 | KeyCode::KEY_C => 'c' as u8, 165 | KeyCode::KEY_D => 'd' as u8, 166 | KeyCode::KEY_E => 'e' as u8, 167 | KeyCode::KEY_F => 'f' as u8, 168 | KeyCode::KEY_G => 'g' as u8, 169 | KeyCode::KEY_H => 'h' as u8, 170 | KeyCode::KEY_I => 'i' as u8, 171 | KeyCode::KEY_J => 'j' as u8, 172 | KeyCode::KEY_K => 'k' as u8, 173 | KeyCode::KEY_L => 'l' as u8, 174 | KeyCode::KEY_M => 'm' as u8, 175 | KeyCode::KEY_N => 'n' as u8, 176 | KeyCode::KEY_O => 'o' as u8, 177 | KeyCode::KEY_P => 'p' as u8, 178 | KeyCode::KEY_Q => 'q' as u8, 179 | KeyCode::KEY_R => 'r' as u8, 180 | KeyCode::KEY_S => 's' as u8, 181 | KeyCode::KEY_T => 't' as u8, 182 | KeyCode::KEY_U => 'u' as u8, 183 | KeyCode::KEY_V => 'v' as u8, 184 | KeyCode::KEY_W => 'w' as u8, 185 | KeyCode::KEY_X => 'x' as u8, 186 | KeyCode::KEY_Y => 'y' as u8, 187 | KeyCode::KEY_Z => 'z' as u8, 188 | KeyCode::KEY_0 => '0' as u8, 189 | KeyCode::KEY_1 => '1' as u8, 190 | KeyCode::KEY_2 => '2' as u8, 191 | KeyCode::KEY_3 => '3' as u8, 192 | KeyCode::KEY_4 => '4' as u8, 193 | KeyCode::KEY_5 => '5' as u8, 194 | KeyCode::KEY_6 => '6' as u8, 195 | KeyCode::KEY_7 => '7' as u8, 196 | KeyCode::KEY_8 => '8' as u8, 197 | KeyCode::KEY_9 => '9' as u8, 198 | 199 | KeyCode::KEY_RIGHT => 0xae, 200 | KeyCode::KEY_LEFT => 0xac, 201 | KeyCode::KEY_UP => 0xad, 202 | KeyCode::KEY_DOWN => 0xaf, 203 | KeyCode::KEY_DOT => 0xa0, // Strafe left 204 | KeyCode::KEY_COMMA => 0xa1, // Strafe right 205 | KeyCode::KEY_SPACE => 0xa2, // Use 206 | KeyCode::KEY_LEFTCTRL => 0xa3, // Fire... i think 207 | KeyCode::KEY_ESC => 27, 208 | KeyCode::KEY_ENTER => 13, 209 | KeyCode::KEY_TAB => 9, 210 | KeyCode::KEY_F1 => 0x80 + 0x3b, 211 | KeyCode::KEY_F2 => 0x80 + 0x3c, 212 | KeyCode::KEY_F3 => 0x80 + 0x3d, 213 | KeyCode::KEY_F4 => 0x80 + 0x3e, 214 | KeyCode::KEY_F5 => 0x80 + 0x3f, 215 | KeyCode::KEY_F6 => 0x80 + 0x40, 216 | KeyCode::KEY_F7 => 0x80 + 0x41, 217 | KeyCode::KEY_F8 => 0x80 + 0x42, 218 | KeyCode::KEY_F9 => 0x80 + 0x43, 219 | KeyCode::KEY_F10 => 0x80 + 0x44, 220 | KeyCode::KEY_F11 => 0x80 + 0x57, 221 | KeyCode::KEY_F12 => 0x80 + 0x58, 222 | 223 | KeyCode::KEY_BACKSPACE => 0x7f, 224 | KeyCode::KEY_PAUSE => 0xff, 225 | 226 | KeyCode::KEY_EQUAL => 0x3d, 227 | KeyCode::KEY_MINUS => 0x2d, 228 | 229 | KeyCode::KEY_LEFTSHIFT => 0x80 + 0x36, // Does this have a different key for doom? 230 | KeyCode::KEY_RIGHTSHIFT => 0x80 + 0x36, 231 | KeyCode::KEY_RIGHTCTRL => 0x80 + 0x1d, 232 | KeyCode::KEY_LEFTALT => 0x80 + 0x38u8, 233 | KeyCode::KEY_RIGHTALT => 0x80 + 0x38, 234 | 235 | KeyCode::KEY_CAPSLOCK => 0x80 + 0x3a, 236 | KeyCode::KEY_NUMLOCK => 0x80 + 0x45, 237 | KeyCode::KEY_SCROLLLOCK => 0x80 + 0x46, 238 | KeyCode::KEY_PRINT => 0x80 + 0x59, // Is Print == PRINTSCR? 239 | 240 | KeyCode::KEY_HOME => 0x80 + 0x47, 241 | KeyCode::KEY_END => 0x80 + 0x4f, 242 | KeyCode::KEY_PAGEUP => 0x80 + 0x49, 243 | KeyCode::KEY_PAGEDOWN => 0x80 + 0x51, 244 | KeyCode::KEY_INSERT => 0x80 + 0x52, 245 | KeyCode::KEY_DELETE => 0x80 + 0x53, 246 | 247 | KeyCode::KEY_KP0 => 0, 248 | KeyCode::KEY_KP1 => return map_evdev_keycode_to_doom(KeyCode::KEY_END), 249 | KeyCode::KEY_KP2 => return map_evdev_keycode_to_doom(KeyCode::KEY_DOWN), 250 | KeyCode::KEY_KP3 => return map_evdev_keycode_to_doom(KeyCode::KEY_PAGEDOWN), 251 | KeyCode::KEY_KP4 => return map_evdev_keycode_to_doom(KeyCode::KEY_LEFT), 252 | KeyCode::KEY_KP5 => '5' as u8, 253 | KeyCode::KEY_KP6 => return map_evdev_keycode_to_doom(KeyCode::KEY_RIGHT), 254 | KeyCode::KEY_KP7 => return map_evdev_keycode_to_doom(KeyCode::KEY_HOME), 255 | KeyCode::KEY_KP8 => return map_evdev_keycode_to_doom(KeyCode::KEY_UP), 256 | KeyCode::KEY_KP9 => return map_evdev_keycode_to_doom(KeyCode::KEY_PAGEUP), 257 | 258 | KeyCode::KEY_KPSLASH => '/' as u8, 259 | KeyCode::KEY_KPPLUS => '+' as u8, 260 | KeyCode::KEY_KPMINUS => '-' as u8, 261 | KeyCode::KEY_KPASTERISK => '*' as u8, 262 | KeyCode::KEY_KPDOT => 0, 263 | KeyCode::KEY_KPENTER => return map_evdev_keycode_to_doom(KeyCode::KEY_ENTER), 264 | 265 | _ => return None, 266 | }) 267 | } 268 | -------------------------------------------------------------------------------- /src/layout/mod.rs: -------------------------------------------------------------------------------- 1 | //! Mostly the ui-like stuff below the game 2 | 3 | use doomgeneric::input::KeyData; 4 | use libremarkable::cgmath::{Point2, Vector2}; 5 | use libremarkable::framebuffer::core::Framebuffer; 6 | use libremarkable::framebuffer::{common, PartialRefreshMode}; 7 | use libremarkable::framebuffer::{FramebufferDraw, FramebufferIO, FramebufferRefresh}; 8 | use libremarkable::input::{Finger, InputEvent, MultitouchEvent}; 9 | 10 | mod confirmexit; 11 | mod confirmfullscreen; 12 | mod controls; 13 | mod keyboard; 14 | mod settings; 15 | 16 | pub enum InputOutcome { 17 | KeyData(KeyData), 18 | SwitchLayout(LayoutId), 19 | EnterFullscreen, 20 | } 21 | 22 | pub struct LayoutManager { 23 | layouts: fxhash::FxHashMap, 24 | current_layout_id: LayoutId, 25 | } 26 | 27 | fn combined_rect(mut rect_iter: impl Iterator) -> common::mxcfb_rect { 28 | let mut left = 9999; 29 | let mut top = 9999; 30 | let mut bottom = 0; 31 | let mut right = 0; 32 | 33 | while let Some(rect) = rect_iter.next() { 34 | left = left.min(rect.left); 35 | top = top.min(rect.top); 36 | right = right.max(rect.left + rect.width); 37 | bottom = bottom.max(rect.top + rect.height); 38 | } 39 | 40 | assert!(left < right); 41 | assert!(top < bottom); 42 | assert!(right <= common::DISPLAYWIDTH as u32); 43 | assert!(bottom <= common::DISPLAYHEIGHT as u32); 44 | 45 | common::mxcfb_rect { 46 | left, 47 | top, 48 | width: right - left, 49 | height: bottom - top, 50 | } 51 | } 52 | 53 | impl LayoutManager { 54 | pub fn new(fb: &mut Framebuffer) -> Self { 55 | let mut layouts: fxhash::FxHashMap = Default::default(); 56 | 57 | // Create and add layouts 58 | layouts.insert(LayoutId::Controls, controls::create()); 59 | layouts.insert(LayoutId::Settings, settings::create()); 60 | layouts.insert(LayoutId::ConfirmExit, confirmexit::create()); 61 | layouts.insert(LayoutId::Keyboard, keyboard::create()); 62 | layouts.insert(LayoutId::ConfirmFullscreen, confirmfullscreen::create()); 63 | 64 | let instance = Self { 65 | layouts, 66 | current_layout_id: Default::default(), 67 | }; 68 | instance.current_layout().render(fb); 69 | instance.refresh(&instance.current_layout().get_area(), fb); 70 | 71 | instance 72 | } 73 | 74 | pub fn current_layout(&self) -> &Layout { 75 | self.layouts.get(&self.current_layout_id).unwrap() 76 | } 77 | 78 | pub fn current_layout_mut(&mut self) -> &mut Layout { 79 | self.layouts.get_mut(&self.current_layout_id).unwrap() 80 | } 81 | 82 | pub fn switch_layout(&mut self, new_layout: LayoutId, fb: &mut Framebuffer) { 83 | self.current_layout().clear(fb); 84 | let old_area = self.current_layout().get_area(); 85 | 86 | self.current_layout_id = new_layout; 87 | 88 | self.current_layout().clear(fb); 89 | self.current_layout().render(fb); 90 | let new_ara = self.current_layout().get_area(); 91 | self.refresh(&combined_rect([old_area, new_ara].iter().map(|r| *r)), fb); 92 | self.current_layout_id = new_layout; 93 | } 94 | 95 | fn refresh(&self, area: &common::mxcfb_rect, fb: &mut Framebuffer) { 96 | fb.partial_refresh( 97 | area, 98 | PartialRefreshMode::Wait, 99 | common::waveform_mode::WAVEFORM_MODE_GC16_FAST, 100 | common::display_temp::TEMP_USE_AMBIENT, 101 | common::dither_mode::EPDC_FLAG_USE_DITHERING_PASSTHROUGH, 102 | 0, 103 | false, 104 | ); 105 | } 106 | } 107 | 108 | #[derive(Debug, Clone, Copy, Hash, PartialEq, Eq)] 109 | pub enum LayoutId { 110 | Controls, 111 | Settings, 112 | ConfirmExit, 113 | Keyboard, 114 | ConfirmFullscreen, 115 | } 116 | 117 | impl Default for LayoutId { 118 | fn default() -> Self { 119 | LayoutId::Controls 120 | } 121 | } 122 | 123 | pub struct Layout { 124 | elements: Vec, 125 | 126 | // Input tracking 127 | fingers: fxhash::FxHashMap, 128 | pressed_indices: fxhash::FxHashSet, 129 | } 130 | 131 | impl Layout { 132 | fn new(elements: Vec) -> Self { 133 | Self { 134 | elements, 135 | fingers: Default::default(), 136 | pressed_indices: Default::default(), 137 | } 138 | } 139 | 140 | pub fn get_area(&self) -> common::mxcfb_rect { 141 | combined_rect(self.elements.iter().map(|el| *el.rect())) 142 | } 143 | 144 | pub fn render(&self, fb: &mut Framebuffer) { 145 | for element in &self.elements { 146 | match element { 147 | Element::Button { 148 | label, 149 | label_size, 150 | rect, 151 | .. 152 | } => { 153 | fb.draw_rect( 154 | Point2 { 155 | x: rect.left as i32 + 2, 156 | y: rect.top as i32 + 2, 157 | }, 158 | Vector2 { 159 | x: rect.width - 4, 160 | y: rect.height - 4, 161 | }, 162 | 3, 163 | common::color::BLACK, 164 | ); 165 | 166 | let text_rect = fb.draw_text( 167 | Point2 { x: 0f32, y: 500f32 }, 168 | label, 169 | *label_size, 170 | common::color::BLACK, 171 | true, 172 | ); 173 | 174 | fb.draw_text( 175 | Point2 { 176 | x: (rect.left as f32 + (rect.width - text_rect.width) as f32 / 2.0), 177 | y: (rect.top as f32 + (rect.height - text_rect.height) as f32 / 2.0) 178 | + text_rect.height as f32, 179 | }, 180 | label, 181 | *label_size, 182 | common::color::BLACK, 183 | false, 184 | ); 185 | } 186 | Element::Text { text, size, rect } => { 187 | let text_rect = fb.draw_text( 188 | Point2 { x: 0f32, y: 500f32 }, 189 | text, 190 | *size, 191 | common::color::BLACK, 192 | true, 193 | ); 194 | 195 | fb.draw_text( 196 | Point2 { 197 | x: (rect.left as f32 + (rect.width - text_rect.width) as f32 / 2.0), 198 | y: (rect.top as f32 + (rect.height - text_rect.height) as f32 / 2.0) 199 | + text_rect.height as f32, 200 | }, 201 | text, 202 | *size, 203 | common::color::BLACK, 204 | false, 205 | ); 206 | } 207 | } 208 | } 209 | } 210 | 211 | pub fn clear(&self, fb: &mut Framebuffer) { 212 | // Turn area white 213 | fb.restore_region( 214 | self.get_area(), 215 | &vec![0xFF; self.get_area().width as usize * 2 * self.get_area().height as usize], 216 | ) 217 | .unwrap(); 218 | } 219 | 220 | pub fn handle_input(&mut self, event: InputEvent) -> Vec { 221 | let mut outcomes = match event { 222 | InputEvent::MultitouchEvent { event } => match event { 223 | MultitouchEvent::Press { finger } => { 224 | self.fingers.insert(finger.tracking_id, finger); 225 | self.process_fingers() 226 | } 227 | MultitouchEvent::Move { finger } => { 228 | self.fingers.insert(finger.tracking_id, finger); 229 | self.process_fingers() 230 | } 231 | MultitouchEvent::Release { finger } => { 232 | self.fingers.remove(&finger.tracking_id); 233 | self.process_fingers() 234 | } 235 | _ => unimplemented!(), 236 | }, 237 | _ => unimplemented!(), 238 | }; 239 | 240 | // Fake all fingers released before switching a layout to prevent stuck keys 241 | let mut i = 0; 242 | while i < outcomes.len() { 243 | if let InputOutcome::SwitchLayout(_) = &outcomes[i] { 244 | self.fingers.clear(); 245 | for outcome in self.process_fingers() { 246 | outcomes.insert(i, outcome); 247 | i += 1; 248 | } 249 | } 250 | i += 1; 251 | } 252 | 253 | outcomes 254 | } 255 | 256 | fn process_fingers(&mut self) -> Vec { 257 | let mut outcomes = vec![]; 258 | let last_pressed_indices = self.pressed_indices.clone(); 259 | 260 | self.pressed_indices.clear(); 261 | for finger in self.fingers.values() { 262 | for (i, element) in self.elements.iter().enumerate() { 263 | if finger.pos.x as u32 >= element.rect().left 264 | && finger.pos.x as u32 <= element.rect().left + element.rect().width 265 | && finger.pos.y as u32 >= element.rect().top 266 | && finger.pos.y as u32 <= element.rect().top + element.rect().height 267 | { 268 | self.pressed_indices.insert(i); 269 | break; 270 | } 271 | } 272 | } 273 | 274 | for key_up_index in last_pressed_indices.difference(&self.pressed_indices) { 275 | if let Element::Button { action, .. } = &self.elements[*key_up_index] { 276 | match action { 277 | ButtonAction::DoomKey(key) => { 278 | outcomes.push(InputOutcome::KeyData(KeyData { 279 | key: *key, 280 | pressed: false, 281 | })); 282 | } 283 | ButtonAction::Function(func) => { 284 | func(); 285 | } 286 | ButtonAction::SwitchLayout(layout_id) => { 287 | outcomes.push(InputOutcome::SwitchLayout(*layout_id)); 288 | } 289 | ButtonAction::EnterFullscreen => { 290 | outcomes.push(InputOutcome::EnterFullscreen); 291 | } 292 | } 293 | } 294 | } 295 | 296 | for key_down_index in self.pressed_indices.difference(&last_pressed_indices) { 297 | if let Element::Button { action, .. } = &self.elements[*key_down_index] { 298 | match action { 299 | ButtonAction::DoomKey(key) => { 300 | outcomes.push(InputOutcome::KeyData(KeyData { 301 | key: *key, 302 | pressed: true, 303 | })); 304 | } 305 | 306 | ButtonAction::Function(_) => {} 307 | ButtonAction::SwitchLayout(_) => {} 308 | ButtonAction::EnterFullscreen => {} 309 | } 310 | } 311 | } 312 | 313 | outcomes 314 | } 315 | } 316 | 317 | enum Element { 318 | Button { 319 | rect: common::mxcfb_rect, 320 | label: &'static str, 321 | label_size: f32, 322 | action: ButtonAction, 323 | }, 324 | Text { 325 | rect: common::mxcfb_rect, 326 | text: &'static str, 327 | size: f32, 328 | }, 329 | } 330 | 331 | impl Element { 332 | fn rect(&self) -> &common::mxcfb_rect { 333 | match self { 334 | Element::Button { rect, .. } => rect, 335 | Element::Text { rect, .. } => rect, 336 | } 337 | } 338 | } 339 | 340 | enum ButtonAction { 341 | DoomKey(u8), 342 | Function(Box), 343 | SwitchLayout(LayoutId), 344 | EnterFullscreen, 345 | } 346 | -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- 1 | //#![feature(portable_simd)] 2 | 3 | #[global_allocator] 4 | static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; 5 | 6 | #[macro_use] 7 | extern crate log; 8 | 9 | use doomgeneric::{game, game::DoomGeneric, input::KeyData}; 10 | use libremarkable::cgmath::Point2; 11 | use libremarkable::framebuffer::core::Framebuffer; 12 | use libremarkable::framebuffer::{common, PartialRefreshMode}; 13 | use libremarkable::framebuffer::{FramebufferDraw, FramebufferIO, FramebufferRefresh}; 14 | use libremarkable::image::{DynamicImage, RgbImage}; 15 | use libremarkable::input::{ev::EvDevContext, InputDevice, InputEvent}; 16 | use std::io::Cursor; 17 | use std::sync::atomic::AtomicBool; 18 | use std::sync::{LazyLock, Mutex}; 19 | use std::time::{Duration, Instant}; 20 | 21 | mod blue_noise_dither; 22 | mod evdev_keyboard; 23 | mod layout; 24 | 25 | const SCALE_FACTOR: usize = 2; 26 | pub static FB: LazyLock> = LazyLock::new(|| Mutex::new(Framebuffer::default())); 27 | 28 | struct Game { 29 | image: std::sync::Arc>, 30 | keydata_receiver: std::sync::mpsc::Receiver, 31 | } 32 | 33 | impl DoomGeneric for Game { 34 | fn draw_frame(&mut self, screen_buffer: &[u32], xres: usize, yres: usize) { 35 | let mut rgb_img = libremarkable::image::RgbImage::new(xres as u32, yres as u32); 36 | assert!(xres * yres == screen_buffer.len()); 37 | 38 | for (index, argb) in screen_buffer.iter().enumerate() { 39 | let pixel = libremarkable::image::Rgb([ 40 | ((argb >> 16) & 0xFF) as u8, 41 | ((argb >> 8) & 0xFF) as u8, 42 | ((argb >> 0) & 0xFF) as u8, 43 | ]); 44 | let x = (index % xres) as u32; 45 | let y = (index / xres) as u32; 46 | 47 | rgb_img.put_pixel(x, y, pixel); 48 | } 49 | 50 | *self.image.lock().unwrap() = rgb_img; 51 | } 52 | fn get_key(&mut self) -> Option { 53 | self.keydata_receiver.try_recv().ok() 54 | } 55 | fn set_window_title(&mut self, _title: &str) { 56 | //self.indow.ctx.window().set_title(title); 57 | } 58 | } 59 | 60 | fn clear() { 61 | let _ = FB.lock().unwrap().clear(); 62 | } 63 | 64 | fn draw_title() { 65 | let title_text = concat!("DOOMarkable v", env!("CARGO_PKG_VERSION")); 66 | let subtitle_text = "https://github.com/LinusCDE/doomarkable"; 67 | let title_size = 80; 68 | let subtitle_size = 30; 69 | let title_rect = FB.lock().unwrap().draw_text( 70 | Point2 { x: 0f32, y: 0f32 }, 71 | title_text, 72 | title_size as f32, 73 | common::color::BLACK, 74 | true, 75 | ); 76 | let subtitle_rect = FB.lock().unwrap().draw_text( 77 | Point2 { x: 0f32, y: 0f32 }, 78 | subtitle_text, 79 | subtitle_size as f32, 80 | common::color::BLACK, 81 | true, 82 | ); 83 | 84 | FB.lock().unwrap().draw_text( 85 | Point2 { 86 | x: (common::DISPLAYWIDTH as u32 - title_rect.width) as f32 / 2.0, 87 | y: (62 - 20 + title_size) as f32, 88 | }, 89 | title_text, 90 | title_size as f32, 91 | common::color::BLACK, 92 | false, 93 | ); 94 | FB.lock().unwrap().draw_text( 95 | Point2 { 96 | x: (common::DISPLAYWIDTH as u32 - subtitle_rect.width) as f32 / 2.0, 97 | y: (62 - 20 + title_size + subtitle_size) as f32, 98 | }, 99 | subtitle_text, 100 | subtitle_size as f32, 101 | common::color::BLACK, 102 | false, 103 | ); 104 | } 105 | 106 | fn full_refresh() { 107 | FB.lock().unwrap().full_refresh( 108 | common::waveform_mode::WAVEFORM_MODE_GC16, 109 | common::display_temp::TEMP_USE_MAX, 110 | common::dither_mode::EPDC_FLAG_USE_REMARKABLE_DITHER, 111 | 0, 112 | true, 113 | ); 114 | } 115 | 116 | fn main() { 117 | if std::env::var("RUST_LOG").is_err() { 118 | std::env::set_var("RUST_LOG", "INFO"); 119 | } 120 | env_logger::init(); 121 | 122 | // Ensure .savegame and wad file are always relative to the home directory 123 | std::env::set_current_dir("/home/root").unwrap(); 124 | 125 | let mut preparing_text_rect = FB.lock().unwrap().draw_text( 126 | Point2 { 127 | x: 600f32, 128 | y: (1872 / 2) as f32, 129 | }, 130 | "Preparing...", 131 | 50f32, 132 | common::color::BLACK, 133 | false, 134 | ); 135 | preparing_text_rect.left -= 50; 136 | preparing_text_rect.top -= 50; 137 | preparing_text_rect.width += 50 * 2; 138 | preparing_text_rect.height += 50 * 2; 139 | FB.lock().unwrap().partial_refresh( 140 | &preparing_text_rect, 141 | PartialRefreshMode::Wait, 142 | common::waveform_mode::WAVEFORM_MODE_GC16_FAST, 143 | common::display_temp::TEMP_USE_AMBIENT, 144 | common::dither_mode::EPDC_FLAG_USE_DITHERING_PASSTHROUGH, 145 | 0, 146 | true, 147 | ); 148 | clear(); 149 | 150 | // The dither_cache was calculated in build/main.rs and 151 | // this env is set to the file path containing this cache. 152 | let start = Instant::now(); 153 | let dither_cache_compressed = include_bytes!(env!("OUT_DIR_DITHERCACHE_FILE")); 154 | let mut dither_cache_raw = Cursor::new(Vec::with_capacity( 155 | blue_noise_dither::CachedDither4X::calc_dither_cache_len( 156 | game::DOOMGENERIC_RESX as u32 / 2, 157 | game::DOOMGENERIC_RESY as u32 / 2, 158 | ) * 2, 159 | )); 160 | zstd::stream::copy_decode(Cursor::new(dither_cache_compressed), &mut dither_cache_raw).unwrap(); 161 | let dither_cache_raw = dither_cache_raw.into_inner(); 162 | let mut ditherer = blue_noise_dither::CachedDither4X::new(dither_cache_raw); 163 | info!("Loaded dither cache in {:?}", start.elapsed()); 164 | 165 | // Create grayscale to native pixel color map 166 | let mut gray_to_native = [(0u8, 0u8); 256]; 167 | for gray_pixel_value in 0..256 { 168 | let native_pixel = common::color::GRAY(255 - gray_pixel_value as u8).as_native(); 169 | gray_to_native[gray_pixel_value] = (native_pixel[0], native_pixel[1]); 170 | } 171 | 172 | // Title 173 | draw_title(); 174 | full_refresh(); 175 | 176 | // Keys 177 | 178 | let default_image = 179 | libremarkable::image::load_from_memory(include_bytes!("../res/default_screen.png")) 180 | .unwrap() 181 | .to_rgb8(); 182 | let image = std::sync::Arc::new(std::sync::Mutex::new(default_image)); 183 | let image_clone = image.clone(); 184 | let fullscreen = std::sync::Arc::new(AtomicBool::new(false)); 185 | let fullscreen_clone = fullscreen.clone(); 186 | std::thread::spawn(move || { 187 | let mut last_frame_drawn = Instant::now() - Duration::from_millis(1000); 188 | let width = game::DOOMGENERIC_RESX as u32 * SCALE_FACTOR as u32; 189 | //let height = game::DOOMGENERIC_RESY as u32 * SCALE_FACTOR as u32; 190 | let pos = Point2 { 191 | x: (common::DISPLAYWIDTH as i32 - width as i32) / 2, 192 | //y: (common::DISPLAYHEIGHT as i32 - height as i32) / 2, 193 | y: 62 + 140, 194 | }; 195 | let max_fps = match libremarkable::device::CURRENT_DEVICE.model { 196 | // Will probably not quite hit these anyways 197 | libremarkable::device::Model::Gen1 => 15, 198 | // The rM 2 "can" do more, but will result in async frames and more lag. Won't be anymore fluid anyways. 199 | libremarkable::device::Model::Gen2 => 3, 200 | }; 201 | let frame_duration = Duration::from_micros(1000000 / max_fps); 202 | 203 | let battery_indicator_update_interval = Duration::from_secs(30); 204 | let mut last_battery_indicator_update = Instant::now() - battery_indicator_update_interval; 205 | let mut last_battery_percentage = -99; 206 | 207 | loop { 208 | // Limit fps 209 | let elapsed = last_frame_drawn.elapsed(); 210 | if elapsed < frame_duration { 211 | //debug!("Hitting max fps!!!"); 212 | let remaining = frame_duration - elapsed; 213 | if remaining <= Duration::from_millis(2) { 214 | std::thread::yield_now(); 215 | } else { 216 | std::thread::sleep(remaining - Duration::from_millis(1)); 217 | } 218 | continue; 219 | } 220 | 221 | // Battery indicator in corner 222 | if last_battery_indicator_update.elapsed() > battery_indicator_update_interval { 223 | let is_fullscreen = fullscreen_clone.load(std::sync::atomic::Ordering::Relaxed); 224 | last_battery_indicator_update = Instant::now(); 225 | let percentage = if is_fullscreen { 226 | -1 227 | } else { 228 | libremarkable::battery::percentage().unwrap_or(-1) 229 | }; 230 | if percentage != last_battery_percentage { 231 | last_battery_percentage = percentage; 232 | if !is_fullscreen { 233 | let text = format!("{}% ", percentage); // Spaces to prevent residual text when text gets narrower 234 | let rect = FB.lock().unwrap().draw_text( 235 | Point2 { 236 | x: 10.0, 237 | y: (common::DISPLAYHEIGHT - 10) as f32, 238 | }, 239 | &text, 240 | 30f32, 241 | common::color::BLACK, 242 | false, 243 | ); 244 | FB.lock().unwrap().partial_refresh( 245 | &rect, 246 | PartialRefreshMode::Async, 247 | common::waveform_mode::WAVEFORM_MODE_GC16_FAST, 248 | common::display_temp::TEMP_USE_MAX, 249 | common::dither_mode::EPDC_FLAG_USE_REMARKABLE_DITHER, 250 | 0, 251 | false, 252 | ); 253 | debug!("Updated battery indicator"); 254 | } 255 | } 256 | } 257 | 258 | let rgb_img = &image.lock().unwrap().clone(); 259 | 260 | let start = Instant::now(); 261 | // Downscale 2x (doomgeneric does a simple upscale anyways, so no data lost) 262 | // TODO: Remove need for downscaling in doomgeneric-rs 263 | let rgb_img = RgbImage::from_fn(rgb_img.width() / 2, rgb_img.height() / 2, |x, y| { 264 | *rgb_img.get_pixel(x * 2, y * 2) 265 | }); 266 | 267 | let dithered_img = ditherer.dither_image(&DynamicImage::ImageRgb8(rgb_img)); 268 | debug!("Dithering took {:?}", start.elapsed()); 269 | 270 | let start = Instant::now(); 271 | let game_rect = if fullscreen_clone.load(std::sync::atomic::Ordering::Relaxed) { 272 | draw_image_mono_fullscreen(&mut FB.lock().unwrap(), &dithered_img, &gray_to_native) 273 | } else { 274 | //fb.draw_image(&dithered_img, pos); 275 | draw_image_mono(&mut FB.lock().unwrap(), pos, &dithered_img, &gray_to_native) 276 | }; 277 | 278 | let waveform = match libremarkable::device::CURRENT_DEVICE.model { 279 | libremarkable::device::Model::Gen1 => common::waveform_mode::WAVEFORM_MODE_GLR16, 280 | libremarkable::device::Model::Gen2 => common::waveform_mode::WAVEFORM_MODE_DU, 281 | }; 282 | FB.lock().unwrap().partial_refresh( 283 | &game_rect, 284 | PartialRefreshMode::Async, 285 | //common::waveform_mode::WAVEFORM_MODE_DU, 286 | //common::waveform_mode::WAVEFORM_MODE_GLR16, 287 | waveform, 288 | common::display_temp::TEMP_USE_REMARKABLE_DRAW, 289 | common::dither_mode::EPDC_FLAG_USE_DITHERING_PASSTHROUGH, 290 | 0, 291 | false, 292 | ); 293 | 294 | debug!("Drawing took {:?}", start.elapsed()); 295 | last_frame_drawn = Instant::now(); 296 | } 297 | }); 298 | 299 | let (keydata_tx, keydata_rx) = std::sync::mpsc::channel::(); 300 | evdev_keyboard::init(keydata_tx.clone()); 301 | 302 | std::thread::spawn(move || { 303 | let mut layout_manager = layout::LayoutManager::new(&mut FB.lock().unwrap()); 304 | 305 | let (input_tx, input_rx) = std::sync::mpsc::channel::(); 306 | EvDevContext::new(InputDevice::Multitouch, input_tx).start(); 307 | let mut fullscreen_since: Option = None; 308 | 309 | for event in input_rx { 310 | if let Some(fullscreen_since_time) = fullscreen_since { 311 | // Any touch 500ms after fullscreen entered => exit fullscreen 312 | if fullscreen_since_time.elapsed() > Duration::from_millis(500) { 313 | // Exit out of fullscreen (portrait game, bring back layout) 314 | info!("Exiting fullscreen mode..."); 315 | fullscreen.store(false, std::sync::atomic::Ordering::Relaxed); 316 | fullscreen_since = None; 317 | clear(); 318 | draw_title(); 319 | layout_manager 320 | .switch_layout(layout::LayoutId::Controls, &mut FB.lock().unwrap()); 321 | full_refresh(); 322 | } 323 | continue; // No layout handling while in fullscreen 324 | } 325 | 326 | for outcome in layout_manager.current_layout_mut().handle_input(event) { 327 | match outcome { 328 | layout::InputOutcome::KeyData(keydata) => { 329 | keydata_tx.send(keydata).ok(); 330 | } 331 | layout::InputOutcome::SwitchLayout(new_layout_id) => { 332 | layout_manager.switch_layout(new_layout_id, &mut FB.lock().unwrap()) 333 | } 334 | layout::InputOutcome::EnterFullscreen => { 335 | // Switch to fullscreen (landscape game, no layout rendering) 336 | info!("Entering fullscreen mode..."); 337 | fullscreen_since = Some(Instant::now()); 338 | fullscreen.store(true, std::sync::atomic::Ordering::Relaxed); 339 | clear(); 340 | full_refresh(); 341 | } 342 | } 343 | } 344 | } 345 | }); 346 | 347 | game::init(Game { 348 | image: image_clone, 349 | keydata_receiver: keydata_rx, 350 | }); 351 | // TODO: Doom hogs the entire cpu when failed to start (no wad file). 352 | // Need to figure out how to trigger on error. 353 | warn!("Game loop quit!"); 354 | } 355 | 356 | fn draw_image_mono( 357 | fb: &mut Framebuffer, 358 | pos: Point2, 359 | img: &libremarkable::image::GrayImage, 360 | gray_to_native: &[(u8, u8); 256], 361 | ) -> common::mxcfb_rect { 362 | let width = img.width(); 363 | let height = img.height(); 364 | let mut fb_raw_data: Vec = 365 | Vec::with_capacity(img.width() as usize * 2 * img.height() as usize); 366 | let img_vec = img.to_vec(); 367 | for pixel_value in img_vec { 368 | fb_raw_data.push(gray_to_native[pixel_value as usize].0); 369 | fb_raw_data.push(gray_to_native[pixel_value as usize].1); 370 | } 371 | 372 | let rect = common::mxcfb_rect { 373 | top: pos.y as u32, 374 | left: pos.x as u32, 375 | width, 376 | height, 377 | }; 378 | fb.restore_region(rect, &fb_raw_data).unwrap(); 379 | rect 380 | } 381 | 382 | fn draw_image_mono_fullscreen( 383 | fb: &mut Framebuffer, 384 | img: &libremarkable::image::GrayImage, 385 | gray_to_native: &[(u8, u8); 256], 386 | ) -> common::mxcfb_rect { 387 | let (portrait_width, portrait_height) = (img.width() as usize, img.height() as usize); 388 | let (landscape_width, landscape_height) = (portrait_height, portrait_width); 389 | 390 | let mut fb_raw_data: Vec = vec![0u8; portrait_width * 2 * portrait_height]; 391 | for (x, y, pixel_value) in img.enumerate_pixels() { 392 | // Rotate by 90 degrees 393 | let new_x = portrait_height - (y as usize + 1); 394 | let new_y = x as usize; 395 | 396 | // Put new x and y values into linear fb_raw_data 397 | let index = (new_y * landscape_width + new_x) * 2; 398 | fb_raw_data[index] = gray_to_native[pixel_value.0[0] as usize].0; 399 | fb_raw_data[index + 1] = gray_to_native[pixel_value.0[0] as usize].1; 400 | } 401 | let pos = Point2 { 402 | x: (common::DISPLAYWIDTH as i32 - landscape_width as i32) / 2, 403 | y: (common::DISPLAYHEIGHT as i32 - landscape_height as i32) / 2, 404 | }; 405 | let rect = common::mxcfb_rect { 406 | top: pos.y as u32, 407 | left: pos.x as u32, 408 | width: landscape_width as u32, 409 | height: landscape_height as u32, 410 | }; 411 | fb.restore_region(rect, &fb_raw_data).unwrap(); 412 | rect 413 | } 414 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 4 4 | 5 | [[package]] 6 | name = "aabb-quadtree" 7 | version = "0.1.0" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "08e73342dae2885db4bdffbc75ffe3a668153720a95a6e57266a0ee8aacc96ca" 10 | dependencies = [ 11 | "fnv", 12 | ] 13 | 14 | [[package]] 15 | name = "ab_glyph_rasterizer" 16 | version = "0.1.10" 17 | source = "registry+https://github.com/rust-lang/crates.io-index" 18 | checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618" 19 | 20 | [[package]] 21 | name = "addr2line" 22 | version = "0.24.2" 23 | source = "registry+https://github.com/rust-lang/crates.io-index" 24 | checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" 25 | dependencies = [ 26 | "gimli", 27 | ] 28 | 29 | [[package]] 30 | name = "adler2" 31 | version = "2.0.1" 32 | source = "registry+https://github.com/rust-lang/crates.io-index" 33 | checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" 34 | 35 | [[package]] 36 | name = "aho-corasick" 37 | version = "1.1.3" 38 | source = "registry+https://github.com/rust-lang/crates.io-index" 39 | checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" 40 | dependencies = [ 41 | "memchr", 42 | ] 43 | 44 | [[package]] 45 | name = "aligned-vec" 46 | version = "0.6.4" 47 | source = "registry+https://github.com/rust-lang/crates.io-index" 48 | checksum = "dc890384c8602f339876ded803c97ad529f3842aba97f6392b3dba0dd171769b" 49 | dependencies = [ 50 | "equator", 51 | ] 52 | 53 | [[package]] 54 | name = "anstream" 55 | version = "0.6.20" 56 | source = "registry+https://github.com/rust-lang/crates.io-index" 57 | checksum = "3ae563653d1938f79b1ab1b5e668c87c76a9930414574a6583a7b7e11a8e6192" 58 | dependencies = [ 59 | "anstyle", 60 | "anstyle-parse", 61 | "anstyle-query", 62 | "anstyle-wincon", 63 | "colorchoice", 64 | "is_terminal_polyfill", 65 | "utf8parse", 66 | ] 67 | 68 | [[package]] 69 | name = "anstyle" 70 | version = "1.0.11" 71 | source = "registry+https://github.com/rust-lang/crates.io-index" 72 | checksum = "862ed96ca487e809f1c8e5a8447f6ee2cf102f846893800b20cebdf541fc6bbd" 73 | 74 | [[package]] 75 | name = "anstyle-parse" 76 | version = "0.2.7" 77 | source = "registry+https://github.com/rust-lang/crates.io-index" 78 | checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2" 79 | dependencies = [ 80 | "utf8parse", 81 | ] 82 | 83 | [[package]] 84 | name = "anstyle-query" 85 | version = "1.1.4" 86 | source = "registry+https://github.com/rust-lang/crates.io-index" 87 | checksum = "9e231f6134f61b71076a3eab506c379d4f36122f2af15a9ff04415ea4c3339e2" 88 | dependencies = [ 89 | "windows-sys 0.60.2", 90 | ] 91 | 92 | [[package]] 93 | name = "anstyle-wincon" 94 | version = "3.0.10" 95 | source = "registry+https://github.com/rust-lang/crates.io-index" 96 | checksum = "3e0633414522a32ffaac8ac6cc8f748e090c5717661fddeea04219e2344f5f2a" 97 | dependencies = [ 98 | "anstyle", 99 | "once_cell_polyfill", 100 | "windows-sys 0.60.2", 101 | ] 102 | 103 | [[package]] 104 | name = "anyhow" 105 | version = "1.0.99" 106 | source = "registry+https://github.com/rust-lang/crates.io-index" 107 | checksum = "b0674a1ddeecb70197781e945de4b3b8ffb61fa939a5597bcf48503737663100" 108 | 109 | [[package]] 110 | name = "approx" 111 | version = "0.4.0" 112 | source = "registry+https://github.com/rust-lang/crates.io-index" 113 | checksum = "3f2a05fd1bd10b2527e20a2cd32d8873d115b8b39fe219ee25f42a8aca6ba278" 114 | dependencies = [ 115 | "num-traits", 116 | ] 117 | 118 | [[package]] 119 | name = "arbitrary" 120 | version = "1.4.2" 121 | source = "registry+https://github.com/rust-lang/crates.io-index" 122 | checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1" 123 | 124 | [[package]] 125 | name = "arg_enum_proc_macro" 126 | version = "0.3.4" 127 | source = "registry+https://github.com/rust-lang/crates.io-index" 128 | checksum = "0ae92a5119aa49cdbcf6b9f893fe4e1d98b04ccbf82ee0584ad948a44a734dea" 129 | dependencies = [ 130 | "proc-macro2", 131 | "quote", 132 | "syn", 133 | ] 134 | 135 | [[package]] 136 | name = "arrayvec" 137 | version = "0.7.6" 138 | source = "registry+https://github.com/rust-lang/crates.io-index" 139 | checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" 140 | 141 | [[package]] 142 | name = "autocfg" 143 | version = "1.5.0" 144 | source = "registry+https://github.com/rust-lang/crates.io-index" 145 | checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" 146 | 147 | [[package]] 148 | name = "av1-grain" 149 | version = "0.2.4" 150 | source = "registry+https://github.com/rust-lang/crates.io-index" 151 | checksum = "4f3efb2ca85bc610acfa917b5aaa36f3fcbebed5b3182d7f877b02531c4b80c8" 152 | dependencies = [ 153 | "anyhow", 154 | "arrayvec", 155 | "log", 156 | "nom", 157 | "num-rational", 158 | "v_frame", 159 | ] 160 | 161 | [[package]] 162 | name = "avif-serialize" 163 | version = "0.8.6" 164 | source = "registry+https://github.com/rust-lang/crates.io-index" 165 | checksum = "47c8fbc0f831f4519fe8b810b6a7a91410ec83031b8233f730a0480029f6a23f" 166 | dependencies = [ 167 | "arrayvec", 168 | ] 169 | 170 | [[package]] 171 | name = "backtrace" 172 | version = "0.3.75" 173 | source = "registry+https://github.com/rust-lang/crates.io-index" 174 | checksum = "6806a6321ec58106fea15becdad98371e28d92ccbc7c8f1b3b6dd724fe8f1002" 175 | dependencies = [ 176 | "addr2line", 177 | "cfg-if", 178 | "libc", 179 | "miniz_oxide", 180 | "object", 181 | "rustc-demangle", 182 | "windows-targets 0.52.6", 183 | ] 184 | 185 | [[package]] 186 | name = "bit_field" 187 | version = "0.10.3" 188 | source = "registry+https://github.com/rust-lang/crates.io-index" 189 | checksum = "1e4b40c7323adcfc0a41c4b88143ed58346ff65a288fc144329c5c45e05d70c6" 190 | 191 | [[package]] 192 | name = "bitflags" 193 | version = "1.3.2" 194 | source = "registry+https://github.com/rust-lang/crates.io-index" 195 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 196 | 197 | [[package]] 198 | name = "bitflags" 199 | version = "2.9.4" 200 | source = "registry+https://github.com/rust-lang/crates.io-index" 201 | checksum = "2261d10cca569e4643e526d8dc2e62e433cc8aba21ab764233731f8d369bf394" 202 | 203 | [[package]] 204 | name = "bitstream-io" 205 | version = "2.6.0" 206 | source = "registry+https://github.com/rust-lang/crates.io-index" 207 | checksum = "6099cdc01846bc367c4e7dd630dc5966dccf36b652fae7a74e17b640411a91b2" 208 | 209 | [[package]] 210 | name = "bitvec" 211 | version = "1.0.1" 212 | source = "registry+https://github.com/rust-lang/crates.io-index" 213 | checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c" 214 | dependencies = [ 215 | "funty", 216 | "radium", 217 | "tap", 218 | "wyz", 219 | ] 220 | 221 | [[package]] 222 | name = "built" 223 | version = "0.7.7" 224 | source = "registry+https://github.com/rust-lang/crates.io-index" 225 | checksum = "56ed6191a7e78c36abdb16ab65341eefd73d64d303fffccdbb00d51e4205967b" 226 | 227 | [[package]] 228 | name = "bumpalo" 229 | version = "3.19.0" 230 | source = "registry+https://github.com/rust-lang/crates.io-index" 231 | checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43" 232 | 233 | [[package]] 234 | name = "bytemuck" 235 | version = "1.23.2" 236 | source = "registry+https://github.com/rust-lang/crates.io-index" 237 | checksum = "3995eaeebcdf32f91f980d360f78732ddc061097ab4e39991ae7a6ace9194677" 238 | 239 | [[package]] 240 | name = "byteorder" 241 | version = "1.5.0" 242 | source = "registry+https://github.com/rust-lang/crates.io-index" 243 | checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" 244 | 245 | [[package]] 246 | name = "byteorder-lite" 247 | version = "0.1.0" 248 | source = "registry+https://github.com/rust-lang/crates.io-index" 249 | checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" 250 | 251 | [[package]] 252 | name = "cc" 253 | version = "1.2.36" 254 | source = "registry+https://github.com/rust-lang/crates.io-index" 255 | checksum = "5252b3d2648e5eedbc1a6f501e3c795e07025c1e93bbf8bbdd6eef7f447a6d54" 256 | dependencies = [ 257 | "find-msvc-tools", 258 | "jobserver", 259 | "libc", 260 | "shlex", 261 | ] 262 | 263 | [[package]] 264 | name = "cfg-expr" 265 | version = "0.15.8" 266 | source = "registry+https://github.com/rust-lang/crates.io-index" 267 | checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02" 268 | dependencies = [ 269 | "smallvec", 270 | "target-lexicon", 271 | ] 272 | 273 | [[package]] 274 | name = "cfg-if" 275 | version = "1.0.3" 276 | source = "registry+https://github.com/rust-lang/crates.io-index" 277 | checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9" 278 | 279 | [[package]] 280 | name = "cfg_aliases" 281 | version = "0.2.1" 282 | source = "registry+https://github.com/rust-lang/crates.io-index" 283 | checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" 284 | 285 | [[package]] 286 | name = "cgmath" 287 | version = "0.18.0" 288 | source = "registry+https://github.com/rust-lang/crates.io-index" 289 | checksum = "1a98d30140e3296250832bbaaff83b27dcd6fa3cc70fb6f1f3e5c9c0023b5317" 290 | dependencies = [ 291 | "approx", 292 | "num-traits", 293 | ] 294 | 295 | [[package]] 296 | name = "color_quant" 297 | version = "1.1.0" 298 | source = "registry+https://github.com/rust-lang/crates.io-index" 299 | checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" 300 | 301 | [[package]] 302 | name = "colorchoice" 303 | version = "1.0.4" 304 | source = "registry+https://github.com/rust-lang/crates.io-index" 305 | checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75" 306 | 307 | [[package]] 308 | name = "crc32fast" 309 | version = "1.5.0" 310 | source = "registry+https://github.com/rust-lang/crates.io-index" 311 | checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" 312 | dependencies = [ 313 | "cfg-if", 314 | ] 315 | 316 | [[package]] 317 | name = "crossbeam-deque" 318 | version = "0.8.6" 319 | source = "registry+https://github.com/rust-lang/crates.io-index" 320 | checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" 321 | dependencies = [ 322 | "crossbeam-epoch", 323 | "crossbeam-utils", 324 | ] 325 | 326 | [[package]] 327 | name = "crossbeam-epoch" 328 | version = "0.9.18" 329 | source = "registry+https://github.com/rust-lang/crates.io-index" 330 | checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" 331 | dependencies = [ 332 | "crossbeam-utils", 333 | ] 334 | 335 | [[package]] 336 | name = "crossbeam-utils" 337 | version = "0.8.21" 338 | source = "registry+https://github.com/rust-lang/crates.io-index" 339 | checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" 340 | 341 | [[package]] 342 | name = "crunchy" 343 | version = "0.2.4" 344 | source = "registry+https://github.com/rust-lang/crates.io-index" 345 | checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" 346 | 347 | [[package]] 348 | name = "doomarkable" 349 | version = "0.4.2" 350 | dependencies = [ 351 | "doomgeneric", 352 | "env_logger", 353 | "evdev 0.13.1", 354 | "fxhash", 355 | "image", 356 | "inotify", 357 | "libremarkable", 358 | "log", 359 | "mimalloc", 360 | "zstd", 361 | ] 362 | 363 | [[package]] 364 | name = "doomgeneric" 365 | version = "0.3.0-beta.2" 366 | source = "registry+https://github.com/rust-lang/crates.io-index" 367 | checksum = "73a6636337c682e7820026e36492f75141a2f6aa6d5f8fe49bd7385d46ee2329" 368 | dependencies = [ 369 | "cc", 370 | "once_cell", 371 | ] 372 | 373 | [[package]] 374 | name = "either" 375 | version = "1.15.0" 376 | source = "registry+https://github.com/rust-lang/crates.io-index" 377 | checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" 378 | 379 | [[package]] 380 | name = "env_filter" 381 | version = "0.1.3" 382 | source = "registry+https://github.com/rust-lang/crates.io-index" 383 | checksum = "186e05a59d4c50738528153b83b0b0194d3a29507dfec16eccd4b342903397d0" 384 | dependencies = [ 385 | "log", 386 | "regex", 387 | ] 388 | 389 | [[package]] 390 | name = "env_logger" 391 | version = "0.11.8" 392 | source = "registry+https://github.com/rust-lang/crates.io-index" 393 | checksum = "13c863f0904021b108aa8b2f55046443e6b1ebde8fd4a15c399893aae4fa069f" 394 | dependencies = [ 395 | "anstream", 396 | "anstyle", 397 | "env_filter", 398 | "jiff", 399 | "log", 400 | ] 401 | 402 | [[package]] 403 | name = "epoll" 404 | version = "4.4.0" 405 | source = "registry+https://github.com/rust-lang/crates.io-index" 406 | checksum = "e74d68fe2927dbf47aa976d14d93db9b23dced457c7bb2bdc6925a16d31b736e" 407 | dependencies = [ 408 | "bitflags 2.9.4", 409 | "libc", 410 | ] 411 | 412 | [[package]] 413 | name = "equator" 414 | version = "0.4.2" 415 | source = "registry+https://github.com/rust-lang/crates.io-index" 416 | checksum = "4711b213838dfee0117e3be6ac926007d7f433d7bbe33595975d4190cb07e6fc" 417 | dependencies = [ 418 | "equator-macro", 419 | ] 420 | 421 | [[package]] 422 | name = "equator-macro" 423 | version = "0.4.2" 424 | source = "registry+https://github.com/rust-lang/crates.io-index" 425 | checksum = "44f23cf4b44bfce11a86ace86f8a73ffdec849c9fd00a386a53d278bd9e81fb3" 426 | dependencies = [ 427 | "proc-macro2", 428 | "quote", 429 | "syn", 430 | ] 431 | 432 | [[package]] 433 | name = "equivalent" 434 | version = "1.0.2" 435 | source = "registry+https://github.com/rust-lang/crates.io-index" 436 | checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" 437 | 438 | [[package]] 439 | name = "evdev" 440 | version = "0.12.2" 441 | source = "registry+https://github.com/rust-lang/crates.io-index" 442 | checksum = "ab6055a93a963297befb0f4f6e18f314aec9767a4bbe88b151126df2433610a7" 443 | dependencies = [ 444 | "bitvec", 445 | "cfg-if", 446 | "libc", 447 | "nix 0.23.2", 448 | "thiserror", 449 | ] 450 | 451 | [[package]] 452 | name = "evdev" 453 | version = "0.13.1" 454 | source = "registry+https://github.com/rust-lang/crates.io-index" 455 | checksum = "a3c10865aeab1a7399b3c2d6046e8dcc7f5227b656f235ed63ef5ee45a47b8f8" 456 | dependencies = [ 457 | "bitvec", 458 | "cfg-if", 459 | "libc", 460 | "nix 0.29.0", 461 | ] 462 | 463 | [[package]] 464 | name = "exr" 465 | version = "1.73.0" 466 | source = "registry+https://github.com/rust-lang/crates.io-index" 467 | checksum = "f83197f59927b46c04a183a619b7c29df34e63e63c7869320862268c0ef687e0" 468 | dependencies = [ 469 | "bit_field", 470 | "half", 471 | "lebe", 472 | "miniz_oxide", 473 | "rayon-core", 474 | "smallvec", 475 | "zune-inflate", 476 | ] 477 | 478 | [[package]] 479 | name = "fax" 480 | version = "0.2.6" 481 | source = "registry+https://github.com/rust-lang/crates.io-index" 482 | checksum = "f05de7d48f37cd6730705cbca900770cab77a89f413d23e100ad7fad7795a0ab" 483 | dependencies = [ 484 | "fax_derive", 485 | ] 486 | 487 | [[package]] 488 | name = "fax_derive" 489 | version = "0.2.0" 490 | source = "registry+https://github.com/rust-lang/crates.io-index" 491 | checksum = "a0aca10fb742cb43f9e7bb8467c91aa9bcb8e3ffbc6a6f7389bb93ffc920577d" 492 | dependencies = [ 493 | "proc-macro2", 494 | "quote", 495 | "syn", 496 | ] 497 | 498 | [[package]] 499 | name = "fdeflate" 500 | version = "0.3.7" 501 | source = "registry+https://github.com/rust-lang/crates.io-index" 502 | checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" 503 | dependencies = [ 504 | "simd-adler32", 505 | ] 506 | 507 | [[package]] 508 | name = "find-msvc-tools" 509 | version = "0.1.1" 510 | source = "registry+https://github.com/rust-lang/crates.io-index" 511 | checksum = "7fd99930f64d146689264c637b5af2f0233a933bef0d8570e2526bf9e083192d" 512 | 513 | [[package]] 514 | name = "flate2" 515 | version = "1.1.2" 516 | source = "registry+https://github.com/rust-lang/crates.io-index" 517 | checksum = "4a3d7db9596fecd151c5f638c0ee5d5bd487b6e0ea232e5dc96d5250f6f94b1d" 518 | dependencies = [ 519 | "crc32fast", 520 | "miniz_oxide", 521 | ] 522 | 523 | [[package]] 524 | name = "fnv" 525 | version = "1.0.7" 526 | source = "registry+https://github.com/rust-lang/crates.io-index" 527 | checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" 528 | 529 | [[package]] 530 | name = "funty" 531 | version = "2.0.0" 532 | source = "registry+https://github.com/rust-lang/crates.io-index" 533 | checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" 534 | 535 | [[package]] 536 | name = "futures-core" 537 | version = "0.3.31" 538 | source = "registry+https://github.com/rust-lang/crates.io-index" 539 | checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" 540 | 541 | [[package]] 542 | name = "fxhash" 543 | version = "0.2.1" 544 | source = "registry+https://github.com/rust-lang/crates.io-index" 545 | checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" 546 | dependencies = [ 547 | "byteorder", 548 | ] 549 | 550 | [[package]] 551 | name = "getrandom" 552 | version = "0.2.16" 553 | source = "registry+https://github.com/rust-lang/crates.io-index" 554 | checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592" 555 | dependencies = [ 556 | "cfg-if", 557 | "libc", 558 | "wasi 0.11.1+wasi-snapshot-preview1", 559 | ] 560 | 561 | [[package]] 562 | name = "getrandom" 563 | version = "0.3.3" 564 | source = "registry+https://github.com/rust-lang/crates.io-index" 565 | checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4" 566 | dependencies = [ 567 | "cfg-if", 568 | "libc", 569 | "r-efi", 570 | "wasi 0.14.5+wasi-0.2.4", 571 | ] 572 | 573 | [[package]] 574 | name = "gif" 575 | version = "0.13.3" 576 | source = "registry+https://github.com/rust-lang/crates.io-index" 577 | checksum = "4ae047235e33e2829703574b54fdec96bfbad892062d97fed2f76022287de61b" 578 | dependencies = [ 579 | "color_quant", 580 | "weezl", 581 | ] 582 | 583 | [[package]] 584 | name = "gimli" 585 | version = "0.31.1" 586 | source = "registry+https://github.com/rust-lang/crates.io-index" 587 | checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" 588 | 589 | [[package]] 590 | name = "half" 591 | version = "2.6.0" 592 | source = "registry+https://github.com/rust-lang/crates.io-index" 593 | checksum = "459196ed295495a68f7d7fe1d84f6c4b7ff0e21fe3017b2f283c6fac3ad803c9" 594 | dependencies = [ 595 | "cfg-if", 596 | "crunchy", 597 | ] 598 | 599 | [[package]] 600 | name = "hashbrown" 601 | version = "0.15.5" 602 | source = "registry+https://github.com/rust-lang/crates.io-index" 603 | checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" 604 | 605 | [[package]] 606 | name = "heck" 607 | version = "0.5.0" 608 | source = "registry+https://github.com/rust-lang/crates.io-index" 609 | checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" 610 | 611 | [[package]] 612 | name = "hlua" 613 | version = "0.4.3" 614 | source = "registry+https://github.com/rust-lang/crates.io-index" 615 | checksum = "c3c03a4912d51870b3ad70456a312f0527debce842f6230096938564bcf13bea" 616 | dependencies = [ 617 | "libc", 618 | "lua52-sys", 619 | ] 620 | 621 | [[package]] 622 | name = "image" 623 | version = "0.25.8" 624 | source = "registry+https://github.com/rust-lang/crates.io-index" 625 | checksum = "529feb3e6769d234375c4cf1ee2ce713682b8e76538cb13f9fc23e1400a591e7" 626 | dependencies = [ 627 | "bytemuck", 628 | "byteorder-lite", 629 | "color_quant", 630 | "exr", 631 | "gif", 632 | "image-webp", 633 | "moxcms", 634 | "num-traits", 635 | "png", 636 | "qoi", 637 | "ravif", 638 | "rayon", 639 | "rgb", 640 | "tiff", 641 | "zune-core", 642 | "zune-jpeg", 643 | ] 644 | 645 | [[package]] 646 | name = "image-webp" 647 | version = "0.2.4" 648 | source = "registry+https://github.com/rust-lang/crates.io-index" 649 | checksum = "525e9ff3e1a4be2fbea1fdf0e98686a6d98b4d8f937e1bf7402245af1909e8c3" 650 | dependencies = [ 651 | "byteorder-lite", 652 | "quick-error", 653 | ] 654 | 655 | [[package]] 656 | name = "imgref" 657 | version = "1.11.0" 658 | source = "registry+https://github.com/rust-lang/crates.io-index" 659 | checksum = "d0263a3d970d5c054ed9312c0057b4f3bde9c0b33836d3637361d4a9e6e7a408" 660 | 661 | [[package]] 662 | name = "indexmap" 663 | version = "2.11.1" 664 | source = "registry+https://github.com/rust-lang/crates.io-index" 665 | checksum = "206a8042aec68fa4a62e8d3f7aa4ceb508177d9324faf261e1959e495b7a1921" 666 | dependencies = [ 667 | "equivalent", 668 | "hashbrown", 669 | ] 670 | 671 | [[package]] 672 | name = "inotify" 673 | version = "0.11.0" 674 | source = "registry+https://github.com/rust-lang/crates.io-index" 675 | checksum = "f37dccff2791ab604f9babef0ba14fbe0be30bd368dc541e2b08d07c8aa908f3" 676 | dependencies = [ 677 | "bitflags 2.9.4", 678 | "futures-core", 679 | "inotify-sys", 680 | "libc", 681 | "tokio", 682 | ] 683 | 684 | [[package]] 685 | name = "inotify-sys" 686 | version = "0.1.5" 687 | source = "registry+https://github.com/rust-lang/crates.io-index" 688 | checksum = "e05c02b5e89bff3b946cedeca278abc628fe811e604f027c45a8aa3cf793d0eb" 689 | dependencies = [ 690 | "libc", 691 | ] 692 | 693 | [[package]] 694 | name = "interpolate_name" 695 | version = "0.2.4" 696 | source = "registry+https://github.com/rust-lang/crates.io-index" 697 | checksum = "c34819042dc3d3971c46c2190835914dfbe0c3c13f61449b2997f4e9722dfa60" 698 | dependencies = [ 699 | "proc-macro2", 700 | "quote", 701 | "syn", 702 | ] 703 | 704 | [[package]] 705 | name = "io-uring" 706 | version = "0.7.10" 707 | source = "registry+https://github.com/rust-lang/crates.io-index" 708 | checksum = "046fa2d4d00aea763528b4950358d0ead425372445dc8ff86312b3c69ff7727b" 709 | dependencies = [ 710 | "bitflags 2.9.4", 711 | "cfg-if", 712 | "libc", 713 | ] 714 | 715 | [[package]] 716 | name = "ioctl-gen" 717 | version = "0.1.1" 718 | source = "registry+https://github.com/rust-lang/crates.io-index" 719 | checksum = "1745979ddec01f66bfed491fee60958959015239cb9c8878960a18cb73906be7" 720 | 721 | [[package]] 722 | name = "is_terminal_polyfill" 723 | version = "1.70.1" 724 | source = "registry+https://github.com/rust-lang/crates.io-index" 725 | checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" 726 | 727 | [[package]] 728 | name = "itertools" 729 | version = "0.12.1" 730 | source = "registry+https://github.com/rust-lang/crates.io-index" 731 | checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" 732 | dependencies = [ 733 | "either", 734 | ] 735 | 736 | [[package]] 737 | name = "jiff" 738 | version = "0.2.15" 739 | source = "registry+https://github.com/rust-lang/crates.io-index" 740 | checksum = "be1f93b8b1eb69c77f24bbb0afdf66f54b632ee39af40ca21c4365a1d7347e49" 741 | dependencies = [ 742 | "jiff-static", 743 | "log", 744 | "portable-atomic", 745 | "portable-atomic-util", 746 | "serde", 747 | ] 748 | 749 | [[package]] 750 | name = "jiff-static" 751 | version = "0.2.15" 752 | source = "registry+https://github.com/rust-lang/crates.io-index" 753 | checksum = "03343451ff899767262ec32146f6d559dd759fdadf42ff0e227c7c48f72594b4" 754 | dependencies = [ 755 | "proc-macro2", 756 | "quote", 757 | "syn", 758 | ] 759 | 760 | [[package]] 761 | name = "jobserver" 762 | version = "0.1.34" 763 | source = "registry+https://github.com/rust-lang/crates.io-index" 764 | checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33" 765 | dependencies = [ 766 | "getrandom 0.3.3", 767 | "libc", 768 | ] 769 | 770 | [[package]] 771 | name = "lebe" 772 | version = "0.5.3" 773 | source = "registry+https://github.com/rust-lang/crates.io-index" 774 | checksum = "7a79a3332a6609480d7d0c9eab957bca6b455b91bb84e66d19f5ff66294b85b8" 775 | 776 | [[package]] 777 | name = "libc" 778 | version = "0.2.175" 779 | source = "registry+https://github.com/rust-lang/crates.io-index" 780 | checksum = "6a82ae493e598baaea5209805c49bbf2ea7de956d50d7da0da1164f9c6d28543" 781 | 782 | [[package]] 783 | name = "libfuzzer-sys" 784 | version = "0.4.10" 785 | source = "registry+https://github.com/rust-lang/crates.io-index" 786 | checksum = "5037190e1f70cbeef565bd267599242926f724d3b8a9f510fd7e0b540cfa4404" 787 | dependencies = [ 788 | "arbitrary", 789 | "cc", 790 | ] 791 | 792 | [[package]] 793 | name = "libm" 794 | version = "0.2.15" 795 | source = "registry+https://github.com/rust-lang/crates.io-index" 796 | checksum = "f9fbbcab51052fe104eb5e5d351cf728d30a5be1fe14d9be8a3b097481fb97de" 797 | 798 | [[package]] 799 | name = "libmimalloc-sys" 800 | version = "0.1.44" 801 | source = "registry+https://github.com/rust-lang/crates.io-index" 802 | checksum = "667f4fec20f29dfc6bc7357c582d91796c169ad7e2fce709468aefeb2c099870" 803 | dependencies = [ 804 | "cc", 805 | "libc", 806 | ] 807 | 808 | [[package]] 809 | name = "libremarkable" 810 | version = "0.7.0" 811 | source = "registry+https://github.com/rust-lang/crates.io-index" 812 | checksum = "1da7c4a5765735faf196b9c3eb027cd9c2afb58abc772c8ef299dc56dc93edef" 813 | dependencies = [ 814 | "aabb-quadtree", 815 | "cgmath", 816 | "epoll", 817 | "evdev 0.12.2", 818 | "fxhash", 819 | "hlua", 820 | "image", 821 | "ioctl-gen", 822 | "libc", 823 | "line_drawing", 824 | "log", 825 | "memmap2", 826 | "rusttype", 827 | "zstd", 828 | ] 829 | 830 | [[package]] 831 | name = "line_drawing" 832 | version = "1.0.1" 833 | source = "registry+https://github.com/rust-lang/crates.io-index" 834 | checksum = "b5f309016f7f96b0147c6f223d5a8c4e678bf13ae8fb4f85f60c3bb5e0598ea8" 835 | dependencies = [ 836 | "num-traits", 837 | ] 838 | 839 | [[package]] 840 | name = "log" 841 | version = "0.4.28" 842 | source = "registry+https://github.com/rust-lang/crates.io-index" 843 | checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432" 844 | 845 | [[package]] 846 | name = "loop9" 847 | version = "0.1.5" 848 | source = "registry+https://github.com/rust-lang/crates.io-index" 849 | checksum = "0fae87c125b03c1d2c0150c90365d7d6bcc53fb73a9acaef207d2d065860f062" 850 | dependencies = [ 851 | "imgref", 852 | ] 853 | 854 | [[package]] 855 | name = "lua52-sys" 856 | version = "0.1.3" 857 | source = "registry+https://github.com/rust-lang/crates.io-index" 858 | checksum = "d2905d3eea022e5a4d8723d95ba261cd366572c9a43e429dfc089088a8c0fe91" 859 | dependencies = [ 860 | "cc", 861 | "libc", 862 | "pkg-config", 863 | ] 864 | 865 | [[package]] 866 | name = "maybe-rayon" 867 | version = "0.1.1" 868 | source = "registry+https://github.com/rust-lang/crates.io-index" 869 | checksum = "8ea1f30cedd69f0a2954655f7188c6a834246d2bcf1e315e2ac40c4b24dc9519" 870 | dependencies = [ 871 | "cfg-if", 872 | "rayon", 873 | ] 874 | 875 | [[package]] 876 | name = "memchr" 877 | version = "2.7.5" 878 | source = "registry+https://github.com/rust-lang/crates.io-index" 879 | checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0" 880 | 881 | [[package]] 882 | name = "memmap2" 883 | version = "0.9.8" 884 | source = "registry+https://github.com/rust-lang/crates.io-index" 885 | checksum = "843a98750cd611cc2965a8213b53b43e715f13c37a9e096c6408e69990961db7" 886 | dependencies = [ 887 | "libc", 888 | ] 889 | 890 | [[package]] 891 | name = "memoffset" 892 | version = "0.6.5" 893 | source = "registry+https://github.com/rust-lang/crates.io-index" 894 | checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" 895 | dependencies = [ 896 | "autocfg", 897 | ] 898 | 899 | [[package]] 900 | name = "mimalloc" 901 | version = "0.1.48" 902 | source = "registry+https://github.com/rust-lang/crates.io-index" 903 | checksum = "e1ee66a4b64c74f4ef288bcbb9192ad9c3feaad75193129ac8509af543894fd8" 904 | dependencies = [ 905 | "libmimalloc-sys", 906 | ] 907 | 908 | [[package]] 909 | name = "minimal-lexical" 910 | version = "0.2.1" 911 | source = "registry+https://github.com/rust-lang/crates.io-index" 912 | checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" 913 | 914 | [[package]] 915 | name = "miniz_oxide" 916 | version = "0.8.9" 917 | source = "registry+https://github.com/rust-lang/crates.io-index" 918 | checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" 919 | dependencies = [ 920 | "adler2", 921 | "simd-adler32", 922 | ] 923 | 924 | [[package]] 925 | name = "mio" 926 | version = "1.0.4" 927 | source = "registry+https://github.com/rust-lang/crates.io-index" 928 | checksum = "78bed444cc8a2160f01cbcf811ef18cac863ad68ae8ca62092e8db51d51c761c" 929 | dependencies = [ 930 | "libc", 931 | "wasi 0.11.1+wasi-snapshot-preview1", 932 | "windows-sys 0.59.0", 933 | ] 934 | 935 | [[package]] 936 | name = "moxcms" 937 | version = "0.7.5" 938 | source = "registry+https://github.com/rust-lang/crates.io-index" 939 | checksum = "ddd32fa8935aeadb8a8a6b6b351e40225570a37c43de67690383d87ef170cd08" 940 | dependencies = [ 941 | "num-traits", 942 | "pxfm", 943 | ] 944 | 945 | [[package]] 946 | name = "new_debug_unreachable" 947 | version = "1.0.6" 948 | source = "registry+https://github.com/rust-lang/crates.io-index" 949 | checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" 950 | 951 | [[package]] 952 | name = "nix" 953 | version = "0.23.2" 954 | source = "registry+https://github.com/rust-lang/crates.io-index" 955 | checksum = "8f3790c00a0150112de0f4cd161e3d7fc4b2d8a5542ffc35f099a2562aecb35c" 956 | dependencies = [ 957 | "bitflags 1.3.2", 958 | "cc", 959 | "cfg-if", 960 | "libc", 961 | "memoffset", 962 | ] 963 | 964 | [[package]] 965 | name = "nix" 966 | version = "0.29.0" 967 | source = "registry+https://github.com/rust-lang/crates.io-index" 968 | checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46" 969 | dependencies = [ 970 | "bitflags 2.9.4", 971 | "cfg-if", 972 | "cfg_aliases", 973 | "libc", 974 | ] 975 | 976 | [[package]] 977 | name = "nom" 978 | version = "7.1.3" 979 | source = "registry+https://github.com/rust-lang/crates.io-index" 980 | checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" 981 | dependencies = [ 982 | "memchr", 983 | "minimal-lexical", 984 | ] 985 | 986 | [[package]] 987 | name = "noop_proc_macro" 988 | version = "0.3.0" 989 | source = "registry+https://github.com/rust-lang/crates.io-index" 990 | checksum = "0676bb32a98c1a483ce53e500a81ad9c3d5b3f7c920c28c24e9cb0980d0b5bc8" 991 | 992 | [[package]] 993 | name = "num-bigint" 994 | version = "0.4.6" 995 | source = "registry+https://github.com/rust-lang/crates.io-index" 996 | checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" 997 | dependencies = [ 998 | "num-integer", 999 | "num-traits", 1000 | ] 1001 | 1002 | [[package]] 1003 | name = "num-derive" 1004 | version = "0.4.2" 1005 | source = "registry+https://github.com/rust-lang/crates.io-index" 1006 | checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" 1007 | dependencies = [ 1008 | "proc-macro2", 1009 | "quote", 1010 | "syn", 1011 | ] 1012 | 1013 | [[package]] 1014 | name = "num-integer" 1015 | version = "0.1.46" 1016 | source = "registry+https://github.com/rust-lang/crates.io-index" 1017 | checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" 1018 | dependencies = [ 1019 | "num-traits", 1020 | ] 1021 | 1022 | [[package]] 1023 | name = "num-rational" 1024 | version = "0.4.2" 1025 | source = "registry+https://github.com/rust-lang/crates.io-index" 1026 | checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824" 1027 | dependencies = [ 1028 | "num-bigint", 1029 | "num-integer", 1030 | "num-traits", 1031 | ] 1032 | 1033 | [[package]] 1034 | name = "num-traits" 1035 | version = "0.2.19" 1036 | source = "registry+https://github.com/rust-lang/crates.io-index" 1037 | checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" 1038 | dependencies = [ 1039 | "autocfg", 1040 | "libm", 1041 | ] 1042 | 1043 | [[package]] 1044 | name = "object" 1045 | version = "0.36.7" 1046 | source = "registry+https://github.com/rust-lang/crates.io-index" 1047 | checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87" 1048 | dependencies = [ 1049 | "memchr", 1050 | ] 1051 | 1052 | [[package]] 1053 | name = "once_cell" 1054 | version = "1.21.3" 1055 | source = "registry+https://github.com/rust-lang/crates.io-index" 1056 | checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" 1057 | 1058 | [[package]] 1059 | name = "once_cell_polyfill" 1060 | version = "1.70.1" 1061 | source = "registry+https://github.com/rust-lang/crates.io-index" 1062 | checksum = "a4895175b425cb1f87721b59f0f286c2092bd4af812243672510e1ac53e2e0ad" 1063 | 1064 | [[package]] 1065 | name = "owned_ttf_parser" 1066 | version = "0.15.2" 1067 | source = "registry+https://github.com/rust-lang/crates.io-index" 1068 | checksum = "05e6affeb1632d6ff6a23d2cd40ffed138e82f1532571a26f527c8a284bb2fbb" 1069 | dependencies = [ 1070 | "ttf-parser", 1071 | ] 1072 | 1073 | [[package]] 1074 | name = "paste" 1075 | version = "1.0.15" 1076 | source = "registry+https://github.com/rust-lang/crates.io-index" 1077 | checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" 1078 | 1079 | [[package]] 1080 | name = "pin-project-lite" 1081 | version = "0.2.16" 1082 | source = "registry+https://github.com/rust-lang/crates.io-index" 1083 | checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" 1084 | 1085 | [[package]] 1086 | name = "pkg-config" 1087 | version = "0.3.32" 1088 | source = "registry+https://github.com/rust-lang/crates.io-index" 1089 | checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" 1090 | 1091 | [[package]] 1092 | name = "png" 1093 | version = "0.18.0" 1094 | source = "registry+https://github.com/rust-lang/crates.io-index" 1095 | checksum = "97baced388464909d42d89643fe4361939af9b7ce7a31ee32a168f832a70f2a0" 1096 | dependencies = [ 1097 | "bitflags 2.9.4", 1098 | "crc32fast", 1099 | "fdeflate", 1100 | "flate2", 1101 | "miniz_oxide", 1102 | ] 1103 | 1104 | [[package]] 1105 | name = "portable-atomic" 1106 | version = "1.11.1" 1107 | source = "registry+https://github.com/rust-lang/crates.io-index" 1108 | checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483" 1109 | 1110 | [[package]] 1111 | name = "portable-atomic-util" 1112 | version = "0.2.4" 1113 | source = "registry+https://github.com/rust-lang/crates.io-index" 1114 | checksum = "d8a2f0d8d040d7848a709caf78912debcc3f33ee4b3cac47d73d1e1069e83507" 1115 | dependencies = [ 1116 | "portable-atomic", 1117 | ] 1118 | 1119 | [[package]] 1120 | name = "ppv-lite86" 1121 | version = "0.2.21" 1122 | source = "registry+https://github.com/rust-lang/crates.io-index" 1123 | checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" 1124 | dependencies = [ 1125 | "zerocopy", 1126 | ] 1127 | 1128 | [[package]] 1129 | name = "proc-macro2" 1130 | version = "1.0.101" 1131 | source = "registry+https://github.com/rust-lang/crates.io-index" 1132 | checksum = "89ae43fd86e4158d6db51ad8e2b80f313af9cc74f5c0e03ccb87de09998732de" 1133 | dependencies = [ 1134 | "unicode-ident", 1135 | ] 1136 | 1137 | [[package]] 1138 | name = "profiling" 1139 | version = "1.0.17" 1140 | source = "registry+https://github.com/rust-lang/crates.io-index" 1141 | checksum = "3eb8486b569e12e2c32ad3e204dbaba5e4b5b216e9367044f25f1dba42341773" 1142 | dependencies = [ 1143 | "profiling-procmacros", 1144 | ] 1145 | 1146 | [[package]] 1147 | name = "profiling-procmacros" 1148 | version = "1.0.17" 1149 | source = "registry+https://github.com/rust-lang/crates.io-index" 1150 | checksum = "52717f9a02b6965224f95ca2a81e2e0c5c43baacd28ca057577988930b6c3d5b" 1151 | dependencies = [ 1152 | "quote", 1153 | "syn", 1154 | ] 1155 | 1156 | [[package]] 1157 | name = "pxfm" 1158 | version = "0.1.23" 1159 | source = "registry+https://github.com/rust-lang/crates.io-index" 1160 | checksum = "f55f4fedc84ed39cb7a489322318976425e42a147e2be79d8f878e2884f94e84" 1161 | dependencies = [ 1162 | "num-traits", 1163 | ] 1164 | 1165 | [[package]] 1166 | name = "qoi" 1167 | version = "0.4.1" 1168 | source = "registry+https://github.com/rust-lang/crates.io-index" 1169 | checksum = "7f6d64c71eb498fe9eae14ce4ec935c555749aef511cca85b5568910d6e48001" 1170 | dependencies = [ 1171 | "bytemuck", 1172 | ] 1173 | 1174 | [[package]] 1175 | name = "quick-error" 1176 | version = "2.0.1" 1177 | source = "registry+https://github.com/rust-lang/crates.io-index" 1178 | checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" 1179 | 1180 | [[package]] 1181 | name = "quote" 1182 | version = "1.0.40" 1183 | source = "registry+https://github.com/rust-lang/crates.io-index" 1184 | checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d" 1185 | dependencies = [ 1186 | "proc-macro2", 1187 | ] 1188 | 1189 | [[package]] 1190 | name = "r-efi" 1191 | version = "5.3.0" 1192 | source = "registry+https://github.com/rust-lang/crates.io-index" 1193 | checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" 1194 | 1195 | [[package]] 1196 | name = "radium" 1197 | version = "0.7.0" 1198 | source = "registry+https://github.com/rust-lang/crates.io-index" 1199 | checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" 1200 | 1201 | [[package]] 1202 | name = "rand" 1203 | version = "0.8.5" 1204 | source = "registry+https://github.com/rust-lang/crates.io-index" 1205 | checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" 1206 | dependencies = [ 1207 | "libc", 1208 | "rand_chacha", 1209 | "rand_core", 1210 | ] 1211 | 1212 | [[package]] 1213 | name = "rand_chacha" 1214 | version = "0.3.1" 1215 | source = "registry+https://github.com/rust-lang/crates.io-index" 1216 | checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" 1217 | dependencies = [ 1218 | "ppv-lite86", 1219 | "rand_core", 1220 | ] 1221 | 1222 | [[package]] 1223 | name = "rand_core" 1224 | version = "0.6.4" 1225 | source = "registry+https://github.com/rust-lang/crates.io-index" 1226 | checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" 1227 | dependencies = [ 1228 | "getrandom 0.2.16", 1229 | ] 1230 | 1231 | [[package]] 1232 | name = "rav1e" 1233 | version = "0.7.1" 1234 | source = "registry+https://github.com/rust-lang/crates.io-index" 1235 | checksum = "cd87ce80a7665b1cce111f8a16c1f3929f6547ce91ade6addf4ec86a8dda5ce9" 1236 | dependencies = [ 1237 | "arbitrary", 1238 | "arg_enum_proc_macro", 1239 | "arrayvec", 1240 | "av1-grain", 1241 | "bitstream-io", 1242 | "built", 1243 | "cfg-if", 1244 | "interpolate_name", 1245 | "itertools", 1246 | "libc", 1247 | "libfuzzer-sys", 1248 | "log", 1249 | "maybe-rayon", 1250 | "new_debug_unreachable", 1251 | "noop_proc_macro", 1252 | "num-derive", 1253 | "num-traits", 1254 | "once_cell", 1255 | "paste", 1256 | "profiling", 1257 | "rand", 1258 | "rand_chacha", 1259 | "simd_helpers", 1260 | "system-deps", 1261 | "thiserror", 1262 | "v_frame", 1263 | "wasm-bindgen", 1264 | ] 1265 | 1266 | [[package]] 1267 | name = "ravif" 1268 | version = "0.11.20" 1269 | source = "registry+https://github.com/rust-lang/crates.io-index" 1270 | checksum = "5825c26fddd16ab9f515930d49028a630efec172e903483c94796cfe31893e6b" 1271 | dependencies = [ 1272 | "avif-serialize", 1273 | "imgref", 1274 | "loop9", 1275 | "quick-error", 1276 | "rav1e", 1277 | "rayon", 1278 | "rgb", 1279 | ] 1280 | 1281 | [[package]] 1282 | name = "rayon" 1283 | version = "1.11.0" 1284 | source = "registry+https://github.com/rust-lang/crates.io-index" 1285 | checksum = "368f01d005bf8fd9b1206fb6fa653e6c4a81ceb1466406b81792d87c5677a58f" 1286 | dependencies = [ 1287 | "either", 1288 | "rayon-core", 1289 | ] 1290 | 1291 | [[package]] 1292 | name = "rayon-core" 1293 | version = "1.13.0" 1294 | source = "registry+https://github.com/rust-lang/crates.io-index" 1295 | checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91" 1296 | dependencies = [ 1297 | "crossbeam-deque", 1298 | "crossbeam-utils", 1299 | ] 1300 | 1301 | [[package]] 1302 | name = "regex" 1303 | version = "1.11.2" 1304 | source = "registry+https://github.com/rust-lang/crates.io-index" 1305 | checksum = "23d7fd106d8c02486a8d64e778353d1cffe08ce79ac2e82f540c86d0facf6912" 1306 | dependencies = [ 1307 | "aho-corasick", 1308 | "memchr", 1309 | "regex-automata", 1310 | "regex-syntax", 1311 | ] 1312 | 1313 | [[package]] 1314 | name = "regex-automata" 1315 | version = "0.4.10" 1316 | source = "registry+https://github.com/rust-lang/crates.io-index" 1317 | checksum = "6b9458fa0bfeeac22b5ca447c63aaf45f28439a709ccd244698632f9aa6394d6" 1318 | dependencies = [ 1319 | "aho-corasick", 1320 | "memchr", 1321 | "regex-syntax", 1322 | ] 1323 | 1324 | [[package]] 1325 | name = "regex-syntax" 1326 | version = "0.8.6" 1327 | source = "registry+https://github.com/rust-lang/crates.io-index" 1328 | checksum = "caf4aa5b0f434c91fe5c7f1ecb6a5ece2130b02ad2a590589dda5146df959001" 1329 | 1330 | [[package]] 1331 | name = "rgb" 1332 | version = "0.8.52" 1333 | source = "registry+https://github.com/rust-lang/crates.io-index" 1334 | checksum = "0c6a884d2998352bb4daf0183589aec883f16a6da1f4dde84d8e2e9a5409a1ce" 1335 | 1336 | [[package]] 1337 | name = "rustc-demangle" 1338 | version = "0.1.26" 1339 | source = "registry+https://github.com/rust-lang/crates.io-index" 1340 | checksum = "56f7d92ca342cea22a06f2121d944b4fd82af56988c270852495420f961d4ace" 1341 | 1342 | [[package]] 1343 | name = "rusttype" 1344 | version = "0.9.3" 1345 | source = "registry+https://github.com/rust-lang/crates.io-index" 1346 | checksum = "3ff8374aa04134254b7995b63ad3dc41c7f7236f69528b28553da7d72efaa967" 1347 | dependencies = [ 1348 | "ab_glyph_rasterizer", 1349 | "owned_ttf_parser", 1350 | ] 1351 | 1352 | [[package]] 1353 | name = "rustversion" 1354 | version = "1.0.22" 1355 | source = "registry+https://github.com/rust-lang/crates.io-index" 1356 | checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" 1357 | 1358 | [[package]] 1359 | name = "serde" 1360 | version = "1.0.219" 1361 | source = "registry+https://github.com/rust-lang/crates.io-index" 1362 | checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" 1363 | dependencies = [ 1364 | "serde_derive", 1365 | ] 1366 | 1367 | [[package]] 1368 | name = "serde_derive" 1369 | version = "1.0.219" 1370 | source = "registry+https://github.com/rust-lang/crates.io-index" 1371 | checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" 1372 | dependencies = [ 1373 | "proc-macro2", 1374 | "quote", 1375 | "syn", 1376 | ] 1377 | 1378 | [[package]] 1379 | name = "serde_spanned" 1380 | version = "0.6.9" 1381 | source = "registry+https://github.com/rust-lang/crates.io-index" 1382 | checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" 1383 | dependencies = [ 1384 | "serde", 1385 | ] 1386 | 1387 | [[package]] 1388 | name = "shlex" 1389 | version = "1.3.0" 1390 | source = "registry+https://github.com/rust-lang/crates.io-index" 1391 | checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" 1392 | 1393 | [[package]] 1394 | name = "simd-adler32" 1395 | version = "0.3.7" 1396 | source = "registry+https://github.com/rust-lang/crates.io-index" 1397 | checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" 1398 | 1399 | [[package]] 1400 | name = "simd_helpers" 1401 | version = "0.1.0" 1402 | source = "registry+https://github.com/rust-lang/crates.io-index" 1403 | checksum = "95890f873bec569a0362c235787f3aca6e1e887302ba4840839bcc6459c42da6" 1404 | dependencies = [ 1405 | "quote", 1406 | ] 1407 | 1408 | [[package]] 1409 | name = "slab" 1410 | version = "0.4.11" 1411 | source = "registry+https://github.com/rust-lang/crates.io-index" 1412 | checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589" 1413 | 1414 | [[package]] 1415 | name = "smallvec" 1416 | version = "1.15.1" 1417 | source = "registry+https://github.com/rust-lang/crates.io-index" 1418 | checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" 1419 | 1420 | [[package]] 1421 | name = "socket2" 1422 | version = "0.6.0" 1423 | source = "registry+https://github.com/rust-lang/crates.io-index" 1424 | checksum = "233504af464074f9d066d7b5416c5f9b894a5862a6506e306f7b816cdd6f1807" 1425 | dependencies = [ 1426 | "libc", 1427 | "windows-sys 0.59.0", 1428 | ] 1429 | 1430 | [[package]] 1431 | name = "syn" 1432 | version = "2.0.106" 1433 | source = "registry+https://github.com/rust-lang/crates.io-index" 1434 | checksum = "ede7c438028d4436d71104916910f5bb611972c5cfd7f89b8300a8186e6fada6" 1435 | dependencies = [ 1436 | "proc-macro2", 1437 | "quote", 1438 | "unicode-ident", 1439 | ] 1440 | 1441 | [[package]] 1442 | name = "system-deps" 1443 | version = "6.2.2" 1444 | source = "registry+https://github.com/rust-lang/crates.io-index" 1445 | checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349" 1446 | dependencies = [ 1447 | "cfg-expr", 1448 | "heck", 1449 | "pkg-config", 1450 | "toml", 1451 | "version-compare", 1452 | ] 1453 | 1454 | [[package]] 1455 | name = "tap" 1456 | version = "1.0.1" 1457 | source = "registry+https://github.com/rust-lang/crates.io-index" 1458 | checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" 1459 | 1460 | [[package]] 1461 | name = "target-lexicon" 1462 | version = "0.12.16" 1463 | source = "registry+https://github.com/rust-lang/crates.io-index" 1464 | checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" 1465 | 1466 | [[package]] 1467 | name = "thiserror" 1468 | version = "1.0.69" 1469 | source = "registry+https://github.com/rust-lang/crates.io-index" 1470 | checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" 1471 | dependencies = [ 1472 | "thiserror-impl", 1473 | ] 1474 | 1475 | [[package]] 1476 | name = "thiserror-impl" 1477 | version = "1.0.69" 1478 | source = "registry+https://github.com/rust-lang/crates.io-index" 1479 | checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" 1480 | dependencies = [ 1481 | "proc-macro2", 1482 | "quote", 1483 | "syn", 1484 | ] 1485 | 1486 | [[package]] 1487 | name = "tiff" 1488 | version = "0.10.3" 1489 | source = "registry+https://github.com/rust-lang/crates.io-index" 1490 | checksum = "af9605de7fee8d9551863fd692cce7637f548dbd9db9180fcc07ccc6d26c336f" 1491 | dependencies = [ 1492 | "fax", 1493 | "flate2", 1494 | "half", 1495 | "quick-error", 1496 | "weezl", 1497 | "zune-jpeg", 1498 | ] 1499 | 1500 | [[package]] 1501 | name = "tokio" 1502 | version = "1.47.1" 1503 | source = "registry+https://github.com/rust-lang/crates.io-index" 1504 | checksum = "89e49afdadebb872d3145a5638b59eb0691ea23e46ca484037cfab3b76b95038" 1505 | dependencies = [ 1506 | "backtrace", 1507 | "io-uring", 1508 | "libc", 1509 | "mio", 1510 | "pin-project-lite", 1511 | "slab", 1512 | "socket2", 1513 | "windows-sys 0.59.0", 1514 | ] 1515 | 1516 | [[package]] 1517 | name = "toml" 1518 | version = "0.8.23" 1519 | source = "registry+https://github.com/rust-lang/crates.io-index" 1520 | checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362" 1521 | dependencies = [ 1522 | "serde", 1523 | "serde_spanned", 1524 | "toml_datetime", 1525 | "toml_edit", 1526 | ] 1527 | 1528 | [[package]] 1529 | name = "toml_datetime" 1530 | version = "0.6.11" 1531 | source = "registry+https://github.com/rust-lang/crates.io-index" 1532 | checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c" 1533 | dependencies = [ 1534 | "serde", 1535 | ] 1536 | 1537 | [[package]] 1538 | name = "toml_edit" 1539 | version = "0.22.27" 1540 | source = "registry+https://github.com/rust-lang/crates.io-index" 1541 | checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a" 1542 | dependencies = [ 1543 | "indexmap", 1544 | "serde", 1545 | "serde_spanned", 1546 | "toml_datetime", 1547 | "winnow", 1548 | ] 1549 | 1550 | [[package]] 1551 | name = "ttf-parser" 1552 | version = "0.15.2" 1553 | source = "registry+https://github.com/rust-lang/crates.io-index" 1554 | checksum = "7b3e06c9b9d80ed6b745c7159c40b311ad2916abb34a49e9be2653b90db0d8dd" 1555 | 1556 | [[package]] 1557 | name = "unicode-ident" 1558 | version = "1.0.18" 1559 | source = "registry+https://github.com/rust-lang/crates.io-index" 1560 | checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512" 1561 | 1562 | [[package]] 1563 | name = "utf8parse" 1564 | version = "0.2.2" 1565 | source = "registry+https://github.com/rust-lang/crates.io-index" 1566 | checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" 1567 | 1568 | [[package]] 1569 | name = "v_frame" 1570 | version = "0.3.9" 1571 | source = "registry+https://github.com/rust-lang/crates.io-index" 1572 | checksum = "666b7727c8875d6ab5db9533418d7c764233ac9c0cff1d469aec8fa127597be2" 1573 | dependencies = [ 1574 | "aligned-vec", 1575 | "num-traits", 1576 | "wasm-bindgen", 1577 | ] 1578 | 1579 | [[package]] 1580 | name = "version-compare" 1581 | version = "0.2.0" 1582 | source = "registry+https://github.com/rust-lang/crates.io-index" 1583 | checksum = "852e951cb7832cb45cb1169900d19760cfa39b82bc0ea9c0e5a14ae88411c98b" 1584 | 1585 | [[package]] 1586 | name = "wasi" 1587 | version = "0.11.1+wasi-snapshot-preview1" 1588 | source = "registry+https://github.com/rust-lang/crates.io-index" 1589 | checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" 1590 | 1591 | [[package]] 1592 | name = "wasi" 1593 | version = "0.14.5+wasi-0.2.4" 1594 | source = "registry+https://github.com/rust-lang/crates.io-index" 1595 | checksum = "a4494f6290a82f5fe584817a676a34b9d6763e8d9d18204009fb31dceca98fd4" 1596 | dependencies = [ 1597 | "wasip2", 1598 | ] 1599 | 1600 | [[package]] 1601 | name = "wasip2" 1602 | version = "1.0.0+wasi-0.2.4" 1603 | source = "registry+https://github.com/rust-lang/crates.io-index" 1604 | checksum = "03fa2761397e5bd52002cd7e73110c71af2109aca4e521a9f40473fe685b0a24" 1605 | dependencies = [ 1606 | "wit-bindgen", 1607 | ] 1608 | 1609 | [[package]] 1610 | name = "wasm-bindgen" 1611 | version = "0.2.101" 1612 | source = "registry+https://github.com/rust-lang/crates.io-index" 1613 | checksum = "7e14915cadd45b529bb8d1f343c4ed0ac1de926144b746e2710f9cd05df6603b" 1614 | dependencies = [ 1615 | "cfg-if", 1616 | "once_cell", 1617 | "rustversion", 1618 | "wasm-bindgen-macro", 1619 | "wasm-bindgen-shared", 1620 | ] 1621 | 1622 | [[package]] 1623 | name = "wasm-bindgen-backend" 1624 | version = "0.2.101" 1625 | source = "registry+https://github.com/rust-lang/crates.io-index" 1626 | checksum = "e28d1ba982ca7923fd01448d5c30c6864d0a14109560296a162f80f305fb93bb" 1627 | dependencies = [ 1628 | "bumpalo", 1629 | "log", 1630 | "proc-macro2", 1631 | "quote", 1632 | "syn", 1633 | "wasm-bindgen-shared", 1634 | ] 1635 | 1636 | [[package]] 1637 | name = "wasm-bindgen-macro" 1638 | version = "0.2.101" 1639 | source = "registry+https://github.com/rust-lang/crates.io-index" 1640 | checksum = "7c3d463ae3eff775b0c45df9da45d68837702ac35af998361e2c84e7c5ec1b0d" 1641 | dependencies = [ 1642 | "quote", 1643 | "wasm-bindgen-macro-support", 1644 | ] 1645 | 1646 | [[package]] 1647 | name = "wasm-bindgen-macro-support" 1648 | version = "0.2.101" 1649 | source = "registry+https://github.com/rust-lang/crates.io-index" 1650 | checksum = "7bb4ce89b08211f923caf51d527662b75bdc9c9c7aab40f86dcb9fb85ac552aa" 1651 | dependencies = [ 1652 | "proc-macro2", 1653 | "quote", 1654 | "syn", 1655 | "wasm-bindgen-backend", 1656 | "wasm-bindgen-shared", 1657 | ] 1658 | 1659 | [[package]] 1660 | name = "wasm-bindgen-shared" 1661 | version = "0.2.101" 1662 | source = "registry+https://github.com/rust-lang/crates.io-index" 1663 | checksum = "f143854a3b13752c6950862c906306adb27c7e839f7414cec8fea35beab624c1" 1664 | dependencies = [ 1665 | "unicode-ident", 1666 | ] 1667 | 1668 | [[package]] 1669 | name = "weezl" 1670 | version = "0.1.10" 1671 | source = "registry+https://github.com/rust-lang/crates.io-index" 1672 | checksum = "a751b3277700db47d3e574514de2eced5e54dc8a5436a3bf7a0b248b2cee16f3" 1673 | 1674 | [[package]] 1675 | name = "windows-link" 1676 | version = "0.1.3" 1677 | source = "registry+https://github.com/rust-lang/crates.io-index" 1678 | checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a" 1679 | 1680 | [[package]] 1681 | name = "windows-sys" 1682 | version = "0.59.0" 1683 | source = "registry+https://github.com/rust-lang/crates.io-index" 1684 | checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" 1685 | dependencies = [ 1686 | "windows-targets 0.52.6", 1687 | ] 1688 | 1689 | [[package]] 1690 | name = "windows-sys" 1691 | version = "0.60.2" 1692 | source = "registry+https://github.com/rust-lang/crates.io-index" 1693 | checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" 1694 | dependencies = [ 1695 | "windows-targets 0.53.3", 1696 | ] 1697 | 1698 | [[package]] 1699 | name = "windows-targets" 1700 | version = "0.52.6" 1701 | source = "registry+https://github.com/rust-lang/crates.io-index" 1702 | checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" 1703 | dependencies = [ 1704 | "windows_aarch64_gnullvm 0.52.6", 1705 | "windows_aarch64_msvc 0.52.6", 1706 | "windows_i686_gnu 0.52.6", 1707 | "windows_i686_gnullvm 0.52.6", 1708 | "windows_i686_msvc 0.52.6", 1709 | "windows_x86_64_gnu 0.52.6", 1710 | "windows_x86_64_gnullvm 0.52.6", 1711 | "windows_x86_64_msvc 0.52.6", 1712 | ] 1713 | 1714 | [[package]] 1715 | name = "windows-targets" 1716 | version = "0.53.3" 1717 | source = "registry+https://github.com/rust-lang/crates.io-index" 1718 | checksum = "d5fe6031c4041849d7c496a8ded650796e7b6ecc19df1a431c1a363342e5dc91" 1719 | dependencies = [ 1720 | "windows-link", 1721 | "windows_aarch64_gnullvm 0.53.0", 1722 | "windows_aarch64_msvc 0.53.0", 1723 | "windows_i686_gnu 0.53.0", 1724 | "windows_i686_gnullvm 0.53.0", 1725 | "windows_i686_msvc 0.53.0", 1726 | "windows_x86_64_gnu 0.53.0", 1727 | "windows_x86_64_gnullvm 0.53.0", 1728 | "windows_x86_64_msvc 0.53.0", 1729 | ] 1730 | 1731 | [[package]] 1732 | name = "windows_aarch64_gnullvm" 1733 | version = "0.52.6" 1734 | source = "registry+https://github.com/rust-lang/crates.io-index" 1735 | checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" 1736 | 1737 | [[package]] 1738 | name = "windows_aarch64_gnullvm" 1739 | version = "0.53.0" 1740 | source = "registry+https://github.com/rust-lang/crates.io-index" 1741 | checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764" 1742 | 1743 | [[package]] 1744 | name = "windows_aarch64_msvc" 1745 | version = "0.52.6" 1746 | source = "registry+https://github.com/rust-lang/crates.io-index" 1747 | checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" 1748 | 1749 | [[package]] 1750 | name = "windows_aarch64_msvc" 1751 | version = "0.53.0" 1752 | source = "registry+https://github.com/rust-lang/crates.io-index" 1753 | checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c" 1754 | 1755 | [[package]] 1756 | name = "windows_i686_gnu" 1757 | version = "0.52.6" 1758 | source = "registry+https://github.com/rust-lang/crates.io-index" 1759 | checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" 1760 | 1761 | [[package]] 1762 | name = "windows_i686_gnu" 1763 | version = "0.53.0" 1764 | source = "registry+https://github.com/rust-lang/crates.io-index" 1765 | checksum = "c1dc67659d35f387f5f6c479dc4e28f1d4bb90ddd1a5d3da2e5d97b42d6272c3" 1766 | 1767 | [[package]] 1768 | name = "windows_i686_gnullvm" 1769 | version = "0.52.6" 1770 | source = "registry+https://github.com/rust-lang/crates.io-index" 1771 | checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" 1772 | 1773 | [[package]] 1774 | name = "windows_i686_gnullvm" 1775 | version = "0.53.0" 1776 | source = "registry+https://github.com/rust-lang/crates.io-index" 1777 | checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11" 1778 | 1779 | [[package]] 1780 | name = "windows_i686_msvc" 1781 | version = "0.52.6" 1782 | source = "registry+https://github.com/rust-lang/crates.io-index" 1783 | checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" 1784 | 1785 | [[package]] 1786 | name = "windows_i686_msvc" 1787 | version = "0.53.0" 1788 | source = "registry+https://github.com/rust-lang/crates.io-index" 1789 | checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d" 1790 | 1791 | [[package]] 1792 | name = "windows_x86_64_gnu" 1793 | version = "0.52.6" 1794 | source = "registry+https://github.com/rust-lang/crates.io-index" 1795 | checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" 1796 | 1797 | [[package]] 1798 | name = "windows_x86_64_gnu" 1799 | version = "0.53.0" 1800 | source = "registry+https://github.com/rust-lang/crates.io-index" 1801 | checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba" 1802 | 1803 | [[package]] 1804 | name = "windows_x86_64_gnullvm" 1805 | version = "0.52.6" 1806 | source = "registry+https://github.com/rust-lang/crates.io-index" 1807 | checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" 1808 | 1809 | [[package]] 1810 | name = "windows_x86_64_gnullvm" 1811 | version = "0.53.0" 1812 | source = "registry+https://github.com/rust-lang/crates.io-index" 1813 | checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57" 1814 | 1815 | [[package]] 1816 | name = "windows_x86_64_msvc" 1817 | version = "0.52.6" 1818 | source = "registry+https://github.com/rust-lang/crates.io-index" 1819 | checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" 1820 | 1821 | [[package]] 1822 | name = "windows_x86_64_msvc" 1823 | version = "0.53.0" 1824 | source = "registry+https://github.com/rust-lang/crates.io-index" 1825 | checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486" 1826 | 1827 | [[package]] 1828 | name = "winnow" 1829 | version = "0.7.13" 1830 | source = "registry+https://github.com/rust-lang/crates.io-index" 1831 | checksum = "21a0236b59786fed61e2a80582dd500fe61f18b5dca67a4a067d0bc9039339cf" 1832 | dependencies = [ 1833 | "memchr", 1834 | ] 1835 | 1836 | [[package]] 1837 | name = "wit-bindgen" 1838 | version = "0.45.1" 1839 | source = "registry+https://github.com/rust-lang/crates.io-index" 1840 | checksum = "5c573471f125075647d03df72e026074b7203790d41351cd6edc96f46bcccd36" 1841 | 1842 | [[package]] 1843 | name = "wyz" 1844 | version = "0.5.1" 1845 | source = "registry+https://github.com/rust-lang/crates.io-index" 1846 | checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed" 1847 | dependencies = [ 1848 | "tap", 1849 | ] 1850 | 1851 | [[package]] 1852 | name = "zerocopy" 1853 | version = "0.8.27" 1854 | source = "registry+https://github.com/rust-lang/crates.io-index" 1855 | checksum = "0894878a5fa3edfd6da3f88c4805f4c8558e2b996227a3d864f47fe11e38282c" 1856 | dependencies = [ 1857 | "zerocopy-derive", 1858 | ] 1859 | 1860 | [[package]] 1861 | name = "zerocopy-derive" 1862 | version = "0.8.27" 1863 | source = "registry+https://github.com/rust-lang/crates.io-index" 1864 | checksum = "88d2b8d9c68ad2b9e4340d7832716a4d21a22a1154777ad56ea55c51a9cf3831" 1865 | dependencies = [ 1866 | "proc-macro2", 1867 | "quote", 1868 | "syn", 1869 | ] 1870 | 1871 | [[package]] 1872 | name = "zstd" 1873 | version = "0.13.3" 1874 | source = "registry+https://github.com/rust-lang/crates.io-index" 1875 | checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a" 1876 | dependencies = [ 1877 | "zstd-safe", 1878 | ] 1879 | 1880 | [[package]] 1881 | name = "zstd-safe" 1882 | version = "7.2.4" 1883 | source = "registry+https://github.com/rust-lang/crates.io-index" 1884 | checksum = "8f49c4d5f0abb602a93fb8736af2a4f4dd9512e36f7f570d66e65ff867ed3b9d" 1885 | dependencies = [ 1886 | "zstd-sys", 1887 | ] 1888 | 1889 | [[package]] 1890 | name = "zstd-sys" 1891 | version = "2.0.16+zstd.1.5.7" 1892 | source = "registry+https://github.com/rust-lang/crates.io-index" 1893 | checksum = "91e19ebc2adc8f83e43039e79776e3fda8ca919132d68a1fed6a5faca2683748" 1894 | dependencies = [ 1895 | "cc", 1896 | "pkg-config", 1897 | ] 1898 | 1899 | [[package]] 1900 | name = "zune-core" 1901 | version = "0.4.12" 1902 | source = "registry+https://github.com/rust-lang/crates.io-index" 1903 | checksum = "3f423a2c17029964870cfaabb1f13dfab7d092a62a29a89264f4d36990ca414a" 1904 | 1905 | [[package]] 1906 | name = "zune-inflate" 1907 | version = "0.2.54" 1908 | source = "registry+https://github.com/rust-lang/crates.io-index" 1909 | checksum = "73ab332fe2f6680068f3582b16a24f90ad7096d5d39b974d1c0aff0125116f02" 1910 | dependencies = [ 1911 | "simd-adler32", 1912 | ] 1913 | 1914 | [[package]] 1915 | name = "zune-jpeg" 1916 | version = "0.4.21" 1917 | source = "registry+https://github.com/rust-lang/crates.io-index" 1918 | checksum = "29ce2c8a9384ad323cf564b67da86e21d3cfdff87908bc1223ed5c99bc792713" 1919 | dependencies = [ 1920 | "zune-core", 1921 | ] 1922 | --------------------------------------------------------------------------------