-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from ValgulNecron/dev
Better logging and small fix
- Loading branch information
Showing
129 changed files
with
2,773 additions
and
5,605 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM rust:bookworm | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
libssl-dev libsqlite3-dev \ | ||
libpng-dev libjpeg-dev \ | ||
ca-certificates pkg-config \ | ||
sqlite3 curl zsh vim \ | ||
git gnupg2 jq sudo \ | ||
build-essential openssl \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /home/ | ||
|
||
COPY . . | ||
|
||
RUN bash ./setup.sh | ||
|
||
ENV PATH="/root/.cargo/bin:$PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "Codespaces Rust Starter", | ||
"dockerFile": "Dockerfile", | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"editor.formatOnSave": true, | ||
"extensions.ignoreRecommendations": false, | ||
"rust-analyzer.completion.autoimport": true, | ||
"rust-analyzer.lru.capacity": 10, | ||
"rust-analyzer.completion.postfix.enable": true | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Install rustup and common components | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
rustup install stable | ||
rustup component add rustfmt | ||
rustup component add rustfmt --toolchain stable | ||
rustup component add clippy | ||
rustup component add clippy --toolchain stable | ||
|
||
cargo install cargo-expand | ||
cargo install cargo-edit | ||
|
||
## setup and install oh-my-zsh | ||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | ||
ZSH=$HOME/.oh-my-zsh | ||
ZSH_THEME="awesomepanda" | ||
sed -i -e "s/ZSH_THEME=.*/ZSH_THEME=\"awesomepanda\"/g" $ZSH/ohmyzsh.sh | ||
plugins=(git zsh-interactive-cd rust) | ||
sed -i -e "s/plugins=\(.*\)/plugins=(\1 git zsh-interactive-cd rust)/g" $ZSH/ohmyzsh.sh | ||
cp -R /root/.oh-my-zsh /home/$USERNAME | ||
cp /root/.zshrc /home/$USERNAME | ||
sed -i -e "s/\/root\/.oh-my-zsh/\/home\/$USERNAME\/.oh-my-zsh/g" /home/$USERNAME/.zshrc | ||
chown -R $USER_UID:$USER_GID /home/$USERNAME/.oh-my-zsh /home/$USERNAME/.zshrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.