mirror of
https://github.com/emilk/egui.git
synced 2026-09-03 23:30:04 -04:00
Update to winit 0.29 (#3649)
* Closes https://github.com/emilk/egui/issues/3542 * Closes https://github.com/emilk/egui/issues/2977 * Closes https://github.com/emilk/egui/issues/3303 --------- Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
@@ -53,7 +53,7 @@ image = ["dep:image"]
|
||||
puffin = ["dep:puffin", "egui/puffin"]
|
||||
|
||||
## Support loading svg images.
|
||||
svg = ["resvg", "tiny-skia", "usvg"]
|
||||
svg = ["resvg"]
|
||||
|
||||
## Enable better syntax highlighting using [`syntect`](https://docs.rs/syntect).
|
||||
syntect = ["dep:syntect"]
|
||||
@@ -93,8 +93,6 @@ syntect = { version = "5", optional = true, default-features = false, features =
|
||||
|
||||
# svg feature
|
||||
resvg = { version = "0.28", optional = true, default-features = false }
|
||||
tiny-skia = { version = "0.8", optional = true, default-features = false } # must be updated in lock-step with resvg
|
||||
usvg = { version = "0.28", optional = true, default-features = false }
|
||||
|
||||
# http feature
|
||||
ehttp = { version = "0.3.1", optional = true, default-features = false }
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
|
||||
use egui::{mutex::Mutex, TextureOptions};
|
||||
|
||||
#[cfg(feature = "svg")]
|
||||
use resvg::{tiny_skia, usvg};
|
||||
|
||||
#[cfg(feature = "svg")]
|
||||
pub use usvg::FitTo;
|
||||
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
use std::{mem::size_of, path::Path, sync::Arc};
|
||||
|
||||
use egui::{
|
||||
ahash::HashMap,
|
||||
load::{BytesPoll, ImageLoadResult, ImageLoader, ImagePoll, LoadError, SizeHint},
|
||||
mutex::Mutex,
|
||||
ColorImage,
|
||||
};
|
||||
use std::{mem::size_of, path::Path, sync::Arc};
|
||||
|
||||
use resvg::usvg;
|
||||
|
||||
type Entry = Result<Arc<ColorImage>, String>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user