1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# cargo-temp's configuration file.
# ================
# General settings
# ================
# Display a welcome message explaining how to exit and preserve the project on when a new temporary
# project is created.
# Default: true
= {
# Directory where temporary projects are created.
# Default: System cache directory.
# If the directory does not exist, it will be created automatically.
= "{temporary_project_dir}"
# Prompt for confirmation before deleting the project on exit.
# Default: false
#prompt = false
# Directory where the temporary projects will be preserved.
# Default: None, temporary projects are not moved on exit.
# Example:
#preserved_project_dir = "/home/user/lab"
# Version Control System (VCS) to use for new projects..
# Possible values: "git", "none" or any VCS supported by `cargo new -vcs`.
# Default: "git" (implicit default from Cargo).
#vcs = "git"
# Number of commits to retain in the history when cloning a Git repository.
# Set to 0 to keep the full history.
# Default: 1 (only the latest commit).
#git_repo_depth = 1
# Override the default target directory for cargo builds.
# Default: project-specific `target` directory.
#cargo_target_dir = "target"
# ===============
# Editor settings
# ===============
# Path to your preferred editor or IDE.
# If specified, `cargo-temp` will open the editor instead of a shell.
# Example for VS Code:
#editor = "code"
#editor_args = [ "--wait", "--new-window" ]
# ============
# Subprocesses
# ============
# You can spawn subprocesses to run alongside your temporary project.
#
# The required field for each subprocess:
# - `command`: a shell command to run (e.g., "cargo watch").
#
# Optional fields:
# - `foreground`: If true, the process runs in the foreground; if false, it runs in the
# background (default: false).
# - `working_dir`: Override the working directory (default: temporary project directory).
# - `keep_on_exit`: Keep the process running after exiting the shell/editor (default: false).
# Note: This setting has no effect for foreground processes.
#
# Platform specifics settings:
# - Unix
# - `stdout`: Boolean. Enable or disable stdout output (default: false for background, true for
# foreground).
# - `stderr`: Boolean. Enable or disable stderr output (default: true for foreground, false for
# background).
# - Windows
# - `inherit_handles`: Boolean. Allow the subprocess to inherit handles from the parent process
# (default: false).
#
#[[subprocess]]
#command = "alacritty -e cargo watch"