Граф коммитов

14 Коммитов

Автор SHA1 Сообщение Дата
Tarik Eshaq 3ba1c7c2ef Fix up some internal dependences.
Takes the easy bits of #6129
2024-10-10 15:11:11 +00:00
Mark Hammond f538529f15 Update a number of crate package versions.
This was largely done manually to try and bring app-services and
mozilla-central closer together. With this patch we can vendor
into mozilla-central, including when most of our mobile crates are
built into libxul in the Android monorepo, oak.

This patch also re-forks find-places-db to avoid using a now orhpaned
crate which no mozilla staff had access to update.
2024-02-06 15:43:45 +00:00
Mark Hammond 9b9345bac0 Add some more commands to places-utils
* create-fake-visits will create a (possibly large) number of visits.
* delete-history will remove all history
* show-stats will show some stats for the places DB.
2023-06-27 15:14:06 +00:00
Mark Hammond 335bf75d09
Modernize sync15::error and other misc sync15 cleanups (#5121)
* Moves sync15::error to a simple enum in line with most other crates.
* Cleanups to Cargo.toml in sync15 and sync15-traits
* Remove old unused sync15::migrate_state
2022-09-09 08:56:30 +10:00
Emilio Cobos Álvarez 5ad5931c2d
Follow-up to #4933: Remove tempdir, use tempfile instead. (#4935)
tempdir is unmaintained and uses an outdated version of rand. We already
depend on tempfile.
2022-05-02 20:15:12 -07:00
Ben Dean-Kawamura db23ab40f6 Moving modules from sql-support to interrupt-support
The `SqlInterruptHandle` and `SqlInterruptScope` types and especially
the shutdown code feels like belongs in `interrupt-support` better than
`sql-support`.

Removed the `implement_into_ffi_by_pointer!(SqlInterruptHandle)` call.
I don't think we need that now that everything is UniFFIed.
2022-02-16 10:57:10 -05:00
Tarik Eshaq 68c10e0673
upgrades to rust 2021 [ci full] (#4822)
* upgrades to rust 2021

* Push rust minimum version to 1.57
2022-02-07 09:38:05 -08:00
Ben Dean-Kawamura 91d0bab23e Adding shutdown support to sql-support
When the user wants to shutdown the application, we should:
  - Interrupt all current `SqlInterruptScope`s
  - Interrupt all future `SqlInterruptScope`s when they're created.

The nice thing about this approach is that it didn't require invasive
changes in places to support it.  The main new requirement was we need
to have a way to get a `Weak<AsRef<SqlInterruptHandler>>` for each
database.  In order to support that, I needed to:

 - For the read/write and read-only connections: have `PlacesConnection`
   store an `SqlInterruptHandler` and implement `AsRef`.
 - For the sync connection: Added struct that wraps the
   `Mutex<PlacesDb>` and also stores a `SqlInterruptHandler` and
   implements `AsRef`.

Updated `places-utils` so that ctrl-c starts shutdown mode.
2022-02-02 10:01:30 -05:00
Mark Hammond 14e4d435c5
Update 'ctrlc' crate to avoid security issue in 'nix' dependency (#4548) 2021-10-13 09:21:53 +11:00
Mark Hammond ff6156416b
We rely on url version 2.2 and just got lucky that we had it (#4489) 2021-09-22 07:56:29 +10:00
Mark Hammond 02eadcd13b The places-utils example needs to initialize viaduct 2021-09-09 10:44:48 +10:00
lougeniac64 f14634bcc9 Removed duplicate timestamp code from places component 2020-09-21 15:00:30 -04:00
Thom Chiovoloni 6212c5bc18 Review feedback 2020-07-20 10:02:11 -07:00
Thom Chiovoloni 821c163ba3 Optimize project layout to avoid bad build performance 2020-07-20 09:56:36 -07:00