Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions build-scripts/component-common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,17 @@ ext.configureUniFFIBindgen = { crateName ->
// in moz-central we can use an `Exec` task because we can assume the bindgen tool has already been built.
generateUniffiBindings = tasks.register("generateUniffiBindings", Exec) {
def libraryPath = "${gradle.mozconfig.topobjdir}/dist/bin/libmegazord.so"
def megazordNative = "${gradle.mozconfig.topobjdir}/dist/host/bin/embedded-uniffi-bindgen"
def bindgen = gradle.ext.mozconfig.substs.EMBEDDED_UNIFFI_BINDGEN

workingDir project.rootDir
commandLine "${gradle.mozconfig.topobjdir}/dist/host/bin/embedded-uniffi-bindgen"
commandLine bindgen
args 'generate', '--library', libraryPath, "--crate", crateName, '--language', 'kotlin', '--out-dir', uniffiOutDir.get(), '--no-format'

outputs.dir uniffiOutDir
// Re-generate when the native megazord library is rebuilt
inputs.files megazordNative
// Re-generate when the native megazord library is rebuilt ...
inputs.files libraryPath
// Re-generate if our uniffi-bindgen tooling changes.
inputs.dir "${project.appServicesRootDir}/tools/embedded-uniffi-bindgen/"
inputs.files bindgen
}
} else {
// In app-services we can't use `Exec` because the megazord target isn't built yet, which we force via `doFirst`
Expand Down
4 changes: 4 additions & 0 deletions components/ads-client/src/http_cache/clock.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

pub trait Clock: Send + Sync + 'static {
fn now_epoch_seconds(&self) -> i64;
#[cfg(test)]
Expand Down
19 changes: 0 additions & 19 deletions components/support/nimbus-fml/moz.build

This file was deleted.

4 changes: 4 additions & 0 deletions components/viaduct/src/ohttp_client.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

use crate::ViaductError;
use parking_lot::Mutex;
use std::collections::HashMap;
Expand Down
1 change: 0 additions & 1 deletion examples/nimbus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ error-support = { path = "../../components/support/error", features = ["testing"
viaduct-hyper = { path = "../../components/support/viaduct-hyper" }
clap = { version = "4.2", default-features = false, features = ["std", "derive"] }
remote_settings = { path = "../../components/remote_settings" }

2 changes: 1 addition & 1 deletion tools/embedded-uniffi-bindgen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ license = "MPL-2.0"
name = "embedded-uniffi-bindgen"

[dependencies]
uniffi = { version = "0.29.0", features = ["cli"] }
uniffi = { version = "0.29.0", default-features = false, features = ["cli"] }
19 changes: 0 additions & 19 deletions tools/embedded-uniffi-bindgen/moz.build

This file was deleted.

15 changes: 9 additions & 6 deletions tools/import-app-services-to-central.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ export MOZ_AVOID_JJ_VCS=1
moz-phab patch --apply-to=here --skip-dependencies --no-branch D260481
# Bug 1981871 - Make `./mach rusttests` run some tests via cargo directly,
moz-phab patch --apply-to=here --skip-dependencies --no-branch D260480
# gradle
moz-phab patch --apply-to=here --skip-dependencies --no-branch D245762
# enable `--with-appservices-in-tree` config option by default
moz-phab patch --apply-to=here --skip-dependencies --no-branch D263599
# entire toolchain stack
moz-phab patch --apply-to=here --no-branch D266035
# unstub toolchain - depends on above but not stacked.
moz-phab patch --apply-to=here --skip-dependencies --no-branch D274371

# vet nimbus, rc_crypto, ece, etc
moz-phab patch --apply-to=here --skip-dependencies --no-branch D258722
# lint
Expand All @@ -52,7 +55,7 @@ rm -rf gradle
rm proguard-rules-consumer-jna.pro
rm install-nimbus-cli.sh
rm rust-toolchain.toml
rm -rf components/external
rm -rf components/external || true # `components/external` is going away - https://github.com/mozilla/application-services/pull/7103
rm -rf docs/shared
# need a story for these generated deps - bug 1963617
rm DEPENDENCIES.md megazords/full/android/dependency-licenses.xml megazords/full/DEPENDENCIES.md megazords/ios-rust/DEPENDENCIES.md megazords/ios-rust/focus/DEPENDENCIES.md
Expand Down Expand Up @@ -215,7 +218,7 @@ cargo update -p gkrust-shared
cargo update -p expect-test --precise 1.4.1
cargo update -p fragile --precise 2.0.0
cargo update -p mockito --precise 0.31.0
cargo update -p predicates --precise 3.0.4
cargo update -p predicates --precise 3.1.3
cargo update -p predicates-core --precise 1.0.6
cargo update -p predicates-tree --precise 1.0.9

Expand All @@ -227,8 +230,8 @@ sed -e 's|/dom/webgpu/tests/cts/vendor/target/|/dom/webgpu/tests/cts/vendor/targ
mv .gitignore.tmp .gitignore
# .hgignore needs the same, but with a leading `^` instead of `/`
sed -e 's|\^dom/webgpu/tests/cts/vendor/target/|^dom/webgpu/tests/cts/vendor/target/\
^services/app-services/**/target/\
^services/app-services/**/Cargo.lock|' \
^services/app-services/.*/target/\
^services/app-services/.*/Cargo.lock|' \
.hgignore > .hgignore.tmp
mv .hgignore.tmp .hgignore

Expand Down