aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock2
-rw-r--r--Cargo.toml7
-rw-r--r--components/allocator/Cargo.toml10
-rw-r--r--components/background_hang_monitor/Cargo.toml10
-rw-r--r--components/bluetooth/Cargo.toml10
-rw-r--r--components/canvas/Cargo.toml10
-rw-r--r--components/compositing/Cargo.toml10
-rw-r--r--components/config/Cargo.toml10
-rw-r--r--components/config_plugins/Cargo.toml10
-rw-r--r--components/constellation/Cargo.toml10
-rw-r--r--components/deny_public_fields/Cargo.toml10
-rw-r--r--components/devtools/Cargo.toml10
-rw-r--r--components/dom_struct/Cargo.toml10
-rw-r--r--components/domobject_derive/Cargo.toml10
-rw-r--r--components/geometry/Cargo.toml10
-rw-r--r--components/gfx/Cargo.toml11
-rw-r--r--components/hyper_serde/Cargo.toml2
-rw-r--r--components/jstraceable_derive/Cargo.toml10
-rw-r--r--components/jstraceable_derive/lib.rs2
-rw-r--r--components/layout/Cargo.toml10
-rw-r--r--components/layout_2020/Cargo.toml10
-rw-r--r--components/layout_thread/Cargo.toml10
-rw-r--r--components/layout_thread_2020/Cargo.toml10
-rw-r--r--components/media/Cargo.toml10
-rw-r--r--components/metrics/Cargo.toml10
-rw-r--r--components/net/Cargo.toml10
-rw-r--r--components/pixels/Cargo.toml10
-rw-r--r--components/profile/Cargo.toml10
-rw-r--r--components/rand/Cargo.toml10
-rw-r--r--components/range/Cargo.toml10
-rw-r--r--components/script/Cargo.toml11
-rw-r--r--components/script/dom/htmlscriptelement.rs6
-rw-r--r--components/script/dom/macros.rs2
-rw-r--r--components/servo/Cargo.toml10
-rw-r--r--components/shared/background_hang_monitor/Cargo.toml10
-rw-r--r--components/shared/base/Cargo.toml10
-rw-r--r--components/shared/bluetooth/Cargo.toml10
-rw-r--r--components/shared/canvas/Cargo.toml10
-rw-r--r--components/shared/compositing/Cargo.toml10
-rw-r--r--components/shared/devtools/Cargo.toml10
-rw-r--r--components/shared/embedder/Cargo.toml10
-rw-r--r--components/shared/gfx/Cargo.toml10
-rw-r--r--components/shared/net/Cargo.toml10
-rw-r--r--components/shared/profile/Cargo.toml10
-rw-r--r--components/shared/script/Cargo.toml10
-rw-r--r--components/shared/script_layout/Cargo.toml10
-rw-r--r--components/shared/webrender/Cargo.toml10
-rw-r--r--components/url/Cargo.toml10
-rw-r--r--components/webdriver_server/Cargo.toml10
-rw-r--r--components/webgpu/Cargo.toml10
-rw-r--r--ports/jniapi/Cargo.toml10
-rw-r--r--ports/servoshell/Cargo.toml11
-rw-r--r--python/tidy/tidy.py2
-rw-r--r--support/crown/Cargo.toml9
-rw-r--r--support/rust-task_info/Cargo.toml11
-rw-r--r--tests/unit/deny_public_fields/Cargo.toml9
-rw-r--r--tests/unit/malloc_size_of/Cargo.toml9
-rw-r--r--tests/unit/metrics/Cargo.toml9
-rw-r--r--tests/unit/profile/Cargo.toml9
-rw-r--r--tests/unit/script/Cargo.toml9
60 files changed, 283 insertions, 268 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 93d19f6d368..ac379cfda68 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1113,7 +1113,7 @@ checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80"
[[package]]
name = "crown"
-version = "0.1.0"
+version = "0.0.1"
dependencies = [
"compiletest_rs",
"once_cell",
diff --git a/Cargo.toml b/Cargo.toml
index 04b02dfd27b..3a6a7963289 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -9,6 +9,13 @@ members = [
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
+
[workspace.dependencies]
accountable-refcell = "0.2.0"
app_units = "0.7"
diff --git a/components/allocator/Cargo.toml b/components/allocator/Cargo.toml
index e5a5bc67457..3c8ab902dc8 100644
--- a/components/allocator/Cargo.toml
+++ b/components/allocator/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "servo_allocator"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
path = "lib.rs"
diff --git a/components/background_hang_monitor/Cargo.toml b/components/background_hang_monitor/Cargo.toml
index d126fd3059a..ce3ca08d374 100644
--- a/components/background_hang_monitor/Cargo.toml
+++ b/components/background_hang_monitor/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "background_hang_monitor"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-publish = false
-edition = "2018"
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "background_hang_monitor"
diff --git a/components/bluetooth/Cargo.toml b/components/bluetooth/Cargo.toml
index 536a29e583f..863a46f8f1e 100644
--- a/components/bluetooth/Cargo.toml
+++ b/components/bluetooth/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "bluetooth"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "bluetooth"
diff --git a/components/canvas/Cargo.toml b/components/canvas/Cargo.toml
index 3a56aba1024..a0d2e41ffb5 100644
--- a/components/canvas/Cargo.toml
+++ b/components/canvas/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "canvas"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "canvas"
diff --git a/components/compositing/Cargo.toml b/components/compositing/Cargo.toml
index 3269f61ae02..c5004e9b26d 100644
--- a/components/compositing/Cargo.toml
+++ b/components/compositing/Cargo.toml
@@ -1,11 +1,11 @@
[package]
name = "compositing"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
build = "build.rs"
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "compositing"
diff --git a/components/config/Cargo.toml b/components/config/Cargo.toml
index ea92a1d99f8..223e1e08fba 100644
--- a/components/config/Cargo.toml
+++ b/components/config/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "servo_config"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "servo_config"
diff --git a/components/config_plugins/Cargo.toml b/components/config_plugins/Cargo.toml
index 79dd5614eef..cc0bc97a9be 100644
--- a/components/config_plugins/Cargo.toml
+++ b/components/config_plugins/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "servo_config_plugins"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "servo_config_plugins"
diff --git a/components/constellation/Cargo.toml b/components/constellation/Cargo.toml
index 851d207dfc2..edcf2293844 100644
--- a/components/constellation/Cargo.toml
+++ b/components/constellation/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "constellation"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "constellation"
diff --git a/components/deny_public_fields/Cargo.toml b/components/deny_public_fields/Cargo.toml
index 96365d752de..22e7ae8e513 100644
--- a/components/deny_public_fields/Cargo.toml
+++ b/components/deny_public_fields/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "deny_public_fields"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
path = "lib.rs"
diff --git a/components/devtools/Cargo.toml b/components/devtools/Cargo.toml
index 20aaced297f..4ed635416ab 100644
--- a/components/devtools/Cargo.toml
+++ b/components/devtools/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "devtools"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "devtools"
diff --git a/components/dom_struct/Cargo.toml b/components/dom_struct/Cargo.toml
index 38ba2d74d05..1babcae0f45 100644
--- a/components/dom_struct/Cargo.toml
+++ b/components/dom_struct/Cargo.toml
@@ -1,10 +1,10 @@
[package]
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
name = "dom_struct"
-edition = "2018"
-publish = false
-version = "0.0.1"
+edition.workspace = true
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+publish.workspace = true
[dependencies]
quote = { workspace = true }
diff --git a/components/domobject_derive/Cargo.toml b/components/domobject_derive/Cargo.toml
index 778bb39a17b..ebac6fb8730 100644
--- a/components/domobject_derive/Cargo.toml
+++ b/components/domobject_derive/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "domobject_derive"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+edition.workspace = true
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+publish.workspace = true
[lib]
path = "lib.rs"
diff --git a/components/geometry/Cargo.toml b/components/geometry/Cargo.toml
index a816b6f5278..be846b39d04 100644
--- a/components/geometry/Cargo.toml
+++ b/components/geometry/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "servo_geometry"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "servo_geometry"
diff --git a/components/gfx/Cargo.toml b/components/gfx/Cargo.toml
index a10ad8f0124..879fcbb29be 100644
--- a/components/gfx/Cargo.toml
+++ b/components/gfx/Cargo.toml
@@ -1,11 +1,10 @@
[package]
-
name = "gfx"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "gfx"
diff --git a/components/hyper_serde/Cargo.toml b/components/hyper_serde/Cargo.toml
index 566027fc279..6288066be13 100644
--- a/components/hyper_serde/Cargo.toml
+++ b/components/hyper_serde/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "hyper_serde"
version = "0.13.2"
-edition = "2018"
+edition.workspace = true
authors = ["The Servo Project Developers"]
description = "Serde support for hyper types."
license = "MIT OR Apache-2.0"
diff --git a/components/jstraceable_derive/Cargo.toml b/components/jstraceable_derive/Cargo.toml
index aebfffac062..a430aa0dc88 100644
--- a/components/jstraceable_derive/Cargo.toml
+++ b/components/jstraceable_derive/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "jstraceable_derive"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+edition.workspace = true
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+publish.workspace = true
[lib]
path = "lib.rs"
diff --git a/components/jstraceable_derive/lib.rs b/components/jstraceable_derive/lib.rs
index f58ec04ac09..34de9c13574 100644
--- a/components/jstraceable_derive/lib.rs
+++ b/components/jstraceable_derive/lib.rs
@@ -157,7 +157,7 @@ fn js_traceable_derive(s: synstructure::Structure) -> proc_macro2::TokenStream {
}
return None;
} else if attr.path().is_ident("custom_trace") {
- return Some(quote!(<crate::dom::bindings::trace::CustomTraceable>::trace(#binding, tracer);));
+ return Some(quote!(<dyn crate::dom::bindings::trace::CustomTraceable>::trace(#binding, tracer);));
}
}
Some(quote!(#binding.trace(tracer);))
diff --git a/components/layout/Cargo.toml b/components/layout/Cargo.toml
index 41eff374fb8..edd0a1a88dc 100644
--- a/components/layout/Cargo.toml
+++ b/components/layout/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "layout_2013"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "layout_2013"
diff --git a/components/layout_2020/Cargo.toml b/components/layout_2020/Cargo.toml
index 45283da0257..0ffa3aa3fb0 100644
--- a/components/layout_2020/Cargo.toml
+++ b/components/layout_2020/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "layout_2020"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "layout_2020"
diff --git a/components/layout_thread/Cargo.toml b/components/layout_thread/Cargo.toml
index a95c7f9b8aa..61cd1c2fb14 100644
--- a/components/layout_thread/Cargo.toml
+++ b/components/layout_thread/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "layout_thread_2013"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "layout_thread_2013"
diff --git a/components/layout_thread_2020/Cargo.toml b/components/layout_thread_2020/Cargo.toml
index 6b96f358b2a..e1bdd664895 100644
--- a/components/layout_thread_2020/Cargo.toml
+++ b/components/layout_thread_2020/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "layout_thread_2020"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "layout_thread_2020"
diff --git a/components/media/Cargo.toml b/components/media/Cargo.toml
index 9691d989312..21ce8db2201 100644
--- a/components/media/Cargo.toml
+++ b/components/media/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "media"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "media"
diff --git a/components/metrics/Cargo.toml b/components/metrics/Cargo.toml
index 888fabc2dd6..44864913a7a 100644
--- a/components/metrics/Cargo.toml
+++ b/components/metrics/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "metrics"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "metrics"
diff --git a/components/net/Cargo.toml b/components/net/Cargo.toml
index fb6c47209cb..2ca1b035e3a 100644
--- a/components/net/Cargo.toml
+++ b/components/net/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "net"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
autotests = false # Inhibit lookup for tests/*.rs without [[test]] sections
[lib]
diff --git a/components/pixels/Cargo.toml b/components/pixels/Cargo.toml
index 3330ca1a34c..0cd8e198c1d 100644
--- a/components/pixels/Cargo.toml
+++ b/components/pixels/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "pixels"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "pixels"
diff --git a/components/profile/Cargo.toml b/components/profile/Cargo.toml
index c12bb701000..e32e195822f 100644
--- a/components/profile/Cargo.toml
+++ b/components/profile/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "profile"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "profile"
diff --git a/components/rand/Cargo.toml b/components/rand/Cargo.toml
index b89846f34bb..8eb479cd612 100644
--- a/components/rand/Cargo.toml
+++ b/components/rand/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "servo_rand"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "servo_rand"
diff --git a/components/range/Cargo.toml b/components/range/Cargo.toml
index c674d5a799c..211d9945107 100644
--- a/components/range/Cargo.toml
+++ b/components/range/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "range"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "range"
diff --git a/components/script/Cargo.toml b/components/script/Cargo.toml
index 5cf7b65ba4d..f8a26d20790 100644
--- a/components/script/Cargo.toml
+++ b/components/script/Cargo.toml
@@ -1,12 +1,11 @@
[package]
name = "script"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
-
build = "build.rs"
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "script"
diff --git a/components/script/dom/htmlscriptelement.rs b/components/script/dom/htmlscriptelement.rs
index e0563f91bf3..f18c827fcfa 100644
--- a/components/script/dom/htmlscriptelement.rs
+++ b/components/script/dom/htmlscriptelement.rs
@@ -116,8 +116,12 @@ unsafe extern "C" fn off_thread_compilation_callback(
let cx = GlobalScope::get_cx();
let _ar = enter_realm(&*global);
- let compiled_script = FinishOffThreadStencil(*cx, token.0, ptr::null_mut());
+ // TODO: This is necessary because the rust compiler will otherwise try to move the *mut
+ // OffThreadToken directly, which isn't marked as Send. The correct fix is that this
+ // type is marked as Send in mozjs.
+ let used_token = token;
+ let compiled_script = FinishOffThreadStencil(*cx, used_token.0, ptr::null_mut());
let load = if compiled_script.is_null() {
Err(NoTrace(NetworkError::Internal(
"Off-thread compilation failed.".into(),
diff --git a/components/script/dom/macros.rs b/components/script/dom/macros.rs
index 97f06695265..fb57bd502a4 100644
--- a/components/script/dom/macros.rs
+++ b/components/script/dom/macros.rs
@@ -157,7 +157,7 @@ macro_rules! make_labels_getter(
#[macro_export]
macro_rules! make_enumerated_getter(
- ( $attr:ident, $htmlname:tt, $default:expr, $($choices: pat)|+) => (
+ ( $attr:ident, $htmlname:tt, $default:expr, $($choices:pat_param)|+) => (
fn $attr(&self) -> DOMString {
use $crate::dom::bindings::inheritance::Castable;
use $crate::dom::element::Element;
diff --git a/components/servo/Cargo.toml b/components/servo/Cargo.toml
index 18181c40e30..1ca1ee27562 100644
--- a/components/servo/Cargo.toml
+++ b/components/servo/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "libservo"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "servo"
diff --git a/components/shared/background_hang_monitor/Cargo.toml b/components/shared/background_hang_monitor/Cargo.toml
index c8d0685a377..1ac91d57a7c 100644
--- a/components/shared/background_hang_monitor/Cargo.toml
+++ b/components/shared/background_hang_monitor/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "background_hang_monitor_api"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "background_hang_monitor_api"
diff --git a/components/shared/base/Cargo.toml b/components/shared/base/Cargo.toml
index bdf4237bb27..1d1aa0bb701 100644
--- a/components/shared/base/Cargo.toml
+++ b/components/shared/base/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "base"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "base"
diff --git a/components/shared/bluetooth/Cargo.toml b/components/shared/bluetooth/Cargo.toml
index c83b15c4cdc..a2eb015b7e0 100644
--- a/components/shared/bluetooth/Cargo.toml
+++ b/components/shared/bluetooth/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "bluetooth_traits"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "bluetooth_traits"
diff --git a/components/shared/canvas/Cargo.toml b/components/shared/canvas/Cargo.toml
index dc8e9e510d4..663e831d419 100644
--- a/components/shared/canvas/Cargo.toml
+++ b/components/shared/canvas/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "canvas_traits"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "canvas_traits"
diff --git a/components/shared/compositing/Cargo.toml b/components/shared/compositing/Cargo.toml
index b454cae37fa..ca31ce4201f 100644
--- a/components/shared/compositing/Cargo.toml
+++ b/components/shared/compositing/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "compositing_traits"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "compositing_traits"
diff --git a/components/shared/devtools/Cargo.toml b/components/shared/devtools/Cargo.toml
index d68e3bbb612..cc54bbb2765 100644
--- a/components/shared/devtools/Cargo.toml
+++ b/components/shared/devtools/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "devtools_traits"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "devtools_traits"
diff --git a/components/shared/embedder/Cargo.toml b/components/shared/embedder/Cargo.toml
index f68e3b47d2c..ecef60b73f3 100644
--- a/components/shared/embedder/Cargo.toml
+++ b/components/shared/embedder/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "embedder_traits"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "embedder_traits"
diff --git a/components/shared/gfx/Cargo.toml b/components/shared/gfx/Cargo.toml
index 292cd58b92c..ffcbcc53c9f 100644
--- a/components/shared/gfx/Cargo.toml
+++ b/components/shared/gfx/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "gfx_traits"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "gfx_traits"
diff --git a/components/shared/net/Cargo.toml b/components/shared/net/Cargo.toml
index cf174100feb..ab1b1ba5e38 100644
--- a/components/shared/net/Cargo.toml
+++ b/components/shared/net/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "net_traits"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "net_traits"
diff --git a/components/shared/profile/Cargo.toml b/components/shared/profile/Cargo.toml
index 7e3650bed0e..718912a820d 100644
--- a/components/shared/profile/Cargo.toml
+++ b/components/shared/profile/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "profile_traits"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "profile_traits"
diff --git a/components/shared/script/Cargo.toml b/components/shared/script/Cargo.toml
index 6b3a2384d41..7624b542498 100644
--- a/components/shared/script/Cargo.toml
+++ b/components/shared/script/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "script_traits"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "script_traits"
diff --git a/components/shared/script_layout/Cargo.toml b/components/shared/script_layout/Cargo.toml
index 803a247bc2d..f4e310510ee 100644
--- a/components/shared/script_layout/Cargo.toml
+++ b/components/shared/script_layout/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "script_layout_interface"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "script_layout_interface"
diff --git a/components/shared/webrender/Cargo.toml b/components/shared/webrender/Cargo.toml
index 4031e3815cc..e2e2fec74e7 100644
--- a/components/shared/webrender/Cargo.toml
+++ b/components/shared/webrender/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "webrender_traits"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "webrender_traits"
diff --git a/components/url/Cargo.toml b/components/url/Cargo.toml
index 65c3fa75967..15274865620 100644
--- a/components/url/Cargo.toml
+++ b/components/url/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "servo_url"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "servo_url"
diff --git a/components/webdriver_server/Cargo.toml b/components/webdriver_server/Cargo.toml
index d0871e205bf..e21cca357d3 100644
--- a/components/webdriver_server/Cargo.toml
+++ b/components/webdriver_server/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "webdriver_server"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "webdriver_server"
diff --git a/components/webgpu/Cargo.toml b/components/webgpu/Cargo.toml
index 2cd37b08ed4..0d46cf23505 100644
--- a/components/webgpu/Cargo.toml
+++ b/components/webgpu/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "webgpu"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "webgpu"
diff --git a/ports/jniapi/Cargo.toml b/ports/jniapi/Cargo.toml
index b89fdb73f69..cd7ea52ae13 100644
--- a/ports/jniapi/Cargo.toml
+++ b/ports/jniapi/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "simpleservo_jniapi"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
build = "build.rs"
[lib]
diff --git a/ports/servoshell/Cargo.toml b/ports/servoshell/Cargo.toml
index 93a311dcd88..aa0ea6cf427 100644
--- a/ports/servoshell/Cargo.toml
+++ b/ports/servoshell/Cargo.toml
@@ -1,12 +1,11 @@
[package]
-
name = "servoshell"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2021"
build = "build.rs"
-publish = false
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "servoshell"
diff --git a/python/tidy/tidy.py b/python/tidy/tidy.py
index 2129cd05114..21179885148 100644
--- a/python/tidy/tidy.py
+++ b/python/tidy/tidy.py
@@ -465,6 +465,8 @@ def check_toml(file_name, lines):
yield (idx + 1, "found asterisk instead of minimum version number")
for license_line in licenses_toml:
ok_licensed |= (license_line in line)
+ if "license.workspace" in line:
+ ok_licensed = True
if not ok_licensed:
yield (0, ".toml file should contain a valid license.")
diff --git a/support/crown/Cargo.toml b/support/crown/Cargo.toml
index 37ccebca2b9..30eeaa6c16c 100644
--- a/support/crown/Cargo.toml
+++ b/support/crown/Cargo.toml
@@ -1,9 +1,10 @@
[package]
name = "crown"
-authors = ["The Servo Project Developers"]
-version = "0.1.0"
-edition = "2021"
-license = "MPL-2.0"
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
# Do not use workspace dependencies in this package!
# In etc/shell.nix, we filter Cargo.lock and build this package in isolation,
diff --git a/support/rust-task_info/Cargo.toml b/support/rust-task_info/Cargo.toml
index 2286cc5ccaa..91e75887020 100644
--- a/support/rust-task_info/Cargo.toml
+++ b/support/rust-task_info/Cargo.toml
@@ -1,11 +1,10 @@
[package]
-
name = "task_info"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
build = "build.rs"
[build-dependencies]
diff --git a/tests/unit/deny_public_fields/Cargo.toml b/tests/unit/deny_public_fields/Cargo.toml
index 1fab23f0f8a..5401a64d996 100644
--- a/tests/unit/deny_public_fields/Cargo.toml
+++ b/tests/unit/deny_public_fields/Cargo.toml
@@ -1,9 +1,10 @@
[package]
name = "deny_public_fields_tests"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
path = "lib.rs"
diff --git a/tests/unit/malloc_size_of/Cargo.toml b/tests/unit/malloc_size_of/Cargo.toml
index 50051762a65..dd9591ed889 100644
--- a/tests/unit/malloc_size_of/Cargo.toml
+++ b/tests/unit/malloc_size_of/Cargo.toml
@@ -1,9 +1,10 @@
[package]
name = "malloc_size_of_tests"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
path = "lib.rs"
diff --git a/tests/unit/metrics/Cargo.toml b/tests/unit/metrics/Cargo.toml
index 7f410d5701a..4310797207d 100644
--- a/tests/unit/metrics/Cargo.toml
+++ b/tests/unit/metrics/Cargo.toml
@@ -1,9 +1,10 @@
[package]
name = "metrics_tests"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "metrics_tests"
diff --git a/tests/unit/profile/Cargo.toml b/tests/unit/profile/Cargo.toml
index b423d43b65d..8c2c7c38d15 100644
--- a/tests/unit/profile/Cargo.toml
+++ b/tests/unit/profile/Cargo.toml
@@ -1,9 +1,10 @@
[package]
name = "profile_tests"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "profile_tests"
diff --git a/tests/unit/script/Cargo.toml b/tests/unit/script/Cargo.toml
index 2af8ced2109..01b9cacae5f 100644
--- a/tests/unit/script/Cargo.toml
+++ b/tests/unit/script/Cargo.toml
@@ -1,9 +1,10 @@
[package]
name = "script_tests"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
+version.workspace = true
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+publish.workspace = true
[lib]
name = "script_tests"