Add rustc_fluent_macro
to decouple fluent from rustc_macros
Fluent, with all the icu4x it brings in, takes quite some time to compile. `fluent_messages!` is only needed in further downstream rustc crates, but is blocking more upstream crates like `rustc_index`. By splitting it out, we allow `rustc_macros` to be compiled earlier, which speeds up `x check compiler` by about 5 seconds (and even more after the needless dependency on `serde_json` is removed from `rustc_data_structures`).
This commit is contained in:
parent
de96f3d873
commit
b5d3d970fa
81 changed files with 398 additions and 293 deletions
|
@ -11,6 +11,7 @@ fluent-syntax = "0.11"
|
|||
intl-memoizer = "0.5.1"
|
||||
rustc_baked_icu_data = { path = "../rustc_baked_icu_data" }
|
||||
rustc_data_structures = { path = "../rustc_data_structures" }
|
||||
rustc_fluent_macro = { path = "../rustc_fluent_macro" }
|
||||
rustc_serialize = { path = "../rustc_serialize" }
|
||||
rustc_span = { path = "../rustc_span" }
|
||||
rustc_macros = { path = "../rustc_macros" }
|
||||
|
|
|
@ -12,7 +12,8 @@ use fluent_bundle::FluentResource;
|
|||
use fluent_syntax::parser::ParserError;
|
||||
use icu_provider_adapters::fallback::{LocaleFallbackProvider, LocaleFallbacker};
|
||||
use rustc_data_structures::sync::Lrc;
|
||||
use rustc_macros::{fluent_messages, Decodable, Encodable};
|
||||
use rustc_fluent_macro::fluent_messages;
|
||||
use rustc_macros::{Decodable, Encodable};
|
||||
use rustc_span::Span;
|
||||
use std::borrow::Cow;
|
||||
use std::error::Error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue