tinymist_assets/
lib.rs

1//! The assets for compiling tinymist.
2
3/// If this file is not found, please refer to <https://enter-tainer.github.io/typst-preview/dev.html> to build the frontend.
4#[cfg(feature = "typst-preview")]
5pub const TYPST_PREVIEW_HTML: &str = include_str!("typst-preview.html");
6/// A dummy HTML file to be used when the `typst-preview` feature is not
7/// enabled.
8#[cfg(not(feature = "typst-preview"))]
9pub const TYPST_PREVIEW_HTML: &str = "<html><body>Typst Preview needs to be built with the `embed-html` feature to work!</body></html>";
10
11/// If this file is not found, please runs `yarn extract:l10n:rs` to extract the
12/// localization data.
13#[cfg(feature = "l10n")]
14pub const L10N_DATA: &str = include_str!("tinymist-rt.toml");
15/// A dummy string to be used when the `l10n` feature is not enabled.
16#[cfg(not(feature = "l10n"))]
17pub const L10N_DATA: &str = "";