This website requires JavaScript.
CODE
0x495fab29
Explore
Sign in
oss
/
starmelon
Watch
1
Star
0
Fork
You've already forked starmelon
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
Actions
0a5e25e4f0
starmelon
/
examples
/
single-page
/
starmelon-release
1 line
39 B
Text
Raw
Normal View
History
Unescape
Escape
refactor: share checksum rebuild logic Move some of the caching logic (source file checksum) out of Starmelon into a shared infra crate. I have 4 similar tooling use cases for working with elm projects in Rust. 1. Starmelon needs to create a modified copy of an existing elm application with extra dependencies and source directories. The extension elm application points to the source directories of the parent 2. Elm reactor needs to compile an elm module into javascript with caching. 3. SQL reactor needs to generate an elm application for each database, generate elm source code and compile that elm code with caching. It uses Starmelon to run derive macros written in Elm. 4. AstridLabs needs to create a heavily modified copy of an existing elm application with tons of generated code. It uses Starmelon to run derive macros written in Elm. For 3 and 4 I could speed up the code generation step by using part of starmelon as library. A proc-macro could include the Elm derive macro javascript at crate build time and reuse the same v8 isolate over and over for every web request. My plan for 1,2,3,4 has a lot of shared functionality. I am thinking that I should consolidate all the components into one library crate.
2021-10-12 21:00:25 +01:00
../../../../../target/release/starmelon
Reference in a new issue
Copy permalink