From 92acaa1a3be42b085bf2fe9c4e258662254edcf5 Mon Sep 17 00:00:00 2001 From: shnewto Date: Sun, 7 Jul 2024 14:15:00 -0400 Subject: [PATCH] bump supported bevy version --- Cargo.toml | 19 ++++++++++--------- README.md | 8 +++----- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index bb1d4ed..d136689 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,25 +19,26 @@ default=[] bevy=["dep:bevy"] [dependencies] -glam = "0.25.0" -hashbrown = "0.14.5" -image = "0.24.9" -mashmap = "0.1.1" -ordered-float = "4.2.0" -thiserror = "1.0.57" +glam = "0.25" +hashbrown = "0.14" +image = "0.25" +mashmap = "0.1" +ordered-float = "4.2" +thiserror = "1.0" [dependencies.bevy] -version = "0.13.0" +version = "0.14" default-features = false features = ["bevy_render"] optional = true [dev-dependencies] -raqote = "0.8.4" -open = "5.1.2" +raqote = "0.8" +open = "5.1" [[example]] name = "bevy-image" +required-features = ["bevy"] [[example]] name = "dynamic-image" diff --git a/README.md b/README.md index 54fa625..4c3f00f 100644 --- a/README.md +++ b/README.md @@ -17,11 +17,9 @@ get the edges of objects in images with transparency. use edges::Edges; use std::path::Path; -fn main() { - let image = image::open(Path::new("assets/car.png")); - let edges = Edges::from(image.unwrap()); - println!("{:#?}", edges.single_image_edge_translated()); -} +let image = image::open(Path::new("assets/car.png")); +let edges = Edges::from(image.unwrap()); +println!("{:#?}", edges.single_image_edge_translated()); ``` ## how it works