Closed Bug 1988761 Opened 7 months ago Closed 7 months ago

Remove app-services dependencies to simplify the monorepo migration

Categories

(Firefox Build System :: General, enhancement, P2)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bdk, Assigned: bdk)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxsync-])

There's a handful of dependencies that I think we can remove without losing much and would make the monorepo migration simpler:

  • caseless: Used to perform case-insensitive, unicode-aware, matching for places. I think we can just Rust's to_lowercase() nowadays. The docs their mention it handles unicode correctly.
  • colored: mockito optional subdependency. We can just lose the error messages colors.
  • humantime: This means we lose the timestamps on our CLI tools that print logs. I think we can fix this by updating these tools to use the new code in tracing_support and/or error_support.
  • more-asserts: used by the logins tests for assert_ge!. I think we can switch to using standard macros for this. If needed, we could define our own assert_ge!.
  • serde_test: used in the guid_support tests. I think we can either remove the test or implement it a different way.
  • ece? I'm not totally sure, but it looks like this dependency isn't used anymore.
Priority: -- → P2
Blocks: 1957999
No longer blocks: 1980203
Blocks: 1980203

Let's keep caseless for now. Mark has a patch to vet it and it's not clear if using to_lowercase() will change the behavior or not.

Also, rust-ece is still in use. See https://phabricator.services.mozilla.com/D265023 for a discussion on vetting it.

Authored by https://github.com/bendk
https://github.com/mozilla/application-services/commit/235ea58b0a41036e6ede87bb4128a5e6f2015a19
[main] Removing various dependencies that could be hard to move into moz-central. (#6950)

Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Flags: qe-verify+
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.