Commit Graph

185 Commits

Author SHA1 Message Date
Mike Hommey
72df76cf20 Bug 1894830 - Upgrade fallible_collections to 0.4.9 for soundness fixes. r=supply-chain-reviewers
Because fallible_collections pulls hashbrown 0.13, we also upgrade
hashlink to 0.8.2, which updates to that version as well. Those were the
last two uses of hashbrown 0.12, so we can update the fake hashbrown
0.12 to 0.13.

We could skip the upgrade of hashlink, but that would leave us with two
fake hashbrowns, and we'd hit https://github.com/rust-lang/cargo/issues/13405

Differential Revision: https://phabricator.services.mozilla.com/D209317
2024-05-04 19:59:52 +00:00
Erich Gubler
f838b21416 Bug 1893057 - build: use libloading 0.8, fake 0.7 over 0.8 r=glandium,webgpu-reviewers,jimb
Differential Revision: https://phabricator.services.mozilla.com/D208799
2024-05-02 18:17:36 +00:00
Erich Gubler
37c1ce9b19 Bug 1893057 - build: swap indexmap 2.* façade and 1.* impl. with 1.* façade and 2.* impl. r=glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D208797
2024-05-02 18:17:35 +00:00
Erich Gubler
292ca7b861 Bug 1893057 - build: upgrade hashbrown 0.12.3 → 0.14.3 via fake build crate r=glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D208795
2024-05-02 18:17:34 +00:00
Mike Hommey
cf328a56ac Bug 1459764 - Build libraries in their FINAL_TARGET location rather than installing them during the build. r=firefox-build-system-reviewers,ahochheiden
Like bug 1255485, but for libraries.

Original patch by Chris Manchester.

Differential Revision: https://phabricator.services.mozilla.com/D63281
2024-04-30 23:29:46 +00:00
Alex Franchuk
ad23630d00 Bug 1882578 - Update the minidump-writer and minidump-common crates r=gsvelto,glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D207315
2024-04-22 13:42:39 +00:00
Sylvestre Ledru
397d15d90f Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio,webdriver-reviewers,glandium,whimboo
done with: rustfmt 1.7.0-stable (25ef9e3 2024-04-09)

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D207645
2024-04-18 08:50:15 +00:00
Ben Dean-Kawamura
2bb9af8156 Bug 1888683 - Upgrade UniFFI to 0.27.1. r=markh,janerik,glandium,supply-chain-reviewers,mach-reviewers,android-reviewers,kaya
Update:
  - UniFFI to 0.27.1
  - Glean to 59.0.0
  - App-services to a recent version

This removes the need for the goblin build hack, although we still have
duplicate versions of goblin since UniFFI is ahead of the moz-central
version.  I think that should be easy to resolve as a follow-up.

Updating uniffi-bindget-gecko-js based on upstream changes:
  - Clone objects before lowering them
    (https://github.com/mozilla/uniffi-rs/pull/1880)
  - Use u64 for the RustBuffer length and capacity field
    (https://github.com/mozilla/uniffi-rs/pull/1978)

I didn't implement the new callback interface VTable code.  Instead I
simply disabled the one fixture that tests it.  I'd rather implement
https://bugzilla.mozilla.org/show_bug.cgi?id=1888668 first, since that
will simplify the process a bunch. The only real-world use-case for
callbacks that I know of is Mark's logging changes, but that will
require implementing trait interfaces anyways so I'd rather wait than
write a bunch of C++ code that we then throw away.

Differential Revision: https://phabricator.services.mozilla.com/D206130
2024-04-10 17:23:00 +00:00
Cristian Tuns
4deecb1d98 Backed out 2 changesets (bug 1888683) for causing hazard bustages in UniFFIPointer.cpp CLOSED TREE
Backed out changeset 42fe954d2d47 (bug 1888683)
Backed out changeset 2403582c3c8d (bug 1888683)
2024-04-09 21:54:42 -04:00
Ben Dean-Kawamura
3c47b31e06 Bug 1888683 - Upgrade UniFFI to 0.27.1. r=markh,janerik,glandium,supply-chain-reviewers,mach-reviewers,android-reviewers,kaya
Update:
  - UniFFI to 0.27.1
  - Glean to 59.0.0
  - App-services to a recent version

This removes the need for the goblin build hack, although we still have
duplicate versions of goblin since UniFFI is ahead of the moz-central
version.  I think that should be easy to resolve as a follow-up.

Updating uniffi-bindget-gecko-js based on upstream changes:
  - Clone objects before lowering them
    (https://github.com/mozilla/uniffi-rs/pull/1880)
  - Use u64 for the RustBuffer length and capacity field
    (https://github.com/mozilla/uniffi-rs/pull/1978)

I didn't implement the new callback interface VTable code.  Instead I
simply disabled the one fixture that tests it.  I'd rather implement
https://bugzilla.mozilla.org/show_bug.cgi?id=1888668 first, since that
will simplify the process a bunch. The only real-world use-case for
callbacks that I know of is Mark's logging changes, but that will
require implementing trait interfaces anyways so I'd rather wait than
write a bunch of C++ code that we then throw away.

Differential Revision: https://phabricator.services.mozilla.com/D206130
2024-04-09 20:15:16 +00:00
Sandor Molnar
ecaff7c868 Backed out 5 changesets (bug 1890092, bug 1888683) for causing build bustages & crashes CLOSED TREE
Backed out changeset d43df75c14de (bug 1888683)
Backed out changeset b4267327c7dd (bug 1888683)
Backed out changeset 11892428e2dc (bug 1890092)
Backed out changeset 42598e432246 (bug 1888683)
Backed out changeset 372016bf3614 (bug 1888683)
2024-04-08 19:56:29 +03:00
Ben Dean-Kawamura
b3c3067e2b Bug 1888683 - Upgrade UniFFI to 0.27.1. r=janerik,glandium,supply-chain-reviewers,mach-reviewers,android-reviewers,kaya
Update:
  - UniFFI to 0.27.1
  - Glean to 59.0.0
  - App-services to a recent version

This removes the need for the goblin build hack, although we still have
duplicate versions of goblin since UniFFI is ahead of the moz-central
version.  I think that should be easy to resolve as a follow-up.

Updating uniffi-bindget-gecko-js based on upstream changes:
  - Clone objects before lowering them
    (https://github.com/mozilla/uniffi-rs/pull/1880)
  - Use u64 for the RustBuffer length and capacity field
    (https://github.com/mozilla/uniffi-rs/pull/1978)

I didn't implement the new callback interface VTable code.  Instead I
simply disabled the one fixture that tests it.  I'd rather implement
https://bugzilla.mozilla.org/show_bug.cgi?id=1888668 first, since that
will simplify the process a bunch. The only real-world use-case for
callbacks that I know of is Mark's logging changes, but that will
require implementing trait interfaces anyways so I'd rather wait than
write a bunch of C++ code that we then throw away.

Differential Revision: https://phabricator.services.mozilla.com/D206130
2024-04-08 15:07:50 +00:00
Alex Franchuk
e32971e70e Bug 1759175 pt1 - Repository integration r=glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D174916
2024-03-20 14:59:43 +00:00
Nipun Shukla
b3eba1dc18 Bug 1881567 - Added Rust application to read and launch Firefox upon receiving native messages r=mhughes,nrishel,glandium,gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D202467
2024-03-13 19:01:05 +00:00
Norisz Fay
81e68bade9 Backed out 10 changesets (bug 1759175) for causing Bp build bustage CLOSED TREE
Backed out changeset 3caff3bcb5f3 (bug 1759175)
Backed out changeset b0cbac1ae1c0 (bug 1759175)
Backed out changeset 8ab327d18125 (bug 1759175)
Backed out changeset 94b619f7ae5a (bug 1759175)
Backed out changeset 4e16215b14af (bug 1759175)
Backed out changeset e994c818703c (bug 1759175)
Backed out changeset caf59b01fb96 (bug 1759175)
Backed out changeset 4a525dace3cf (bug 1759175)
Backed out changeset ac608a17d8c7 (bug 1759175)
Backed out changeset 2e605dcdcf83 (bug 1759175)
2024-03-08 02:08:29 +02:00
Alex Franchuk
07a835d684 Bug 1759175 pt1 - Repository integration r=glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D174916
2024-03-07 20:59:12 +00:00
Norisz Fay
d8bbf7786d Backed out 10 changesets (bug 1759175) for causing build bustage CLOSED TREE
Backed out changeset 3f7b865cce56 (bug 1759175)
Backed out changeset 3ce2c92bdee2 (bug 1759175)
Backed out changeset e8b6ce00b503 (bug 1759175)
Backed out changeset 6736f34d5642 (bug 1759175)
Backed out changeset 5894c03ccb0e (bug 1759175)
Backed out changeset 28ee74b69b66 (bug 1759175)
Backed out changeset 027be772e29a (bug 1759175)
Backed out changeset 35350f3c3b68 (bug 1759175)
Backed out changeset 754fe9369002 (bug 1759175)
Backed out changeset f2aa40301a39 (bug 1759175)
2024-03-07 22:44:32 +02:00
Alex Franchuk
d8fb619e98 Bug 1759175 pt1 - Repository integration r=glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D174916
2024-03-07 19:47:08 +00:00
Narcis Beleuzu
6e67a7e84c Backed out 10 changesets (bug 1759175) for build bustages . CLOSED TREE
Backed out changeset dce52d34bd91 (bug 1759175)
Backed out changeset 51ee5a685214 (bug 1759175)
Backed out changeset 021559ebc1e7 (bug 1759175)
Backed out changeset 6888a063a0c3 (bug 1759175)
Backed out changeset 84b443488fb5 (bug 1759175)
Backed out changeset f39525560fd6 (bug 1759175)
Backed out changeset 6b0d3b266dea (bug 1759175)
Backed out changeset 5d33c3516218 (bug 1759175)
Backed out changeset b50fd0148c7f (bug 1759175)
Backed out changeset 7cb85f06517a (bug 1759175)
2024-03-07 18:16:59 +02:00
Alex Franchuk
5390c33a4e Bug 1759175 pt1 - Repository integration r=glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D174916
2024-03-07 14:03:53 +00:00
Cristina Horotan
f3c06c8f30 Backed out 10 changesets (bug 1759175) for causing build bustages cocoabind related. CLOSED TREE
Backed out changeset 3d8279b62b0e (bug 1759175)
Backed out changeset fa1545689826 (bug 1759175)
Backed out changeset 00b28a515e8d (bug 1759175)
Backed out changeset 40dfe0d499df (bug 1759175)
Backed out changeset acde6c99092c (bug 1759175)
Backed out changeset e6d83c21eadc (bug 1759175)
Backed out changeset b34e196120aa (bug 1759175)
Backed out changeset 45a2a256b9d4 (bug 1759175)
Backed out changeset 4aba1755a610 (bug 1759175)
Backed out changeset 68d2d1abab21 (bug 1759175)
2024-02-26 23:35:36 +02:00
Alex Franchuk
4cc22c966e Bug 1759175 pt1 - Repository integration r=glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D174916
2024-02-26 19:12:33 +00:00
Mike Hommey
85d4984e64 Bug 1773509 - Add an in-tree windows crate that wraps a bootstrapped windows-rs. r=firefox-build-system-reviewers,supply-chain-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D200104
2024-02-06 14:57:53 +00:00
Emilio Cobos Álvarez
f8f7b2d4a7 Bug 1878575 - Remove build/rust/bindgen-0.64. r=nical
The only use of it is nss-gk-api which can work with 0.69 as per its
dependency definition.

It seems cargo is removing this package, then updating bindgen (even
though it shouldn't), but this works around the issue and is harmless.

Differential Revision: https://phabricator.services.mozilla.com/D200676
2024-02-05 15:03:52 +00:00
Kershaw Chang
4a12f611f8 Bug 1877942 - neqo v0.7.0, r=necko-reviewers,glandium,supply-chain-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D200461
2024-02-02 21:17:42 +00:00
Mike Hommey
fb2aa57149 Bug 1874035 - Add custom Debug derives for bitflags with custom derives. r=gfx-reviewers,emilio,ErichDonGubler
bitflags 2 has a shortcoming with using custom derives: you can't use
custom derives (for e.g. MallocSizeOf) at the same time as bitflags's for
the derives it supports.
See https://github.com/bitflags/bitflags/issues/395

Differential Revision: https://phabricator.services.mozilla.com/D199941
2024-01-30 21:13:29 +00:00
Mike Hommey
dbef0da439 Bug 1875006 - Upgrade memmap2 to 0.9.3. r=emilio,supply-chain-reviewers,profiler-reviewers,mstange
Differential Revision: https://phabricator.services.mozilla.com/D198765
2024-01-24 20:33:52 +00:00
Iulian Moraru
67904b0b53 Backed out changeset aee727a67f92 (bug 1875006) for causing map related build bustages. CLOSED TREE 2024-01-24 02:35:12 +02:00
Mike Hommey
a0bacae980 Bug 1875006 - Upgrade memmap2 to 0.9.3. r=emilio,supply-chain-reviewers,profiler-reviewers,mstange
Differential Revision: https://phabricator.services.mozilla.com/D198765
2024-01-24 00:09:06 +00:00
Mike Hommey
e5b5a9162c Bug 1874999 - Update parking_lot_core to 0.9.9. r=emilio,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D198762
2024-01-23 23:54:36 +00:00
Mike Hommey
87f9414fa0 Bug 1874998 - Update tempfile to 3.9.0. r=emilio,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D198761
2024-01-23 23:54:36 +00:00
Mike Hommey
3075ad0c99 Bug 1874809 - Upgrade windows-sys to 0.52. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D198653
2024-01-23 22:54:10 +00:00
Mike Hommey
d377c048b3 Bug 1874799 - Upgrade midir to latest from our fork. r=gsvelto,supply-chain-reviewers
This upgrades alsa to 0.8.1 and bitflags to 2.0

Differential Revision: https://phabricator.services.mozilla.com/D198644
2024-01-16 21:16:00 +00:00
Mike Hommey
14b8d8e846 Bug 1873821 - Remove unused bindgen 0.66 patch. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D198126
2024-01-10 22:19:07 +00:00
Gabriele Svelto
f86c830487 Bug 1864000 - Update minidump-writer to version 0.8.3 r=glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D194529
2023-11-30 17:01:18 +00:00
Andreas Pehrson
6bb8230ea7 Bug 1670633 - Update bindgen to 0.69.1 and coreaudio-sys to 0.2.14. r=supply-chain-reviewers,glandium
This sets the stage for an update to cubeb-coreaudio-rs.

Differential Revision: https://phabricator.services.mozilla.com/D193899
2023-11-24 11:33:56 +00:00
Cristian Tuns
b54e9ee57c Backed out 3 changesets (bug 1670633, bug 1866014) for causing build bustages in MediaEngineWebRTCAudio.cpp CLOSED TREE
Backed out changeset c0d256e9cde9 (bug 1866014)
Backed out changeset e7d101bd73d9 (bug 1670633)
Backed out changeset a849a8e4bd37 (bug 1670633)
2023-11-24 06:18:42 -05:00
Andreas Pehrson
e94273f845 Bug 1670633 - Update bindgen to 0.69.1 and coreaudio-sys to 0.2.14. r=supply-chain-reviewers,glandium
This sets the stage for an update to cubeb-coreaudio-rs.

Differential Revision: https://phabricator.services.mozilla.com/D193899
2023-11-24 08:22:32 +00:00
Stanca Serban
41f7486e5f Backed out 2 changesets (bug 1670633) as requested for causing Bug 1866014. CLOSED TREE
Backed out changeset be8e9a8eaa80 (bug 1670633)
Backed out changeset bace8b9c91dc (bug 1670633)
2023-11-23 20:03:07 +02:00
Andreas Pehrson
cb07191302 Bug 1670633 - Update bindgen to 0.69.1 and coreaudio-sys to 0.2.14. r=supply-chain-reviewers,glandium
This sets the stage for an update to cubeb-coreaudio-rs.

Differential Revision: https://phabricator.services.mozilla.com/D193899
2023-11-21 08:03:45 +00:00
Ray Kraesig
c8d62f7b85 Bug 1858739 - update tokio to 1.29.1 r=glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D190838
2023-10-16 22:26:00 +00:00
Mike Hommey
879ba000bb Bug 1855619 - Upgrade clap to 4.4.5. r=supply-chain-reviewers,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D189453
2023-10-04 20:19:26 +00:00
Mike Hommey
83f4904aca Bug 1855631 - Upgrade bindgen to 0.68.1. r=emilio,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D189457
2023-09-29 00:06:10 +00:00
Mike Hommey
e83b1f7beb Bug 1854025 - Update tempfile to 3.8.0. r=emilio,supply-chain-reviewers,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D188654
2023-09-27 23:42:35 +00:00
Mike Hommey
1ce83241da Bug 1852209 - Switch to bitflags 2 r=supply-chain-reviewers,emilio
We currently are using a fake bitflags 2, derived from bitflags 1. More
and more crates are using it, and we're at a sweet spot where flipping
things around makes sense: using a fake bitflags 1, derived from
bitflags 2.

Differential Revision: https://phabricator.services.mozilla.com/D189316
2023-09-27 19:56:17 +00:00
Cosmin Sabou
80668b020f Backed out 3 changesets (bug 1854025) for causing build bustages.
Backed out changeset dd3a03791ed7 (bug 1854025)
Backed out changeset b9136831bc35 (bug 1854025)
Backed out changeset 08a18581bb77 (bug 1854025)
2023-09-26 00:31:42 +03:00
Mike Hommey
1e09918ec1 Bug 1854025 - Update tempfile to 3.8.0. r=emilio,supply-chain-reviewers,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D188654
2023-09-25 20:47:25 +00:00
Mike Hommey
390281e651 Bug 1854025 - Vendor rustix. r=emilio,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D188653
2023-09-25 20:47:22 +00:00
Mike Hommey
f0ee4a497a Bug 1853084 - Upgrade mio to 0.8.8. r=emilio,supply-chain-reviewers
Now that windows-sys is vendored, we can upgrade mio to a version that
uses it.

Differential Revision: https://phabricator.services.mozilla.com/D188154
2023-09-18 19:55:21 +00:00
Mike Hommey
ace07835f3 Bug 1853084 - Avoid trying to link all the windows SDK DLLs. r=emilio
By attaching the #[link] to the function instead of the extern block,
rustc avoids adding libs that aren't used to the linker command line.

Differential Revision: https://phabricator.services.mozilla.com/D188312
2023-09-18 19:55:17 +00:00