1
0
Fork 0
firefox/third_party/rust/fluent-syntax/benches/parser_iai.rs
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

15 lines
461 B
Rust

use fluent_syntax::parser::parse_runtime;
fn iai_parse_ctx_runtime() {
let files = &[
include_str!("contexts/browser/appmenu.ftl"),
include_str!("contexts/browser/browser.ftl"),
include_str!("contexts/browser/menubar.ftl"),
include_str!("contexts/preferences/preferences.ftl"),
];
for source in files {
parse_runtime(*source).expect("Parsing of the FTL failed.");
}
}
iai::main!(iai_parse_ctx_runtime);