diff --git a/examples/scenes/Cargo.toml b/examples/scenes/Cargo.toml index 7037d28..7d2551f 100644 --- a/examples/scenes/Cargo.toml +++ b/examples/scenes/Cargo.toml @@ -16,6 +16,7 @@ vello_svg = { path = "../../integrations/vello_svg" } anyhow = { workspace = true } clap = { workspace = true, features = ["derive"] } image = "0.24.5" +instant = "0.1.12" # Used for the `download` command byte-unit = "4.0" diff --git a/examples/scenes/src/svg.rs b/examples/scenes/src/svg.rs index 2fbbac6..708be50 100644 --- a/examples/scenes/src/svg.rs +++ b/examples/scenes/src/svg.rs @@ -1,10 +1,10 @@ use std::{ fs::read_dir, path::{Path, PathBuf}, - time::Instant, }; use anyhow::{Ok, Result}; +use instant::Instant; use vello::{kurbo::Vec2, SceneBuilder, SceneFragment}; use vello_svg::usvg; diff --git a/examples/with_winit/Cargo.toml b/examples/with_winit/Cargo.toml index f5f3843..446422e 100644 --- a/examples/with_winit/Cargo.toml +++ b/examples/with_winit/Cargo.toml @@ -24,6 +24,7 @@ vello = { path = "../../", features = ["buffer_labels"] } scenes = { path = "../scenes" } anyhow = { workspace = true } clap = { workspace = true, features = ["derive"] } +instant = "0.1.12" pollster = { workspace = true } wgpu = { workspace = true } diff --git a/examples/with_winit/src/lib.rs b/examples/with_winit/src/lib.rs index 2536e4c..dc46b54 100644 --- a/examples/with_winit/src/lib.rs +++ b/examples/with_winit/src/lib.rs @@ -14,8 +14,8 @@ // // Also licensed under MIT license, at your choice. +use instant::Instant; use std::collections::HashSet; -use std::time::Instant; use anyhow::Result; use clap::{CommandFactory, Parser};