Replies: 1 comment 2 replies
-
Spelling it out, I think I found the solution myself:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to generate a static executable written in rust. When it is run, a user can provide a python script to customize the behavior of this rust program. Specifically, I want to run a hook at specific points in my rust program.
More specifically, rust traverses the file system, calls a user function per file basename and the user function can tell the updated basename.
Python user script
Cargo.toml (for the record)
rust proof-of-concept
Now the question is:
rename
. However, the scope ofrename
is living within thervm
. Andrvm
is only available during the closure.Beta Was this translation helpful? Give feedback.
All reactions