Skip to content

Commit

Permalink
Use [patch.crates-io] for egui (#15)
Browse files Browse the repository at this point in the history
* Use [patch.crates-io] for egui

* Update to latest egui
  • Loading branch information
emilk authored Sep 25, 2023
1 parent 50b8a74 commit d42d340
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ documentation = "https://docs.rs/egui_commonmark"
include = ["src/*.rs", "LICENSE-MIT", "LICENSE-APACHE", "Cargo.toml"]

[dependencies]
egui = { git = "https://github.com/emilk/egui", rev = "d949eaf" }
egui.version = "0.22"
pulldown-cmark = { version = "0.9.3", default-features = false }
egui_extras = { git = "https://github.com/emilk/egui", rev = "d949eaf" }
egui_extras.version = "0.22"

syntect = { version = "5.0.0", optional = true, default-features = false, features = [
"default-fancy",
Expand All @@ -39,9 +39,16 @@ svg = ["egui_extras/svg"]
fetch = ["egui_extras/http"]

[dev-dependencies]
eframe = { git = "https://github.com/emilk/egui", rev = "d949eaf" }
eframe.version = "0.22"
image = { version = "0.24", default-features = false, features = ["png"] }

[package.metadata.docs.rs]
# docs.rs build can fail with the fetch feature enabled
features = ["better_syntax_highlighting", "document-features"]


[patch.crates-io]
# Pathed until the next egui release:
eframe = { git = "https://github.com/emilk/egui", rev = "fdd493d48fd23047480ac5a0219fc5f206eb0dd3" }
egui = { git = "https://github.com/emilk/egui", rev = "fdd493d48fd23047480ac5a0219fc5f206eb0dd3" }
egui_extras = { git = "https://github.com/emilk/egui", rev = "fdd493d48fd23047480ac5a0219fc5f206eb0dd3" }
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ impl CommonMarkCache {
// cache free from egui's Ui and Context types as this allows it to be created before
// any egui instances. It also keeps the API similar to before the introduction of the
// image loaders.
egui_extras::loaders::install_image_loaders(ctx);
egui_extras::install_image_loaders(ctx);
self.has_installed_loaders = true;
}

Expand Down

0 comments on commit d42d340

Please sign in to comment.