mirror of
https://github.com/servo/servo.git
synced 2025-07-26 08:40:24 +01:00
Auto merge of #29931 - mrobinson:update-uuid, r=jdm
Update uuid This is required to use the new version of gleam and update ipc-channels without duplicating the dependency in the future. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
commit
725f95e69a
8 changed files with 34 additions and 25 deletions
37
Cargo.lock
generated
37
Cargo.lock
generated
|
@ -435,7 +435,7 @@ dependencies = [
|
||||||
"log",
|
"log",
|
||||||
"servo_config",
|
"servo_config",
|
||||||
"servo_rand",
|
"servo_rand",
|
||||||
"uuid",
|
"uuid 1.3.4",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -1337,7 +1337,7 @@ dependencies = [
|
||||||
"servo_rand",
|
"servo_rand",
|
||||||
"servo_url",
|
"servo_url",
|
||||||
"time 0.1.45",
|
"time 0.1.45",
|
||||||
"uuid",
|
"uuid 1.3.4",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -1354,7 +1354,7 @@ dependencies = [
|
||||||
"serde",
|
"serde",
|
||||||
"servo_url",
|
"servo_url",
|
||||||
"time 0.1.45",
|
"time 0.1.45",
|
||||||
"uuid",
|
"uuid 1.3.4",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -2890,7 +2890,7 @@ dependencies = [
|
||||||
"rand 0.7.3",
|
"rand 0.7.3",
|
||||||
"serde",
|
"serde",
|
||||||
"tempfile",
|
"tempfile",
|
||||||
"uuid",
|
"uuid 0.8.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -3458,7 +3458,7 @@ dependencies = [
|
||||||
"time 0.1.45",
|
"time 0.1.45",
|
||||||
"tokio",
|
"tokio",
|
||||||
"url",
|
"url",
|
||||||
"uuid",
|
"uuid 1.3.4",
|
||||||
"void",
|
"void",
|
||||||
"webrender_api",
|
"webrender_api",
|
||||||
"xml5ever",
|
"xml5ever",
|
||||||
|
@ -3902,7 +3902,7 @@ dependencies = [
|
||||||
"tokio-test",
|
"tokio-test",
|
||||||
"tungstenite",
|
"tungstenite",
|
||||||
"url",
|
"url",
|
||||||
"uuid",
|
"uuid 1.3.4",
|
||||||
"webrender_api",
|
"webrender_api",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -3946,7 +3946,7 @@ dependencies = [
|
||||||
"std_test_override",
|
"std_test_override",
|
||||||
"time 0.1.45",
|
"time 0.1.45",
|
||||||
"url",
|
"url",
|
||||||
"uuid",
|
"uuid 1.3.4",
|
||||||
"webrender_api",
|
"webrender_api",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -5114,7 +5114,7 @@ dependencies = [
|
||||||
"unicode-segmentation",
|
"unicode-segmentation",
|
||||||
"url",
|
"url",
|
||||||
"utf-8",
|
"utf-8",
|
||||||
"uuid",
|
"uuid 1.3.4",
|
||||||
"webdriver",
|
"webdriver",
|
||||||
"webgpu",
|
"webgpu",
|
||||||
"webrender_api",
|
"webrender_api",
|
||||||
|
@ -5209,7 +5209,7 @@ dependencies = [
|
||||||
"std_test_override",
|
"std_test_override",
|
||||||
"style_traits",
|
"style_traits",
|
||||||
"time 0.1.45",
|
"time 0.1.45",
|
||||||
"uuid",
|
"uuid 1.3.4",
|
||||||
"webdriver",
|
"webdriver",
|
||||||
"webgpu",
|
"webgpu",
|
||||||
"webrender_api",
|
"webrender_api",
|
||||||
|
@ -5520,7 +5520,7 @@ version = "0.1.0"
|
||||||
source = "git+https://github.com/servo/media#f53ac0a03a1413362e15d39d1527466986d13c94"
|
source = "git+https://github.com/servo/media#f53ac0a03a1413362e15d39d1527466986d13c94"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"lazy_static",
|
"lazy_static",
|
||||||
"uuid",
|
"uuid 0.8.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -5537,7 +5537,7 @@ dependencies = [
|
||||||
"lazy_static",
|
"lazy_static",
|
||||||
"log",
|
"log",
|
||||||
"servo-media-streams",
|
"servo-media-streams",
|
||||||
"uuid",
|
"uuid 0.8.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -5625,7 +5625,7 @@ dependencies = [
|
||||||
"rand 0.7.3",
|
"rand 0.7.3",
|
||||||
"rand_core 0.5.1",
|
"rand_core 0.5.1",
|
||||||
"rand_isaac",
|
"rand_isaac",
|
||||||
"uuid",
|
"uuid 1.3.4",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -5646,7 +5646,7 @@ dependencies = [
|
||||||
"servo_rand",
|
"servo_rand",
|
||||||
"to_shmem",
|
"to_shmem",
|
||||||
"url",
|
"url",
|
||||||
"uuid",
|
"uuid 1.3.4",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -6662,6 +6662,15 @@ name = "uuid"
|
||||||
version = "0.8.2"
|
version = "0.8.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7"
|
checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7"
|
||||||
|
dependencies = [
|
||||||
|
"getrandom 0.2.8",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "uuid"
|
||||||
|
version = "1.3.4"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "0fa2982af2eec27de306107c027578ff7f423d65f7250e40ce0fea8f45248b81"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"getrandom 0.2.8",
|
"getrandom 0.2.8",
|
||||||
"serde",
|
"serde",
|
||||||
|
@ -6954,7 +6963,7 @@ dependencies = [
|
||||||
"servo_config",
|
"servo_config",
|
||||||
"servo_url",
|
"servo_url",
|
||||||
"style_traits",
|
"style_traits",
|
||||||
"uuid",
|
"uuid 1.3.4",
|
||||||
"webdriver",
|
"webdriver",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ tokio = "1"
|
||||||
unicode-bidi = "0.3.4"
|
unicode-bidi = "0.3.4"
|
||||||
unicode-script = "0.5"
|
unicode-script = "0.5"
|
||||||
url = "2.0"
|
url = "2.0"
|
||||||
uuid = { version = "0.8", features = ["v4"] }
|
uuid = { version = "1.3.4", features = ["v4"] }
|
||||||
webdriver = "0.48.0"
|
webdriver = "0.48.0"
|
||||||
winapi = "0.3"
|
winapi = "0.3"
|
||||||
xi-unicode = "0.1.0"
|
xi-unicode = "0.1.0"
|
||||||
|
|
|
@ -1683,7 +1683,7 @@ async fn http_network_fetch(
|
||||||
let request_id = context
|
let request_id = context
|
||||||
.devtools_chan
|
.devtools_chan
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.map(|_| uuid::Uuid::new_v4().to_simple().to_string());
|
.map(|_| uuid::Uuid::new_v4().simple().to_string());
|
||||||
|
|
||||||
if log_enabled!(log::Level::Info) {
|
if log_enabled!(log::Level::Info) {
|
||||||
info!("{:?} request for {}", request.method, url);
|
info!("{:?} request for {}", request.method, url);
|
||||||
|
|
|
@ -198,7 +198,7 @@ fn test_fetch_blob() {
|
||||||
true,
|
true,
|
||||||
"http://www.example.org".into(),
|
"http://www.example.org".into(),
|
||||||
);
|
);
|
||||||
let url = ServoUrl::parse(&format!("blob:{}{}", origin.as_str(), id.to_simple())).unwrap();
|
let url = ServoUrl::parse(&format!("blob:{}{}", origin.as_str(), id.simple())).unwrap();
|
||||||
|
|
||||||
let mut request = Request::new(
|
let mut request = Request::new(
|
||||||
url,
|
url,
|
||||||
|
|
|
@ -27,7 +27,7 @@ use std::cell::RefCell;
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
use std::u64;
|
use std::u64;
|
||||||
use uuid::{Builder, Uuid, Variant, Version};
|
use uuid::{Builder, Uuid};
|
||||||
|
|
||||||
// The shared RNG which may hold on to a file descriptor
|
// The shared RNG which may hold on to a file descriptor
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
|
@ -197,8 +197,5 @@ where
|
||||||
pub fn random_uuid() -> Uuid {
|
pub fn random_uuid() -> Uuid {
|
||||||
let mut bytes = [0; 16];
|
let mut bytes = [0; 16];
|
||||||
thread_rng().fill_bytes(&mut bytes);
|
thread_rng().fill_bytes(&mut bytes);
|
||||||
Builder::from_bytes(bytes)
|
Builder::from_random_bytes(bytes).into_uuid()
|
||||||
.set_variant(Variant::RFC4122)
|
|
||||||
.set_version(Version::Random)
|
|
||||||
.build()
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -447,7 +447,7 @@ impl BaseAudioContextMethods for BaseAudioContext {
|
||||||
if audio_data.len() > 0 {
|
if audio_data.len() > 0 {
|
||||||
// Step 2.
|
// Step 2.
|
||||||
// XXX detach array buffer.
|
// XXX detach array buffer.
|
||||||
let uuid = Uuid::new_v4().to_simple().to_string();
|
let uuid = Uuid::new_v4().simple().to_string();
|
||||||
let uuid_ = uuid.clone();
|
let uuid_ = uuid.clone();
|
||||||
self.decode_resolvers.borrow_mut().insert(
|
self.decode_resolvers.borrow_mut().insert(
|
||||||
uuid.clone(),
|
uuid.clone(),
|
||||||
|
|
|
@ -1078,7 +1078,7 @@ impl Node {
|
||||||
|
|
||||||
if rare_data.unique_id.is_none() {
|
if rare_data.unique_id.is_none() {
|
||||||
let id = UniqueId::new();
|
let id = UniqueId::new();
|
||||||
ScriptThread::save_node_id(id.borrow().to_simple().to_string());
|
ScriptThread::save_node_id(id.borrow().simple().to_string());
|
||||||
rare_data.unique_id = Some(id);
|
rare_data.unique_id = Some(id);
|
||||||
}
|
}
|
||||||
rare_data
|
rare_data
|
||||||
|
@ -1086,7 +1086,7 @@ impl Node {
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.borrow()
|
.borrow()
|
||||||
.to_simple()
|
.simple()
|
||||||
.to_string()
|
.to_string()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,9 @@ packages = [
|
||||||
|
|
||||||
# Duplicated by winit/surfman update.
|
# Duplicated by winit/surfman update.
|
||||||
"raw-window-handle",
|
"raw-window-handle",
|
||||||
|
|
||||||
|
# Temporarily duplicated until ipc-channels and gleam can be upgrded.
|
||||||
|
"uuid",
|
||||||
]
|
]
|
||||||
# Files that are ignored for all tidy and lint checks.
|
# Files that are ignored for all tidy and lint checks.
|
||||||
files = [
|
files = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue