feat: graph-ir (continueing #6) #10

Merged
schrottkatze merged 37 commits from schrottkatze/iowo:graph-ir into main 2024-01-23 12:55:01 +00:00
4 changed files with 11 additions and 1 deletions
Showing only changes of commit 8f3c426359 - Show all commits

View file

@ -10,6 +10,10 @@ resolver = "2"
clap = { version = "4", features = [ "derive" ] }
serde = { version = "1.0", features = [ "derive" ] }
# to enable all the lints below, this must be present in a workspace member's Cargo.toml:
# [lints]
# workspace = true
[workspace.lints.rust]
unsafe_code = "deny"
variant_size_differences = "warn"

View file

@ -9,3 +9,6 @@ edition = "2021"
clap = { workspace = true, features = [ "derive" ] }
image = "0.24"
rpl = { path = "../rpl" }
[lints]
workspace = true

View file

@ -2,7 +2,7 @@ pub mod read {
use image::{io::Reader as ImageReader, DynamicImage};
use rpl::instructions::read::{Read, SourceType};
pub fn read(Read { source, format: _ }: Read) -> DynamicImage {
pub fn read(Read { source, .. }: Read) -> DynamicImage {
// TODO: actual error handling
let img = ImageReader::open(match source {
SourceType::File(path) => path,

View file

@ -8,3 +8,6 @@ edition = "2021"
[dependencies]
serde = { workspace = true, features = [ "derive" ] }
ron = "0.8"
[lints]
workspace = true