diff options
author | Vika <vika@fireburn.ru> | 2022-10-07 19:53:04 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2022-10-07 19:53:04 +0300 |
commit | 9f7b903901acb0cd6ec9cb2146406a92ebf79cab (patch) | |
tree | c7a45f69d2d59621365494dc2d3657848390b61d /kittybox-rs/build.rs | |
parent | 6cb479acc61ab19f655cedd878283b214e352a3d (diff) | |
download | kittybox-9f7b903901acb0cd6ec9cb2146406a92ebf79cab.tar.zst |
templates: move static assets to the templates crate
It makes more sense to keep CSS near the templates, and the client-side JavaScript code too, since it depends on the DOM structure to work. Additionally, the overhead of `include_dir!()` is almost completely mitigated by the fact that this is a separate crate that isn't recompiled often. The linking stage, however, is still expected to take a little bit long. But I doubt it'd be longer than what it was before, since it's the same exact files that get linked into the app.
Diffstat (limited to 'kittybox-rs/build.rs')
-rw-r--r-- | kittybox-rs/build.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/kittybox-rs/build.rs b/kittybox-rs/build.rs index 3d4c62b..c639cf8 100644 --- a/kittybox-rs/build.rs +++ b/kittybox-rs/build.rs @@ -1,20 +1,6 @@ fn main() { use std::env; let out_dir = env::var("OUT_DIR").unwrap(); - println!("cargo:rerun-if-changed=javascript/"); - - if let Ok(exit) = std::process::Command::new("tsc") - .arg("--outDir") - .arg(std::path::Path::new(&out_dir).join("kittybox_js")) - .current_dir("javascript") - .spawn() - .unwrap() - .wait() - { - if !exit.success() { - std::process::exit(exit.code().unwrap_or(1)) - } - } println!("cargo:rerun-if-changed=companion-lite/"); let companion_out = std::path::Path::new(&out_dir).join("companion"); |