mirror of
https://github.com/servo/servo.git
synced 2025-06-06 00:25:37 +00:00
* Add a profiling build profile in Cargo Signed-off-by: Delan Azabani <dazabani@igalia.com> * Redefine the profiling profile in terms of release Signed-off-by: Delan Azabani <dazabani@igalia.com> * Remove the other profiles added for testing Signed-off-by: Delan Azabani <dazabani@igalia.com> * Enable ThinLTO, like we do in production profiles Signed-off-by: Delan Azabani <dazabani@igalia.com> --------- Signed-off-by: Delan Azabani <dazabani@igalia.com>
205 lines
6.7 KiB
TOML
205 lines
6.7 KiB
TOML
[workspace]
|
|
resolver = "2"
|
|
members = [
|
|
"ports/servoshell",
|
|
"tests/unit/*",
|
|
"support/crown",
|
|
]
|
|
default-members = ["ports/servoshell"]
|
|
exclude = [".cargo"]
|
|
|
|
[workspace.package]
|
|
version = "0.0.1"
|
|
authors = ["The Servo Project Developers"]
|
|
license = "MPL-2.0"
|
|
edition = "2021"
|
|
publish = false
|
|
rust-version = "1.80.1"
|
|
|
|
[workspace.dependencies]
|
|
accountable-refcell = "0.2.0"
|
|
app_units = "0.7"
|
|
arrayvec = "0.7"
|
|
async-tungstenite = { version = "0.23", features = ["tokio-rustls-webpki-roots"] }
|
|
atomic_refcell = "0.1.13"
|
|
background_hang_monitor_api = { path = "components/shared/background_hang_monitor" }
|
|
backtrace = "0.3"
|
|
base = { path = "components/shared/base" }
|
|
base64 = "0.21.7"
|
|
bincode = "1"
|
|
bitflags = "2.6"
|
|
bluetooth_traits = { path = "components/shared/bluetooth" }
|
|
byteorder = "1.5"
|
|
canvas_traits = { path = "components/shared/canvas" }
|
|
cfg-if = "1.0.0"
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
compositing_traits = { path = "components/shared/compositing" }
|
|
content-security-policy = { version = "0.5", features = ["serde"] }
|
|
cookie = { package = "cookie", version = "0.18" }
|
|
crossbeam-channel = "0.5"
|
|
cssparser = { version = "0.34", features = ["serde"] }
|
|
darling = { version = "0.20", default-features = false }
|
|
data-url = "0.3"
|
|
devtools_traits = { path = "components/shared/devtools" }
|
|
embedder_traits = { path = "components/shared/embedder" }
|
|
encoding_rs = "0.8"
|
|
env_logger = "0.10"
|
|
euclid = "0.22"
|
|
fnv = "1.0"
|
|
freetype-sys = "0.20"
|
|
fxhash = "0.2"
|
|
getopts = "0.2.11"
|
|
fonts_traits = { path = "components/shared/fonts" }
|
|
gleam = "0.15"
|
|
glib = "0.19"
|
|
gstreamer = { version = "0.22", features = ["v1_18"] }
|
|
gstreamer-base = "0.22"
|
|
gstreamer-gl = "0.22"
|
|
gstreamer-gl-sys = "0.22"
|
|
gstreamer-sys = "0.22"
|
|
gstreamer-video = "0.22"
|
|
headers = "0.3"
|
|
hitrace = "0.1.4"
|
|
html5ever = "0.29"
|
|
http = "0.2"
|
|
hyper = "0.14"
|
|
hyper-rustls = { version = "0.24", default-features = false, features = ["acceptor", "http1", "http2", "logging", "tls12", "webpki-tokio"] }
|
|
hyper_serde = { path = "components/hyper_serde" }
|
|
icu_segmenter = "1.5.0"
|
|
image = "0.24"
|
|
imsz = "0.2"
|
|
indexmap = { version = "2.5.0", features = ["std"] }
|
|
ipc-channel = "0.18"
|
|
itertools = "0.13"
|
|
tikv-jemalloc-sys = "0.6.0"
|
|
tikv-jemallocator = "0.6.0"
|
|
keyboard-types = "0.7"
|
|
libc = "0.2"
|
|
log = "0.4"
|
|
mach2 = "0.4"
|
|
malloc_size_of = { git = "https://github.com/servo/stylo", branch = "2024-09-02", features = ["servo"] }
|
|
malloc_size_of_derive = "0.1"
|
|
mime = "0.3.13"
|
|
mime_guess = "2.0.5"
|
|
mozangle = "0.5.1"
|
|
net_traits = { path = "components/shared/net" }
|
|
nix = "0.29"
|
|
num-traits = "0.2"
|
|
num_cpus = "1.1.0"
|
|
parking_lot = "0.12"
|
|
percent-encoding = "2.3"
|
|
proc-macro2 = "1"
|
|
profile_traits = { path = "components/shared/profile" }
|
|
quote = "1"
|
|
rand = "0.8"
|
|
rand_core = "0.6"
|
|
rand_isaac = "0.3"
|
|
rayon = "1"
|
|
regex = "1.10"
|
|
rustls = { version = "0.21.12", features = ["dangerous_configuration"] }
|
|
rustls-pemfile = "1.0.4"
|
|
script_layout_interface = { path = "components/shared/script_layout" }
|
|
script_traits = { path = "components/shared/script" }
|
|
selectors = { git = "https://github.com/servo/stylo", branch = "2024-09-02" }
|
|
serde = "1.0.210"
|
|
serde_bytes = "0.11"
|
|
serde_json = "1.0"
|
|
servo-media = { git = "https://github.com/servo/media" }
|
|
servo-media-dummy = { git = "https://github.com/servo/media" }
|
|
servo-media-gstreamer = { git = "https://github.com/servo/media" }
|
|
servo_arc = { git = "https://github.com/servo/stylo", branch = "2024-09-02", features = ["servo"] }
|
|
servo_atoms = { git = "https://github.com/servo/stylo", branch = "2024-09-02" }
|
|
size_of_test = { git = "https://github.com/servo/stylo", branch = "2024-09-02" }
|
|
smallbitvec = "2.5.3"
|
|
smallvec = "1.13"
|
|
sparkle = "0.1.26"
|
|
string_cache = "0.8"
|
|
string_cache_codegen = "0.5"
|
|
style = { git = "https://github.com/servo/stylo", branch = "2024-09-02", features = ["servo"] }
|
|
style_config = { git = "https://github.com/servo/stylo", branch = "2024-09-02" }
|
|
style_dom = { git = "https://github.com/servo/stylo", package = "dom", branch = "2024-09-02" }
|
|
style_traits = { git = "https://github.com/servo/stylo", branch = "2024-09-02", features = ["servo"] }
|
|
surfman = { version = "0.9.8", features = ["chains"] }
|
|
syn = { version = "2", default-features = false, features = ["clone-impls", "derive", "parsing"] }
|
|
synstructure = "0.13"
|
|
thin-vec = "0.2.13"
|
|
time_03 = { package = "time", version = "0.3", features = ["large-dates", "local-offset", "serde"] }
|
|
to_shmem = { git = "https://github.com/servo/stylo", branch = "2024-09-02" }
|
|
tokio = "1"
|
|
tokio-rustls = "0.24"
|
|
tungstenite = "0.20"
|
|
tracing = "0.1.40"
|
|
tracing-subscriber = "0.3.18"
|
|
tracing-perfetto = "0.1.1"
|
|
uluru = "3.0"
|
|
unicode-bidi = "0.3.15"
|
|
unicode-properties = { version = "0.1.2", features = ["emoji"] }
|
|
unicode-script = "0.5"
|
|
unicode-segmentation = "1.12.0"
|
|
url = "2.5"
|
|
uuid = { version = "1.10.0", features = ["v4"] }
|
|
webdriver = "0.49.0"
|
|
webpki-roots = "0.25"
|
|
webrender = { git = "https://github.com/servo/webrender", branch = "0.65", features = ["capture"] }
|
|
webrender_api = { git = "https://github.com/servo/webrender", branch = "0.65" }
|
|
webrender_traits = { path = "components/shared/webrender" }
|
|
wgpu-core = { git = "https://github.com/gfx-rs/wgpu", rev = "0e352f5b3448236b6cbebcd146d0606b00cb3806" }
|
|
wgpu-types = { git = "https://github.com/gfx-rs/wgpu", rev = "0e352f5b3448236b6cbebcd146d0606b00cb3806" }
|
|
windows-sys = "0.59"
|
|
xi-unicode = "0.3.0"
|
|
xml5ever = "0.20"
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
debug-assertions = true
|
|
|
|
[profile.production]
|
|
inherits = "release"
|
|
debug-assertions = false
|
|
lto = "thin"
|
|
codegen-units = 1
|
|
|
|
[profile.production-stripped]
|
|
inherits = "production"
|
|
strip = true
|
|
|
|
[profile.profiling]
|
|
inherits = "release"
|
|
debug-assertions = false
|
|
debug = true
|
|
lto = "thin"
|
|
codegen-units = 1
|
|
|
|
[patch.crates-io]
|
|
# If you need to temporarily test Servo with a local fork of some upstream
|
|
# crate, add that here. Use the form:
|
|
#
|
|
# <crate> = { path = "/path/to/local/checkout" }
|
|
#
|
|
# Or for Stylo:
|
|
#
|
|
# [patch."https://github.com/servo/stylo"]
|
|
# derive_common = { path = "../stylo/derive_common" }
|
|
# dom = { path = "../stylo/dom" }
|
|
# malloc_size_of = { path = "../stylo/malloc_size_of" }
|
|
# selectors = { path = "../stylo/selectors" }
|
|
# servo_arc = { path = "../stylo/servo_arc" }
|
|
# servo_atoms = { path = "../stylo/atoms" }
|
|
# size_of_test = { path = "../stylo/size_of_test" }
|
|
# static_prefs = { path = "../stylo/style_static_prefs" }
|
|
# style = { path = "../stylo/style" }
|
|
# style_config = { path = "../stylo/style_config" }
|
|
# style_derive = { path = "../stylo/style_derive" }
|
|
# style_traits = { path = "../stylo/style_traits" }
|
|
# to_shmem = { path = "../stylo/to_shmem" }
|
|
#
|
|
# Or for WebRender:
|
|
#
|
|
# [patch."https://github.com/servo/webrender"]
|
|
# webrender = { path = "../webrender/webrender" }
|
|
# webrender_api = { path = "../webrender/webrender_api" }
|
|
#
|
|
# Or for another Git dependency:
|
|
#
|
|
# [patch."https://github.com/servo/<repository>"]
|
|
# <crate> = { path = "/path/to/local/checkout" }
|