Expand description
First time setup of a dev environment
These are build-and-run steps for ./x.py setup
, which allows quickly setting up the directory
for modifying, building, and running the compiler and library. Running arbitrary configuration
allows setting up things that cannot be simply captured inside the config.toml, in addition to
leading people away from manually editing most of the config.toml values.
Structsยง
- Editor
- Sets up or displays the LSP config for one of the supported editors
- Hook
- Installs
src/etc/pre-push.sh
as a Git hook - Link
- Creates a toolchain link for stage1 using
rustup
Enumsยง
- Editor
Kind ๐ - Handles editor-specific setup differences
- Profile
- Prompt
Result ๐
Staticsยง
- PROFILE_
DIR ๐
Functionsยง
- attempt_
toolchain_ ๐link - create_
editor_ ๐settings_ maybe - Create the recommended editor LSP config file for rustc development, or just print it
If this method should be re-called, it returns
false
. - ensure_
stage1_ ๐toolchain_ placeholder_ exists - install_
git_ ๐hook_ maybe - interactive_
path - prompt_
user ๐ - Prompt a user for a answer, looping until they enter an accepted input or nothing
- rustup_
installed ๐ - setup
- setup_
config_ ๐toml - stage_
dir_ ๐exists - toolchain_
is_ ๐linked - try_
link_ ๐toolchain