mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-02-06 16:57:00 +00:00
Adds a Rust equivalent of the JavaScript `convertFileSrc` function to the PathResolver API, enabling file-to-URL conversion from Rust code. This is useful when processing file paths in Rust (e.g., parsing markdown with image references) and needing to convert them to URLs that the webview can load. The implementation: - Uses percent-encoding for URL-safe path encoding - Uses dunce::simplified to normalize Windows paths - Returns HTTP URLs on Windows/Android and custom protocol URLs elsewhere - Adds `use_https` parameter to support webviews with `use_https_scheme` enabled Closes #12022
144 B
144 B
| tauri |
|---|
| patch:feat |
Add use_https parameter to PathResolver::convert_file_src to support webviews with use_https_scheme enabled.