Re:Mako – fast, production-grade web bundler based on Rust
by pshu on Tuesday July 02, 2024 @11:44AM
(#40857756)
what about this https://crates.io/crates/rust-embed
Re:Mako – fast, production-grade web bundler based on Rust
by cmrdporcupine on Tuesday July 02, 2024 @01:02PM
(#40858491)
Well yes I'm using something familiar, to embed the HTML and JS directly. But want to embed a webpacked entity, and have it run through a typescript compiler. But would like something driven from build.rs
Re:Mako – fast, production-grade web bundler based on Rust
by brabel on Tuesday July 02, 2024 @01:30PM
(#40858752)
I was looking if it provided a Rust crate as a lib, similar to how esbuild is just a Go lib (if you want to use it like that) but no luck.
Re:Mako – fast, production-grade web bundler based on Rust
by cmrdporcupine on Tuesday July 02, 2024 @04:11PM
(#40860024)
Found the same thing with swc. They have all this tooling, written in Rust, but no way to invoke it as a lib so it could be used inside a Cargo build.rs. Not easily at least. I made some progress then gave up.
To be clear: I have JS/HTML artifacts in my repo alongside Rust source. I want to bundle them then ship them inside a produced Rust binary, or at least with it. With one build step using Cargo.