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.
This commit is contained in:
Federico Mena Quintero 2023-02-14 11:38:36 -06:00
parent f45c424292
commit 9dae402dc5

View file

@ -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"