X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_index%2FCargo.toml;h=e1cda5a9edda30f8b8d4a3154bbe7b467650c66f;hb=7fac5048c4a75f91874ac77a14257c88f3aa60b9;hp=d8ea5aa80b87abc73a62b545cbb278a280105523;hpb=46244f335b5262ef9bdc34cc564b4dea221948f6;p=rust.git diff --git a/compiler/rustc_index/Cargo.toml b/compiler/rustc_index/Cargo.toml index d8ea5aa80b8..e1cda5a9edd 100644 --- a/compiler/rustc_index/Cargo.toml +++ b/compiler/rustc_index/Cargo.toml @@ -7,6 +7,10 @@ edition = "2021" [dependencies] arrayvec = { version = "0.7", default-features = false } -rustc_serialize = { path = "../rustc_serialize" } -rustc_macros = { path = "../rustc_macros" } +rustc_serialize = { path = "../rustc_serialize", optional = true } +rustc_macros = { path = "../rustc_macros", optional = true } smallvec = "1.8.1" + +[features] +default = ["nightly"] +nightly = ["rustc_serialize", "rustc_macros"]