Browse Source

Update to ehttp 0.4 (#3834)

pull/3835/head
Emil Ernerfeldt 10 months ago
committed by GitHub
parent
commit
f01d337fa8
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      Cargo.lock
  2. 2
      crates/egui_demo_app/Cargo.toml
  3. 6
      crates/egui_demo_app/src/apps/http_app.rs
  4. 2
      crates/egui_extras/Cargo.toml

4
Cargo.lock

@ -1333,9 +1333,9 @@ dependencies = [
[[package]]
name = "ehttp"
version = "0.3.1"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f88f45662356f96afc7d9e2bc9910ad8352ee01417f7c69b8b16a53c8767a75d"
checksum = "e598cc2bfc28612f26426259ed99a978270e9433d63ae6d2843e30fb0974cd02"
dependencies = [
"document-features",
"js-sys",

2
crates/egui_demo_app/Cargo.toml

@ -60,7 +60,7 @@ puffin_http = { version = "0.15", optional = true }
# feature "http":
ehttp = { version = "0.3.1", optional = true }
ehttp = { version = "0.4", optional = true }
image = { version = "0.24", optional = true, default-features = false, features = [
"jpeg",
"png",

6
crates/egui_demo_app/src/apps/http_app.rs

@ -182,9 +182,9 @@ fn ui_resource(ui: &mut egui::Ui, resource: &Resource) {
egui::Grid::new("response_headers")
.spacing(egui::vec2(ui.spacing().item_spacing.x * 2.0, 0.0))
.show(ui, |ui| {
for header in &response.headers {
ui.label(header.0);
ui.label(header.1);
for (k, v) in &response.headers {
ui.label(k);
ui.label(v);
ui.end_row();
}
})

2
crates/egui_extras/Cargo.toml

@ -95,4 +95,4 @@ syntect = { version = "5", optional = true, default-features = false, features =
resvg = { version = "0.37", optional = true, default-features = false }
# http feature
ehttp = { version = "0.3.1", optional = true, default-features = false }
ehttp = { version = "0.4", optional = true, default-features = false }

Loading…
Cancel
Save