Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(rustic-babel-build-sentinel): align behaviour with other lang
In an org file, the src block's code should be interpreted, OR the binary compiled from it SHOULD execute with PWD as `default-directory` of the org file. Summary of changes: 1. save the original default-directory then later restores it. 2. supply `--manifest-path` option to `cargo run` to execute the target `Cargo.toml` binary compiled from the src block. For reference: Try to execute a C++, C, js (node), python block. In particular, see implementation of `org-babel-C-execute` or `org-babel-python-evaluate-external-process`. May be we can re-write like them in the future. fixes: brotzeit#509
- Loading branch information