Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
rowanG077
1y ago
0 comments
Share
Why would you evaluate it using an interpreter? Since you are using it in the context of a rust lambda you compile it. You just have a rust file that calls cargo-watch as a library. Crafting an interpreter seems like an incredibly bad idea.
undefined | Better HN
0 comments
default
newest
oldest
mirashii
1y ago
But now you have to know at compile time what you're watching, which is not what cargo-watch or any of the similar commands like entr do.
rowanG077
OP
1y ago
Considering you have a rust file and the dependency why wouldn't you compile it? It's not like rustc is not available when you are using cargo-watch.
tempodox
1y ago
Anyway, doing all that just so you don't have to write a regexp has all the hallmarks of overkill. Keep it simple.
j
/
k
navigate · click thread line to collapse