Commit Graph

43 Commits

Author SHA1 Message Date
sleepycatcoding 7c80091488 frontend-utils: Initial recents reader/writer 2024-04-29 20:46:42 +02:00
sleepycatcoding 6203f99dd7 frontend-utils: Add integer parse methods 2024-04-27 01:04:40 +02:00
sleepycatcoding de003e12e7 frontend-utils: Add warning capable casting methods 2024-04-27 01:04:40 +02:00
sleepycatcoding c95d02339e frontend-utils: Drop 'static bound from push_key 2024-04-27 01:04:40 +02:00
Kamil Jarosz f30c04e8b4 frontend-utils: Get rid of deadlocks in AsyncExecutor
3d04971a was the first approach to eliminating deadlocks caused by
waking a task from another one. A task may also try to wake itself,
and that case was unfortunately not covered.

This patch rewrites the AsyncExecutor to use an async
channel for queuing tasks instead of a flag.
Using a flag required holding a lock for a task which was
problematic when a task needed to be awoken.
A flag also required doing a full search through tasks each poll,
which could be ineffective.
2024-04-24 01:02:23 +02:00
dependabot[bot] 09d17e722b build(deps): bump zip from 0.6.6 to 1.1.1
Bumps [zip](https://github.com/Pr0methean/zip) from 0.6.6 to 1.1.1.
- [Changelog](https://github.com/Pr0methean/zip/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Pr0methean/zip/commits)

---
updated-dependencies:
- dependency-name: zip
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-23 23:47:26 +02:00
dependabot[bot] c6bfaf8fae build(deps): bump the cargo-minor group with 4 updates
Bumps the cargo-minor group with 4 updates: [thiserror](https://github.com/dtolnay/thiserror), [fluent-templates](https://github.com/XAMPPRocky/fluent-templates), [toml_edit](https://github.com/toml-rs/toml) and [reqwest](https://github.com/seanmonstar/reqwest).


Updates `thiserror` from 1.0.58 to 1.0.59
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.58...1.0.59)

Updates `fluent-templates` from 0.9.2 to 0.9.4
- [Release notes](https://github.com/XAMPPRocky/fluent-templates/releases)
- [Changelog](https://github.com/XAMPPRocky/fluent-templates/blob/master/CHANGELOG.md)
- [Commits](https://github.com/XAMPPRocky/fluent-templates/compare/fluent-templates-v0.9.2...fluent-templates-v0.9.4)

Updates `toml_edit` from 0.22.9 to 0.22.12
- [Commits](https://github.com/toml-rs/toml/compare/v0.22.9...v0.22.12)

Updates `reqwest` from 0.12.3 to 0.12.4
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.12.3...v0.12.4)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: fluent-templates
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: toml_edit
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: reqwest
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-22 20:33:27 +02:00
sleepycatcoding 86b35145ec frontend-utils: Unify warning format strings; add warning enum
This also lays the groundwork for translated warnings.
2024-04-22 14:20:50 +03:00
Tom Schuster cdf587c5a5 avm2: Fix two bugs that caused wrong query parameters with navigateToURL 2024-04-19 18:56:25 +02:00
Nathan Adams 0df83ed917 frontend-utils: Don't spam 'Double polling'. It's meaningless. 2024-04-18 16:39:11 +02:00
Nathan Adams 5bffc33be8 frontend-utils: Don't use tokio tasks inside ruffle's executor 2024-04-17 22:36:42 +02:00
dependabot[bot] d3cc9d5fa5 build(deps): bump the cargo-minor group with 11 updates
Bumps the cargo-minor group with 11 updates:

| Package | From | To |
| --- | --- | --- |
| [anyhow](https://github.com/dtolnay/anyhow) | `1.0.81` | `1.0.82` |
| [async-channel](https://github.com/smol-rs/async-channel) | `2.2.0` | `2.2.1` |
| [chrono](https://github.com/chronotope/chrono) | `0.4.37` | `0.4.38` |
| [encoding_rs](https://github.com/hsivonen/encoding_rs) | `0.8.33` | `0.8.34` |
| [fluent-templates](https://github.com/XAMPPRocky/fluent-templates) | `0.9.1` | `0.9.2` |
| [either](https://github.com/rayon-rs/either) | `1.10.0` | `1.11.0` |
| [quote](https://github.com/dtolnay/quote) | `1.0.35` | `1.0.36` |
| [syn](https://github.com/dtolnay/syn) | `2.0.58` | `2.0.59` |
| [proc-macro2](https://github.com/dtolnay/proc-macro2) | `1.0.79` | `1.0.80` |
| [webbrowser](https://github.com/amodm/webbrowser-rs) | `0.8.14` | `0.8.15` |
| [libtest-mimic](https://github.com/LukasKalbertodt/libtest-mimic) | `0.7.0` | `0.7.2` |


Updates `anyhow` from 1.0.81 to 1.0.82
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.81...1.0.82)

Updates `async-channel` from 2.2.0 to 2.2.1
- [Release notes](https://github.com/smol-rs/async-channel/releases)
- [Changelog](https://github.com/smol-rs/async-channel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/smol-rs/async-channel/compare/v2.2.0...v2.2.1)

Updates `chrono` from 0.4.37 to 0.4.38
- [Release notes](https://github.com/chronotope/chrono/releases)
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md)
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.37...v0.4.38)

Updates `encoding_rs` from 0.8.33 to 0.8.34
- [Commits](https://github.com/hsivonen/encoding_rs/compare/v0.8.33...v0.8.34)

Updates `fluent-templates` from 0.9.1 to 0.9.2
- [Release notes](https://github.com/XAMPPRocky/fluent-templates/releases)
- [Changelog](https://github.com/XAMPPRocky/fluent-templates/blob/master/CHANGELOG.md)
- [Commits](https://github.com/XAMPPRocky/fluent-templates/compare/fluent-templates-v0.9.1...fluent-templates-v0.9.2)

Updates `either` from 1.10.0 to 1.11.0
- [Commits](https://github.com/rayon-rs/either/compare/1.10.0...1.11.0)

Updates `quote` from 1.0.35 to 1.0.36
- [Release notes](https://github.com/dtolnay/quote/releases)
- [Commits](https://github.com/dtolnay/quote/compare/1.0.35...1.0.36)

Updates `syn` from 2.0.58 to 2.0.59
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/2.0.58...2.0.59)

Updates `proc-macro2` from 1.0.79 to 1.0.80
- [Release notes](https://github.com/dtolnay/proc-macro2/releases)
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.79...1.0.80)

Updates `webbrowser` from 0.8.14 to 0.8.15
- [Release notes](https://github.com/amodm/webbrowser-rs/releases)
- [Changelog](https://github.com/amodm/webbrowser-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/amodm/webbrowser-rs/compare/v0.8.14...v0.8.15)

Updates `libtest-mimic` from 0.7.0 to 0.7.2
- [Release notes](https://github.com/LukasKalbertodt/libtest-mimic/releases)
- [Changelog](https://github.com/LukasKalbertodt/libtest-mimic/blob/master/CHANGELOG.md)
- [Commits](https://github.com/LukasKalbertodt/libtest-mimic/commits)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: async-channel
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: chrono
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: encoding_rs
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: fluent-templates
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: either
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cargo-minor
- dependency-name: quote
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: syn
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: proc-macro2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: webbrowser
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: libtest-mimic
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-15 23:34:51 +02:00
Nathan Adams eea6578b02 frontend-utils: Don't use tokio task budgeting for reqwest 2024-04-15 23:07:56 +02:00
Nathan Adams c10d8b97b0 frontend-utils: Fix flaky socket tests 2024-04-15 23:07:56 +02:00
Nathan Adams 7c59038164 frontend-utils: Use workspace version of tokio for tests 2024-04-15 23:07:56 +02:00
Nathan Adams d89ed716b7 frontend-utils: Use rustls instead of openssl 2024-04-15 23:07:56 +02:00
Nathan Adams 7079f38a9f frontend-utils: Switch to reqwest 2024-04-15 23:07:56 +02:00
Nathan Adams b1a8ed455f frontend-utils: Removed 'Desktop' from DesktopResponseBody, etc 2024-04-15 23:07:56 +02:00
Nathan Adams 5a9c5c5396 frontend-utils: Extracted out structs from inside ExternalNavigatorBackend::fetch 2024-04-15 23:07:56 +02:00
Nathan Adams 1bcc4d530a frontend-utils: Remove outdated comments 2024-04-11 23:14:44 +02:00
Nathan Adams f937945233 frontend-utils: Move ExternalNavigator from Desktop 2024-04-11 23:14:44 +02:00
Nathan Adams a3d468a568 frontend-utils: Move PlayingContent from Desktop 2024-04-11 23:14:44 +02:00
Nathan Adams df2a7285db frontend-utils: Rename WinitAsyncExecutor to just AsyncExecutor 2024-04-11 23:14:44 +02:00
Nathan Adams 29e515c672 frontend-utils: Move WinitAsyncExecutor from Desktop 2024-04-11 23:14:44 +02:00
Nathan Adams a188962306 frontend-utils: Move DiskStorageBackend from desktop 2024-04-11 23:14:44 +02:00
Daniel Jacobs 0f1cdf491d frontend-utils: Fix typo in README 2024-04-09 14:41:03 -04:00
sleepycatcoding 2cd915046e frontend-utils: Move bookmark writer from desktop 2024-04-09 18:54:11 +02:00
sleepycatcoding 54dcec7c60 frontend-utils: Move bookmark reader from desktop 2024-04-09 18:54:11 +02:00
sleepycatcoding 7c7f383595 frontend-utils: Move url_to_readable_name from desktop 2024-04-09 18:54:11 +02:00
Nathan Adams f737739c15 frontend-utils: Fix link in readme 2024-04-09 00:01:59 +02:00
Nathan Adams 57381f42b2 desktop: Fix opening faux-file URLs on windows 2024-04-09 00:01:59 +02:00
Nathan Adams 8597688ebb chore: Fix weird formatting that rustfmt isn't catching 2024-04-09 00:01:59 +02:00
Nathan Adams 023ae5d14a frontend-utils: Fixed tests 2024-04-09 00:01:59 +02:00
Nathan Adams bf7a88d63f frontend-utils: Support .ruf files 2024-04-09 00:01:59 +02:00
Nathan Adams 4632a14376 desktop: Allow opening folder based bundles 2024-04-09 00:01:59 +02:00
Nathan Adams 961bc0a7c5 frontend-utils: Add initial bundle infrastructure 2024-04-09 00:01:59 +02:00
Nathan Adams 906837c6a1 frontend-utils: Rename ParseResult to ParseDetails 2024-04-09 00:01:59 +02:00
sleepycatcoding 9f71206fcf frontend-utils: Add TableExt trait
This moves the logic previously found in BookmarkWriter's `with_underlying_table`
into a common trait to be reused by other writers.
2024-04-04 20:01:14 +02:00
Nathan Adams 19c914c5a8 chore: Use workspace version for url 2024-04-04 17:29:00 +02:00
Nathan Adams f18d890bea frontend-utils: Move Bookmark from desktop 2024-04-04 11:16:50 +02:00
Nathan Adams 2b4cec664a frontend-utils: Made ParseResult return a DocumentHolder directly 2024-04-04 11:16:50 +02:00
Nathan Adams 2bd28c9c1c frontend-utils: Add a DocumentHolder<T> helper type, use it for preferences and bookmarks 2024-04-04 11:16:50 +02:00
Nathan Adams 5ed6115dcc frontend-utils: Add new package and moved custom toml parsing utilities there 2024-04-04 11:16:50 +02:00