From 9dae402dc59cf92cc473c17768b04ca6e0cb7a7f Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Tue, 14 Feb 2023 11:38:36 -0600 Subject: [PATCH] selectors/Cargo.toml: Gate the_shmem/to_shmem_derive deps behind a new "shmem" feature ToShmem is of interest only to Servo, not to the public selectors crate. --- components/selectors/Cargo.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/selectors/Cargo.toml b/components/selectors/Cargo.toml index 3701b311d4b..08152f76ac9 100644 --- a/components/selectors/Cargo.toml +++ b/components/selectors/Cargo.toml @@ -16,6 +16,7 @@ path = "lib.rs" [features] bench = [] +shmem = [ "dep:to_shmem", "dep:to_shmem_derive" ] [dependencies] bitflags = "1.0" @@ -27,8 +28,8 @@ phf = "0.8" precomputed-hash = "0.1" servo_arc = { version = "0.1", path = "../servo_arc" } smallvec = "1.0" -to_shmem = { path = "../to_shmem" } -to_shmem_derive = { path = "../to_shmem_derive" } +to_shmem = { path = "../to_shmem", optional = true } +to_shmem_derive = { path = "../to_shmem_derive", optional = true } [build-dependencies] phf_codegen = "0.8"