update some doc

This commit is contained in:
appflowy
2021-07-09 08:42:52 +08:00
parent 53a041b6cd
commit 685643be36
11 changed files with 127 additions and 65 deletions

7
scripts/install_rust.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
echo 'install rust'
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y
echo 'export PATH="$$HOME/.cargo/bin:$$PATH"' >> ~/.bash_profile
source ~/.bash_profile

15
scripts/install_tool.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
#targets
rustup target add x86_64-apple-darwin
#tools
echo 'install tools'
rustup component add rustfmt
cargo install cargo-expand
cargo install cargo-watch
cargo install cargo-cache
#protobuf code gen env
brew install protobuf@3.13
cargo install --version 2.20.0 protobuf-codegen