diff options
Diffstat (limited to 'build.rs')
| -rw-r--r-- | build.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..94e3e0d --- /dev/null +++ b/build.rs @@ -0,0 +1,9 @@ +use std::{env::current_dir, fs}; + +fn main() { + let path = current_dir().unwrap().join("rust-analyzer.toml"); + let template_content = include_str!("./.run/rust-analyzer.toml"); + if !path.exists() { + fs::write(path, template_content).unwrap(); + } +} |
