# your code's directory project_dir ="~/rust/playground" # maybe vim or other alias of you editor="vim" # the ycm_extra_conf.py if you use Youcompleteme, otherwise just leave it blank. ycm_extra_conf = "~/.ycm_extra_conf.py" # rust-project.json content, you can edit it rust_project_json = """ { "sysroot":"~/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library", "sysroot_src":"~/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library", "crates":[ { "root_module":"{#file_name}", "edition":"2021", "deps":[ ] } ] } """ # cargo.toml content cargo_toml = """ [package] name = "play" version = "0.1.0" edition = "2021" [[bin]] name = "play" path='./{#file_name}' [dependencies] """