env.toml 955 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. [tasks.env_setup]
  2. script = """
  3. brew install sqlite3
  4. cargo install diesel_cli --no-default-features --features sqlite
  5. """
  6. [tasks.install_sqlite3]
  7. script = """
  8. brew install sqlite3
  9. cargo install diesel_cli --no-default-features --features sqlite
  10. """
  11. [tasks.install_rust]
  12. script = """
  13. echo 'install rust'
  14. sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
  15. curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y
  16. echo 'export PATH="$$HOME/.cargo/bin:$$PATH"' >> ~/.bash_profile
  17. source ~/.bash_profile
  18. """
  19. [tasks.install_tools]
  20. script = """
  21. #targets
  22. rustup target add x86_64-apple-darwin
  23. #tools
  24. echo 'install tools'
  25. rustup component add rustfmt
  26. cargo install cargo-expand
  27. cargo install cargo-watch
  28. cargo install cargo-cache
  29. cargo install bunyan
  30. #protobuf code gen env
  31. brew install [email protected]
  32. brew tap dart-lang/dart
  33. brew install dart
  34. pub global activate protoc_plugin
  35. cargo install --version 2.20.0 protobuf-codegen
  36. """