mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Eliminate to_shmem dependency from servo_url (#35897)
Signed-off-by: Nico Burns <nico@nicoburns.com>
This commit is contained in:
parent
fd0e2125c6
commit
4611c8b0e1
4 changed files with 0 additions and 12 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -6880,7 +6880,6 @@ dependencies = [
|
|||
"servo_arc",
|
||||
"servo_malloc_size_of",
|
||||
"servo_rand",
|
||||
"to_shmem",
|
||||
"url",
|
||||
"uuid",
|
||||
]
|
||||
|
|
|
@ -144,7 +144,6 @@ thin-vec = "0.2.13"
|
|||
tikv-jemalloc-sys = "0.6.0"
|
||||
tikv-jemallocator = "0.6.0"
|
||||
time = { package = "time", version = "0.3", features = ["large-dates", "local-offset", "serde"] }
|
||||
to_shmem = { git = "https://github.com/servo/stylo", branch = "2025-03-01" }
|
||||
tokio = "1"
|
||||
tokio-rustls = { version = "0.26", default-features = false, features = ["logging"] }
|
||||
tower-service = "0.3"
|
||||
|
|
|
@ -17,6 +17,5 @@ malloc_size_of_derive = { workspace = true }
|
|||
serde = { workspace = true, features = ["derive"] }
|
||||
servo_arc = { workspace = true }
|
||||
servo_rand = { path = "../rand" }
|
||||
to_shmem = { workspace = true }
|
||||
url = { workspace = true, features = ["serde"] }
|
||||
uuid = { workspace = true, features = ["serde"] }
|
||||
|
|
|
@ -18,7 +18,6 @@ use std::path::Path;
|
|||
use malloc_size_of_derive::MallocSizeOf;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use servo_arc::Arc;
|
||||
use to_shmem::{SharedMemoryBuilder, ToShmem};
|
||||
pub use url::Host;
|
||||
use url::{Position, Url};
|
||||
|
||||
|
@ -38,14 +37,6 @@ pub enum UrlError {
|
|||
#[derive(Clone, Deserialize, Eq, Hash, MallocSizeOf, Ord, PartialEq, PartialOrd, Serialize)]
|
||||
pub struct ServoUrl(#[ignore_malloc_size_of = "Arc"] Arc<Url>);
|
||||
|
||||
impl ToShmem for ServoUrl {
|
||||
fn to_shmem(&self, _builder: &mut SharedMemoryBuilder) -> to_shmem::Result<Self> {
|
||||
unimplemented!(
|
||||
"If servo wants to share stylesheets across processes, ToShmem for Url must be implemented"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
impl ServoUrl {
|
||||
pub fn from_url(url: Url) -> Self {
|
||||
ServoUrl(Arc::new(url))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue