Skip to content

Commit d20a2ca

Browse files
committed
WIP - expect failures
1 parent 993ab57 commit d20a2ca

File tree

26 files changed

+57
-73
lines changed

26 files changed

+57
-73
lines changed

Cargo.lock

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

automation/emit_coverage_info.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ cargo +nightly run -p sync-test || true
5454
cargo +nightly run -p protobuf-gen -- tools/protobuf_files.toml || true
5555
cargo +nightly run -p systest || true
5656

57-
env RUSTFLAGS="--cfg __appsvc_ci_hack $RUSTFLAGS" cargo +nightly test --all --all-features --no-fail-fast || true
57+
env RUSTFLAGS="--cfg __appsvc_ci_sqlite_hack $RUSTFLAGS" cargo +nightly test --all --all-features --no-fail-fast || true

automation/tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,11 +277,11 @@ def print_rust_environment():
277277

278278
def calc_rust_env(package, features):
279279
if features == RustFeatures.ALL:
280-
# nss-sys's --features handling is broken. Workaround it by using a
281-
# custom --cfg. This shouldn't be this way!
280+
# Anything needing special support for sqlite might fail to link it.
281+
# `--all-features` in CI hits this - it shouldn't be this way!
282282
return {
283283
**os.environ,
284-
'RUSTFLAGS' : "--cfg __appsvc_ci_hack"
284+
'RUSTFLAGS' : "--cfg __appsvc_ci_sqlite_hack"
285285
}
286286
else:
287287
return None

components/as-ohttp-client/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ uniffi = "0.24.1"
1414
thiserror = "1.0"
1515
bhttp = "0.3"
1616
parking_lot = "0.12"
17-
rusqlite = { version = "0.29.0", features = ["bundled"] }
17+
rusqlite = "0.29.0"
1818

1919
[dependencies.ohttp]
2020
version = "0.4"
@@ -23,5 +23,8 @@ git = "https://github.com/martinthomson/ohttp.git"
2323
rev = "fc3f4c787d1f6a6a87bf5194f7152cc906b02973"
2424
features = ["client", "server", "app-svc", "external-sqlite"]
2525

26+
[dev-dependencies]
27+
rusqlite = { version = "0.29.0", features = ["bundled"] }
28+
2629
[build-dependencies]
2730
uniffi = { version = "0.24.1", features=["build"]}

components/autofill/Cargo.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,11 @@ thiserror = "1.0"
2525
types = { path = "../support/types" }
2626
uniffi = "0.24.1"
2727
url = { version = "2.2", features = ["serde"] }
28-
29-
[dependencies.rusqlite]
30-
version = "0.29.0"
31-
features = ["functions", "bundled", "serde_json", "unlock_notify"]
28+
rusqlite = { version = "0.29.0", features = ["functions"] }
3229

3330
[dev-dependencies]
3431
env_logger = { version = "0.7", default-features = false }
35-
libsqlite3-sys = "0.26.0"
32+
rusqlite = { version = "0.29.0", features = ["bundled"] }
3633

3734
[build-dependencies]
3835
nss_build_common = { path = "../support/rc_crypto/nss/nss_build_common" }

components/logins/Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,11 @@ sync-guid = { path = "../support/guid", features = ["rusqlite_support", "random"
2828
thiserror = "1.0"
2929
anyhow = "1.0"
3030
uniffi = "0.24.1"
31-
32-
[dependencies.rusqlite]
33-
version = "0.29.0"
34-
features = ["limits", "unlock_notify"]
31+
rusqlite = "0.29.0"
3532

3633
[build-dependencies]
3734
uniffi = { version = "0.24.1", features = ["build"] }
35+
rusqlite = { version = "0.29.0", features = ["bundled"] }
3836

3937
[dev-dependencies]
4038
more-asserts = "0.2"

components/places/Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,13 @@ sync-guid = { path = "../support/guid", features = ["rusqlite_support", "random"
3434
thiserror = "1.0"
3535
anyhow = "1.0"
3636
uniffi = "0.24.1"
37-
38-
[dependencies.rusqlite]
39-
version = "0.29.0"
40-
features = ["functions", "window", "bundled", "unlock_notify"]
37+
rusqlite = { version = "0.29.0", features = ["functions", "window"] }
4138

4239
[dev-dependencies]
4340
pretty_assertions = "0.6"
4441
tempfile = "3.1"
4542
env_logger = {version = "0.7", default-features = false}
43+
rusqlite = { version = "0.29.0", features = ["bundled"] }
4644
sql-support = { path = "../support/sql" }
4745

4846
[build-dependencies]

components/push/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ bincode = "1.2"
1313
lazy_static = "1.4"
1414
base64 = "0.21"
1515
log = "0.4"
16-
rusqlite = { version = "0.29.0", features = ["bundled", "unlock_notify"] }
16+
rusqlite = "0.29.0"
1717
url = "2.2"
1818
viaduct = { path = "../viaduct" }
1919
error-support = { path = "../support/error" }
@@ -24,6 +24,7 @@ uniffi = "0.24.1"
2424
types = { path = "../support/types" }
2525

2626
[build-dependencies]
27+
rusqlite = { version = "0.29.0", features = ["bundled"] }
2728
uniffi = { version = "0.24.1", features = ["build"] }
2829

2930
[dev-dependencies]

components/suggest/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interrupt-support = { path = "../support/interrupt" }
1414
once_cell = "1.5"
1515
parking_lot = ">=0.11,<=0.12"
1616
remote_settings = { path = "../remote_settings" }
17-
rusqlite = { version = "0.29.0", features = ["functions", "bundled"] }
17+
rusqlite = { version = "0.29.0", features = ["functions"] }
1818
serde = { version = "1", features = ["derive"] }
1919
serde_json = "1"
2020
sql-support = { path = "../support/sql" }
@@ -26,6 +26,7 @@ env_logger = { version = "0.7", default-features = false }
2626
expect-test = "1.4"
2727
hex = "0.4"
2828
rc_crypto = { path = "../support/rc_crypto" }
29+
rusqlite = { version = "0.29.0", features = ["bundled"] }
2930

3031
[build-dependencies]
3132
uniffi = { version = "0.24.1", features = ["build"] }

components/support/guid/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ license = "MPL-2.0"
66
edition = "2021"
77

88
[dependencies]
9-
rusqlite = { version = "0.29.0", optional = true, features = ["bundled"] }
9+
rusqlite = { version = "0.29.0", optional = true }
1010
serde = { version = "1", optional = true }
1111
rand = { version = "0.8", optional = true }
1212
base64 = { version = "0.21", optional = true }
@@ -20,3 +20,4 @@ default = ["serde_support"]
2020

2121
[dev-dependencies]
2222
serde_test = "1"
23+
rusqlite = { version = "0.29.0", features = ["bundled"] }

0 commit comments

Comments
 (0)