webview2-sys 0.1.1

Low Level Bindings for WebView2 SDK
Documentation
Build #2468128 2025-09-01 23:59:05
# rustc version
rustc 1.91.0-nightly (07d246fc6 2025-08-31)# docs.rs version
docsrs 0.6.0 (8bbaf878 2025-08-22)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/webview2-sys-0.1.1/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/webview2-sys-0.1.1/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250831-1.91.0-nightly-07d246fc6\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-pc-windows-msvc\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-pc-windows-msvc", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 5fc5c2628c27a3ac35a572993bdcf836ab210e7bb1eb01bc07f91b319892fa32
[INFO] running `Command { std: "docker" "start" "-a" "5fc5c2628c27a3ac35a572993bdcf836ab210e7bb1eb01bc07f91b319892fa32", kill_on_drop: false }`
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]  Documenting webview2-sys v0.1.1 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unresolved link to `COREWEBVIEW2_WEB_RESOURCE_CONTEXT`
[INFO] [stderr]     --> src/lib.rs:1464:10
[INFO] [stderr]      |
[INFO] [stderr] 1464 |     /// [COREWEBVIEW2_WEB_RESOURCE_CONTEXT].
[INFO] [stderr]      |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `COREWEBVIEW2_WEB_RESOURCE_CONTEXT` in scope
[INFO] [stderr]      |
[INFO] [stderr]      = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr]      = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `PostWebMessageAsJson`
[INFO] [stderr]     --> src/lib.rs:2377:5
[INFO] [stderr]      |
[INFO] [stderr] 2377 | /     /// The `IsWebMessageEnabled` property is used when loading a new HTML
[INFO] [stderr] 2378 | |     /// document.  If set to `TRUE`, communication from the host to the top-level
[INFO] [stderr] 2379 | |     ///  HTML document of the WebView is allowed using `PostWebMessageAsJson`,
[INFO] [stderr] 2380 | |     /// `PostWebMessageAsString`, and message event of `window.chrome.webview`.
[INFO] [stderr] ...    |
[INFO] [stderr] 2390 | |     ///
[INFO] [stderr] 2391 | |     /// \snippet ScenarioWebMessage.cpp IsWebMessageEnabled
[INFO] [stderr]      | |___________________________________________________________^
[INFO] [stderr]      |
[INFO] [stderr]      = note: the link appears in this line:
[INFO] [stderr]              
[INFO] [stderr]              For more information, navigate to [PostWebMessageAsJson].  Communication
[INFO] [stderr]                                                 ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      = note: no item named `PostWebMessageAsJson` in scope
[INFO] [stderr]      = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `add_WebMessageReceived`
[INFO] [stderr]     --> src/lib.rs:2377:5
[INFO] [stderr]      |
[INFO] [stderr] 2377 | /     /// The `IsWebMessageEnabled` property is used when loading a new HTML
[INFO] [stderr] 2378 | |     /// document.  If set to `TRUE`, communication from the host to the top-level
[INFO] [stderr] 2379 | |     ///  HTML document of the WebView is allowed using `PostWebMessageAsJson`,
[INFO] [stderr] 2380 | |     /// `PostWebMessageAsString`, and message event of `window.chrome.webview`.
[INFO] [stderr] ...    |
[INFO] [stderr] 2390 | |     ///
[INFO] [stderr] 2391 | |     /// \snippet ScenarioWebMessage.cpp IsWebMessageEnabled
[INFO] [stderr]      | |___________________________________________________________^
[INFO] [stderr]      |
[INFO] [stderr]      = note: the link appears in this line:
[INFO] [stderr]              
[INFO] [stderr]              [add_WebMessageReceived].  If set to false, then communication is
[INFO] [stderr]               ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      = note: no item named `add_WebMessageReceived` in scope
[INFO] [stderr]      = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]    --> src/lib.rs:303:46
[INFO] [stderr]     |
[INFO] [stderr] 303 | /// These fields match those as specified in https://developer.mozilla.org/docs/Web/HTTP/Cookies#.
[INFO] [stderr]     |                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr]     = note: `#[warn(rustdoc::bare_urls)]` on by default
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]     |
[INFO] [stderr] 303 | /// These fields match those as specified in <https://developer.mozilla.org/docs/Web/HTTP/Cookies#.>
[INFO] [stderr]     |                                              +                                                     +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]    --> src/lib.rs:304:45
[INFO] [stderr]     |
[INFO] [stderr] 304 | /// Learn more about SameSite cookies here: https://tools.ietf.org/html/draft-west-first-party-cookies-07
[INFO] [stderr]     |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]     |
[INFO] [stderr] 304 | /// Learn more about SameSite cookies here: <https://tools.ietf.org/html/draft-west-first-party-cookies-07>
[INFO] [stderr]     |                                             +                                                             +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]    --> src/lib.rs:476:71
[INFO] [stderr]     |
[INFO] [stderr] 476 | ...ymantecPkiImmediateHtml\]: https://security.googleblog.com/2018/03/distrust-of-symantec-pki-immediate.html "Distrust of the Symantec P...
[INFO] [stderr]     |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]     |
[INFO] [stderr] 476 |     /// \[GoogleblogSecurity201803DistrustSymantecPkiImmediateHtml\]: <https://security.googleblog.com/2018/03/distrust-of-symantec-pki-immediate.html> "Distrust of the Symantec PKI: Immediate action needed by site operators | Google Security Blog"
[INFO] [stderr]     |                                                                       +                                                                               +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]     --> src/lib.rs:1023:53
[INFO] [stderr]      |
[INFO] [stderr] 1023 |     /// \[MdnDocsWebHtmlElementIframeAttrSandbox\]: https://developer.mozilla.org/docs/Web/HTML/Element/iframe#attr-sandbox "sandbox - \<...
[INFO] [stderr]      |                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |
[INFO] [stderr]      = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]      |
[INFO] [stderr] 1023 |     /// \[MdnDocsWebHtmlElementIframeAttrSandbox\]: <https://developer.mozilla.org/docs/Web/HTML/Element/iframe#attr-sandbox> "sandbox - \<iframe\>: The Inline Frame element | MDN"
[INFO] [stderr]      |                                                     +                                                                       +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]     --> src/lib.rs:1025:57
[INFO] [stderr]      |
[INFO] [stderr] 1025 |     /// \[MdnDocsWebHttpHeadersContentSecurityPolicy\]: https://developer.mozilla.org/docs/Web/HTTP/Headers/Content-Security-Policy "Cont...
[INFO] [stderr]      |                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |
[INFO] [stderr]      = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]      |
[INFO] [stderr] 1025 |     /// \[MdnDocsWebHttpHeadersContentSecurityPolicy\]: <https://developer.mozilla.org/docs/Web/HTTP/Headers/Content-Security-Policy> "Content-Security-Policy | MDN"
[INFO] [stderr]      |                                                         +                                                                           +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]     --> src/lib.rs:1166:54
[INFO] [stderr]      |
[INFO] [stderr] 1166 |     /// \[GithubChromedevtoolsDevtoolsProtocolTot\]: https://chromedevtools.github.io/devtools-protocol/tot "latest (tip-of-tree) protoco...
[INFO] [stderr]      |                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |
[INFO] [stderr]      = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]      |
[INFO] [stderr] 1166 |     /// \[GithubChromedevtoolsDevtoolsProtocolTot\]: <https://chromedevtools.github.io/devtools-protocol/tot> "latest (tip-of-tree) protocol - Chrome DevTools Protocol | GitHub"
[INFO] [stderr]      |                                                      +                                                      +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]     --> src/lib.rs:1205:54
[INFO] [stderr]      |
[INFO] [stderr] 1205 |     /// \[GithubChromedevtoolsDevtoolsProtocolTot\]: https://chromedevtools.github.io/devtools-protocol/tot "latest (tip-of-tree) protoco...
[INFO] [stderr]      |                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |
[INFO] [stderr]      = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]      |
[INFO] [stderr] 1205 |     /// \[GithubChromedevtoolsDevtoolsProtocolTot\]: <https://chromedevtools.github.io/devtools-protocol/tot> "latest (tip-of-tree) protocol - Chrome DevTools Protocol | GitHub"
[INFO] [stderr]      |                                                      +                                                      +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]     --> src/lib.rs:1442:5
[INFO] [stderr]      |
[INFO] [stderr] 1442 | /     /// Adds a URI and resource context filter for the `WebResourceRequested`
[INFO] [stderr] 1443 | |     /// event.  A web resource request with a resource context that matches this
[INFO] [stderr] 1444 | |     /// filter's resource context and a URI that matches this filter's URI
[INFO] [stderr] 1445 | |     /// wildcard string will be raised via the `WebResourceRequested` event.
[INFO] [stderr] ...    |
[INFO] [stderr] 1477 | |     /// | https://xn--qei.example/ | https://&#x2764;.example/ | Yes | Non-ASCII hostnames are normalized to punycode before wildcard comparison |
[INFO] [stderr] 1478 | |     /// | https://&#x2764;.example/ | https://xn--qei.example/ | No | Non-ASCII hostnames are normalized to punycode before wildcard comparison |
[INFO] [stderr]      | |_________________________________________________________________________________________________________________________________________________^
[INFO] [stderr]      |
[INFO] [stderr]      = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]     --> src/lib.rs:1470:33
[INFO] [stderr]      |
[INFO] [stderr] 1470 |     /// | `*://contoso.com/*` | https://example.com/?https://contoso.com/ | Yes | But also matches a URI with just the same text anywhere...
[INFO] [stderr]      |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |
[INFO] [stderr]      = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]      |
[INFO] [stderr] 1470 |     /// | `*://contoso.com/*` | <https://example.com/?https://contoso.com/> | Yes | But also matches a URI with just the same text anywhere in the URI |
[INFO] [stderr]      |                                 +                                         +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]     --> src/lib.rs:1473:24
[INFO] [stderr]      |
[INFO] [stderr] 1473 |     /// | `*example` | https://contoso.com/path/?example | Yes | The fitler matches across URI parts |
[INFO] [stderr]      |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |
[INFO] [stderr]      = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]      |
[INFO] [stderr] 1473 |     /// | `*example` | <https://contoso.com/path/?example> | Yes | The fitler matches across URI parts |
[INFO] [stderr]      |                        +                                 +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]     --> src/lib.rs:1474:24
[INFO] [stderr]      |
[INFO] [stderr] 1474 |     /// | `*example` | https://contoso.com/path/?query#example | No | The filter is matched against the URI with no fragment |
[INFO] [stderr]      |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |
[INFO] [stderr]      = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]      |
[INFO] [stderr] 1474 |     /// | `*example` | <https://contoso.com/path/?query#example> | No | The filter is matched against the URI with no fragment |
[INFO] [stderr]      |                        +                                       +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]     --> src/lib.rs:3442:48
[INFO] [stderr]      |
[INFO] [stderr] 3442 | /// \[MdnDocsWebApiWindowOpenWindowFeatures\]: https://developer.mozilla.org/docs/Web/API/Window/open#Window_features "Window features - ...
[INFO] [stderr]      |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |
[INFO] [stderr]      = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]      |
[INFO] [stderr] 3442 | /// \[MdnDocsWebApiWindowOpenWindowFeatures\]: <https://developer.mozilla.org/docs/Web/API/Window/open#Window_features> "Window features - Window.open() | MDN"
[INFO] [stderr]      |                                                +                                                                      +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]     --> src/lib.rs:3901:10
[INFO] [stderr]      |
[INFO] [stderr] 3901 |     /// (https://tools.ietf.org/html/rfc7468#appendix-B).
[INFO] [stderr]      |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |
[INFO] [stderr]      = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]      |
[INFO] [stderr] 3901 |     /// (<https://tools.ietf.org/html/rfc7468#appendix-B>).
[INFO] [stderr]      |          +                                              +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]     --> src/lib.rs:3913:10
[INFO] [stderr]      |
[INFO] [stderr] 3913 |     /// (https://tools.ietf.org/html/rfc1421).
[INFO] [stderr]      |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |
[INFO] [stderr]      = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]      |
[INFO] [stderr] 3913 |     /// (<https://tools.ietf.org/html/rfc1421>).
[INFO] [stderr]      |          +                                   +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]     --> src/lib.rs:4612:51
[INFO] [stderr]      |
[INFO] [stderr] 4612 |     /// \[ChromiumDevelopersHowTosRunWithFlags\]: https://www.chromium.org/developers/how-tos/run-chromium-with-flags "Run Chromium with ...
[INFO] [stderr]      |                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |
[INFO] [stderr]      = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]      |
[INFO] [stderr] 4612 |     /// \[ChromiumDevelopersHowTosRunWithFlags\]: <https://www.chromium.org/developers/how-tos/run-chromium-with-flags> "Run Chromium with flags | The Chromium Projects"
[INFO] [stderr]      |                                                   +                                                                   +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]     --> src/lib.rs:4631:38
[INFO] [stderr]      |
[INFO] [stderr] 4631 |     /// \[ISO639LanguageCodesHtml\]: https://www.iso.org/iso-639-language-codes.html "ISO 639 | ISO"
[INFO] [stderr]      |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |
[INFO] [stderr]      = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]      |
[INFO] [stderr] 4631 |     /// \[ISO639LanguageCodesHtml\]: <https://www.iso.org/iso-639-language-codes.html> "ISO 639 | ISO"
[INFO] [stderr]      |                                      +                                               +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]     --> src/lib.rs:4633:35
[INFO] [stderr]      |
[INFO] [stderr] 4633 |     /// \[ISOStandard72482Html\]: https://www.iso.org/standard/72482.html "ISO 3166-1:2020 | ISO"
[INFO] [stderr]      |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |
[INFO] [stderr]      = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]      |
[INFO] [stderr] 4633 |     /// \[ISOStandard72482Html\]: <https://www.iso.org/standard/72482.html> "ISO 3166-1:2020 | ISO"
[INFO] [stderr]      |                                   +                                       +
[INFO] [stderr] 
[INFO] [stderr] warning: `webview2-sys` (lib doc) generated 20 warnings (run `cargo fix --lib -p webview2-sys` to apply 16 suggestions)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.99s
[INFO] [stderr]    Generated /opt/rustwide/target/x86_64-pc-windows-msvc/doc/webview2_sys/index.html
[INFO] running `Command { std: "docker" "inspect" "5fc5c2628c27a3ac35a572993bdcf836ab210e7bb1eb01bc07f91b319892fa32", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5fc5c2628c27a3ac35a572993bdcf836ab210e7bb1eb01bc07f91b319892fa32", kill_on_drop: false }`
[INFO] [stdout] 5fc5c2628c27a3ac35a572993bdcf836ab210e7bb1eb01bc07f91b319892fa32