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"