Skip to content

wry v0.46.0

Compare
Choose a tag to compare
@github-actions github-actions released this 12 Oct 02:29
a11b827

Cargo Audit

Updating crates.io index
     Locking 391 packages to latest compatible versions
      Adding android-activity v0.5.2 (latest: v0.6.0)
      Adding ash v0.37.3+1.3.251 (latest: v0.38.0+1.3.281)
      Adding bit-set v0.5.3 (latest: v0.8.0)
      Adding bit-vec v0.6.3 (latest: v0.8.0)
      Adding bitflags v1.3.2 (latest: v2.6.0)
      Adding block2 v0.3.0 (latest: v0.5.1)
      Adding cairo-rs v0.18.5 (latest: v0.20.1)
      Adding cairo-sys-rs v0.18.2 (latest: v0.20.0)
      Adding calloop v0.12.4 (latest: v0.14.1)
      Adding calloop-wayland-source v0.2.0 (latest: v0.4.0)
      Adding cfg-expr v0.15.8 (latest: v0.17.0)
      Adding cfg_aliases v0.1.1 (latest: v0.2.1)
      Adding convert_case v0.4.0 (latest: v0.6.0)
      Adding core-foundation v0.9.4 (latest: v0.10.0)
      Adding core-graphics v0.23.2 (latest: v0.24.0)
      Adding core-graphics-types v0.1.3 (latest: v0.2.0)
      Adding cssparser v0.27.2 (latest: v0.34.0)
      Adding d3d12 v0.19.0 (latest: v22.0.0)
      Adding derive_more v0.99.18 (latest: v1.0.0)
      Adding gdk-pixbuf v0.18.5 (latest: v0.20.4)
      Adding gdk-pixbuf-sys v0.18.0 (latest: v0.20.4)
      Adding generic-array v0.14.7 (latest: v1.1.0)
      Adding gethostname v0.4.3 (latest: v0.5.0)
      Adding getrandom v0.1.16 (latest: v0.2.15)
      Adding gio v0.18.4 (latest: v0.20.4)
      Adding gio-sys v0.18.1 (latest: v0.20.4)
      Adding glib v0.18.5 (latest: v0.20.4)
      Adding glib-macros v0.18.5 (latest: v0.20.4)
      Adding glib-sys v0.18.1 (latest: v0.20.4)
      Adding glow v0.13.1 (latest: v0.14.2)
      Adding glutin_wgl_sys v0.5.0 (latest: v0.6.0)
      Adding gobject-sys v0.18.0 (latest: v0.20.4)
      Adding gpu-allocator v0.25.0 (latest: v0.27.0)
      Adding gpu-descriptor v0.2.4 (latest: v0.3.0)
      Adding gpu-descriptor-types v0.1.2 (latest: v0.2.0)
      Adding hashbrown v0.12.3 (latest: v0.15.0)
      Adding hashbrown v0.14.5 (latest: v0.15.0)
      Adding heck v0.4.1 (latest: v0.5.0)
      Adding html5ever v0.26.0 (latest: v0.29.0)
      Adding icrate v0.0.4 (latest: v0.1.2)
      Adding idna v0.5.0 (latest: v1.0.2)
      Adding indexmap v1.9.3 (latest: v2.6.0)
      Adding itoa v0.4.8 (latest: v1.0.11)
      Adding jni-sys v0.3.0 (latest: v0.4.0)
      Adding libloading v0.7.4 (latest: v0.8.5)
      Adding libredox v0.0.2 (latest: v0.1.3)
      Adding linux-raw-sys v0.4.14 (latest: v0.6.5)
      Adding malloc_buf v0.0.6 (latest: v1.0.0)
      Adding markup5ever v0.11.0 (latest: v0.14.0)
      Adding metal v0.27.0 (latest: v0.29.0)
      Adding naga v0.19.2 (latest: v22.1.0)
      Adding ndk v0.8.0 (latest: v0.9.0)
      Adding ndk-sys v0.5.0+25.2.9519653 (latest: v0.6.0+11769913)
      Adding objc2 v0.4.1 (latest: v0.5.2)
      Adding objc2-encode v3.0.0 (latest: v4.0.3)
      Adding pango v0.18.3 (latest: v0.20.4)
      Adding pango-sys v0.18.0 (latest: v0.20.4)
      Adding phf v0.8.0 (latest: v0.11.2)
      Adding phf v0.10.1 (latest: v0.11.2)
      Adding phf_codegen v0.8.0 (latest: v0.11.2)
      Adding phf_codegen v0.10.0 (latest: v0.11.2)
      Adding phf_generator v0.8.0 (latest: v0.11.2)
      Adding phf_generator v0.10.0 (latest: v0.11.2)
      Adding phf_macros v0.8.0 (latest: v0.11.2)
      Adding phf_shared v0.8.0 (latest: v0.11.2)
      Adding phf_shared v0.10.0 (latest: v0.11.2)
      Adding proc-macro-crate v1.3.1 (latest: v3.2.0)
      Adding proc-macro-crate v2.0.2 (latest: v3.2.0)
      Adding rand v0.7.3 (latest: v0.8.5)
      Adding rand_chacha v0.2.2 (latest: v0.3.1)
      Adding rand_core v0.5.1 (latest: v0.6.4)
      Adding rand_hc v0.2.0 (latest: v0.3.2)
      Adding rand_pcg v0.2.1 (latest: v0.3.1)
      Adding redox_syscall v0.3.5 (latest: v0.5.7)
      Adding redox_syscall v0.4.1 (latest: v0.5.7)
      Adding rustc-hash v1.1.0 (latest: v2.0.0)
      Adding sctk-adwaita v0.8.3 (latest: v0.10.1)
      Adding selectors v0.22.0 (latest: v0.25.0)
      Adding servo_arc v0.1.1 (latest: v0.3.0)
      Adding siphasher v0.3.11 (latest: v1.0.1)
      Adding smithay-client-toolkit v0.18.1 (latest: v0.19.2)
      Adding smol_str v0.2.2 (latest: v0.3.1)
      Adding soup3 v0.5.0 (latest: v0.7.0)
      Adding soup3-sys v0.5.0 (latest: v0.7.0)
      Adding strict-num v0.1.1 (latest: v0.2.0)
      Adding syn v1.0.109 (latest: v2.0.79)
      Adding system-deps v6.2.2 (latest: v7.0.3)
      Adding tao v0.29.1 (latest: v0.30.3)
      Adding toml v0.8.2 (latest: v0.8.19)
      Adding toml_datetime v0.6.3 (latest: v0.6.8)
      Adding toml_edit v0.19.15 (latest: v0.22.22)
      Adding toml_edit v0.20.2 (latest: v0.22.22)
      Adding unicode-width v0.1.14 (latest: v0.2.0)
      Adding wasi v0.9.0+wasi-snapshot-preview1 (latest: v0.13.3+wasi-0.2.2)
      Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.3+wasi-0.2.2)
      Adding wayland-protocols v0.31.2 (latest: v0.32.4)
      Adding wayland-protocols-plasma v0.2.0 (latest: v0.3.4)
      Adding wayland-protocols-wlr v0.2.0 (latest: v0.3.4)
      Adding web-time v0.2.4 (latest: v1.1.0)
      Adding wgpu v0.19.4 (latest: v22.1.0)
      Adding wgpu-core v0.19.4 (latest: v22.1.0)
      Adding wgpu-hal v0.19.5 (latest: v22.0.0)
      Adding wgpu-types v0.19.2 (latest: v22.0.0)
      Adding windows v0.52.0 (latest: v0.58.0)
      Adding windows-core v0.52.0 (latest: v0.58.0)
      Adding windows-strings v0.1.0 (latest: v0.2.0)
      Adding windows-sys v0.45.0 (latest: v0.59.0)
      Adding windows-sys v0.48.0 (latest: v0.59.0)
      Adding windows-sys v0.52.0 (latest: v0.59.0)
      Adding windows-targets v0.42.2 (latest: v0.52.6)
      Adding windows-targets v0.48.5 (latest: v0.52.6)
      Adding windows_aarch64_gnullvm v0.42.2 (latest: v0.52.6)
      Adding windows_aarch64_gnullvm v0.48.5 (latest: v0.52.6)
      Adding windows_aarch64_msvc v0.42.2 (latest: v0.52.6)
      Adding windows_aarch64_msvc v0.48.5 (latest: v0.52.6)
      Adding windows_i686_gnu v0.42.2 (latest: v0.52.6)
      Adding windows_i686_gnu v0.48.5 (latest: v0.52.6)
      Adding windows_i686_msvc v0.42.2 (latest: v0.52.6)
      Adding windows_i686_msvc v0.48.5 (latest: v0.52.6)
      Adding windows_x86_64_gnu v0.42.2 (latest: v0.52.6)
      Adding windows_x86_64_gnu v0.48.5 (latest: v0.52.6)
      Adding windows_x86_64_gnullvm v0.42.2 (latest: v0.52.6)
      Adding windows_x86_64_gnullvm v0.48.5 (latest: v0.52.6)
      Adding windows_x86_64_msvc v0.42.2 (latest: v0.52.6)
      Adding windows_x86_64_msvc v0.48.5 (latest: v0.52.6)
      Adding winit v0.29.15 (latest: v0.30.5)
      Adding winnow v0.5.40 (latest: v0.6.20)
      Adding zerocopy v0.7.35 (latest: v0.8.5)
      Adding zerocopy-derive v0.7.35 (latest: v0.8.5)
Fetching advisory database from `https://github.com/RustSec/advisory-db.git`
      Loaded 663 security advisories (from /home/runner/.cargo/advisory-db)
    Updating crates.io index
    Scanning Cargo.lock for vulnerabilities (391 crate dependencies)
Crate:     proc-macro-error
Version:   1.0.4
Warning:   unmaintained
Title:     proc-macro-error is unmaintained
Date:      2024-09-01
ID:        RUSTSEC-2024-0370
URL:       https://rustsec.org/advisories/RUSTSEC-2024-0370
Dependency tree:
proc-macro-error 1.0.4
├── gtk3-macros 0.18.0
│   └── gtk 0.18.1
│       ├── wry 0.46.0
│       ├── webkit2gtk 2.0.1
│       │   └── wry 0.46.0
│       └── tao 0.29.1
│           └── wry 0.46.0
└── glib-macros 0.18.5
    └── glib 0.18.5
        ├── webkit2gtk 2.0.1
        ├── soup3 0.5.0
        │   ├── wry 0.46.0
        │   └── webkit2gtk 2.0.1
        ├── pango 0.18.3
        │   ├── gtk 0.18.1
        │   └── gdk 0.18.0
        │       ├── webkit2gtk 2.0.1
        │       ├── gtk 0.18.1
        │       └── gdkx11 0.18.0
        │           └── wry 0.46.0
        ├── javascriptcore-rs 1.1.2
        │   ├── wry 0.46.0
        │   └── webkit2gtk 2.0.1
        ├── gtk 0.18.1
        ├── gio 0.18.4
        │   ├── webkit2gtk 2.0.1
        │   ├── soup3 0.5.0
        │   ├── pango 0.18.3
        │   ├── gtk 0.18.1
        │   ├── gdkx11 0.18.0
        │   ├── gdk-pixbuf 0.18.5
        │   │   ├── gtk 0.18.1
        │   │   └── gdk 0.18.0
        │   └── gdk 0.18.0
        ├── gdkx11 0.18.0
        ├── gdk-pixbuf 0.18.5
        ├── gdk 0.18.0
        ├── cairo-rs 0.18.5
        │   ├── webkit2gtk 2.0.1
        │   ├── gtk 0.18.1
        │   └── gdk 0.18.0
        └── atk 0.18.0
            └── gtk 0.18.1

warning: 1 allowed warning found

[0.46.0]

  • 8cc2a7f (#1384 by @amrbashir) This release contains quite the breaking changes, because even though [email protected], ignored duplicate custom protocols, On Linux when using a shared web context, the custom protocol handler can only be registered once so we are bringing the duplicate custom protocols on Linux again, Windows and macOS are not affected. If using a shared web context, make sure to register a protocol only once on Linux (other platforms should be registed multiple times), use WebContext::is_custom_protocol_registered with #[cfg(target_os = "linux")].

    We also noticed that it is hard to know which webview made a request to the custom protocol so we added a method to attach an ID to a webview, and changed relevant custom protocol APIs to take a new argument that passes the specified id back to protocol handler.

    We also made a few changes to the builder, specifically WebViewBuilder::new and WebViewBuilder::build methods to make them more ergonomic to work with.

    • Added Error::DuplicateCustomProtocol enum variant.
    • Added Error::ContextDuplicateCustomProtocol enum variant.
    • On Linux, return an error in WebViewBuilder::build if registering a custom protocol multiple times.
    • Added WebContext::is_custom_protocol_registered to check if a protocol has been regsterd for this web context.
    • Added WebViewId alias type.
    • Breaking Changed WebViewAttributes to have a lifetime parameter.
    • Added WebViewAttributes.id field to specify an id for the webview.
    • Added WebViewBuilder::with_id method to specify an id for the webview.
    • Added WebViewAttributes.context field to specify a shared context for the webview.
    • Breaking Changed WebViewAttributes.custom_protocols field,WebViewBuilder::with_custom_protocol method and WebViewBuilder::with_asynchronous_custom_protocol method handler function to take WebViewId as the first argument to check which webview made the request to the protocol.
    • Breaking Changed WebViewBuilder::with_web_context to be a static method to create a builder with a webcontext, instead of it being a setter method. It is now an alternative to WebviewBuilder::new
    • Added WebViewBuilder::with_attributes to create a webview builder with provided attributes.
    • Breaking Changed WebViewBuilder::new to take no arguments.
    • Breaking Changed WebViewBuilder::build method to take a reference to a window to create the webview in it.
    • Breaking Removed WebViewBuilder::new_as_child.
    • Added WebViewBuilder::build_as_child method, which takes a reference to a window to create the webview in it.
    • Breaking Removed WebViewBuilderExtUnix::new_gtk.
    • Added WebViewBuilderExtUnix::build_gtk.
  • 0abc221 (#1316 by @pewsheen) Migrate to obj2.

  • b01eac3 (#1386 by @lucasfernog) Use unescaped Android package identifier for the proguard rules.

Cargo Publish

Updating crates.io index
   Packaging wry v0.46.0 (/home/runner/work/wry/wry)
    Updating crates.io index
    Packaged 75 files, 657.0KiB (161.0KiB compressed)
   Uploading wry v0.46.0 (/home/runner/work/wry/wry)
    Uploaded wry v0.46.0 to registry `crates-io`
note: waiting for `wry v0.46.0` to be available at registry `crates-io`.
You may press ctrl-c to skip waiting; the crate should be available shortly.
   Published wry v0.46.0 at registry `crates-io`