Bug 1591736 - Fix AddonManagerWebAPI::IsAPIEnabled in out-of-process iframes r=mixedpuppy
[gecko.git] / Cargo.toml
blobc26dbb2ea55727f5412cb93111b7ea3a577d260a
1 [workspace]
3 # These are the "root" crates, which we build and test as top-level targets.
4 # Their transitive dependencies and dev-dependencies are included automatically
5 # and do not need to be listed here. Their external dependencies are vendored
6 # into `third_party/rust` by `mach vendor rust`.
7 members = [
8   "js/src",
9   "js/src/rust",
10   "js/src/wasm/cranelift",
11   "js/rust",
12   "js/src/frontend/binast", # Code generator.
13   "security/manager/ssl/osclientcerts",
14   "testing/geckodriver",
15   "toolkit/crashreporter/rust",
16   "toolkit/library/gtest/rust",
17   "toolkit/library/rust/",
20 # Excluded crates may be built as dependencies, but won't be considered members
21 # of the workspace and their dev-dependencies won't be included.
22 exclude = [
23   # Exclude third-party code vendored into mozilla-central.
24   "servo",
25   "third_party/rust",
27   # Excluded because these crates have their own Cargo workspaces so they can't
28   # be included in the top-level one.
29   "gfx/wr",
30   "media/audioipc",
31   "media/cubeb-rs",
33   # Excluded because they are used only as dependencies, not top-level targets,
34   # so we don't need to vendor their dev-dependencies.
35   "dom/webauthn/u2f-hid-rs",
36   "gfx/webrender_bindings",
37   "media/mp4parse-rust/mp4parse",
38   "media/mp4parse-rust/mp4parse_capi",
39   "media/mp4parse-rust/mp4parse_fallible",
40   "xpcom/rust/gkrust_utils",
41   "tools/fuzzing/rust",
44 # Explicitly specify what our profiles use.  The opt-level setting here is
45 # a total fiction; see the setup of MOZ_RUST_DEFAULT_FLAGS for what the
46 # opt-level setting will be as a result of various other configure flags.
47 [profile.dev]
48 opt-level = 1
49 rpath = false
50 lto = false
51 debug-assertions = true
52 panic = "abort"
54 [profile.release]
55 opt-level = 2
56 rpath = false
57 debug-assertions = false
58 panic = "abort"
59 codegen-units = 1
61 [patch.crates-io]
62 libudev-sys = { path = "dom/webauthn/libudev-sys" }
63 packed_simd = { git = "https://github.com/hsivonen/packed_simd", branch = "rust_1_32" }
65 [patch.crates-io.cranelift-codegen]
66 git = "https://github.com/CraneStation/Cranelift"
67 rev = "da179e4fd83d49b7ad6c9f286b1ea04d4f64907e"
69 [patch.crates-io.cranelift-wasm]
70 git = "https://github.com/CraneStation/Cranelift"
71 rev = "da179e4fd83d49b7ad6c9f286b1ea04d4f64907e"
73 [patch.crates-io.coreaudio-sys]
74 path = "third_party/rust/coreaudio-sys"