Closed Bug 1981745 Opened 9 months ago Closed 8 months ago

Make `in_gecko` Cargo feature optional in moz-central

Categories

(Firefox Build System :: General, enhancement)

enhancement

Tracking

(firefox143 fixed)

RESOLVED FIXED
143 Branch
Tracking Status
firefox143 --- fixed

People

(Reporter: bdk, Assigned: bdk)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxsync-])

Attachments

(1 file)

This feature makes it so we avoid linking our Rust libs/binaries against libsqlite (it doesn't link against either the vendored or system lib). This is what we want for a real build, since we eventually want to link against the libmozsqlite that exists in the install directory. However, this is not what we want for the tests and prevents them from being built.

Implementing this is an alternative to https://bugzilla.mozilla.org/show_bug.cgi?id=1958000, if we can make Cargo do the linking then we don't need to do anything special with mach rusttests.

This makes it possible to build Rust stuff that depends on rusqlite
and link to the vendored libsqlite. For example cargo test -p relevancy now works because of this. This will become more important
when we move the app-services code into moz-central.

Assignee: nobody → bdeankawamura
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: