Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

switch to stable channel

nathandccbd45a0044
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 1e50ca8a82..1201675db8 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -51,8 +51,8 @@ jobs:
curl \
--proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
- rustup toolchain install nightly
- rustup default nightly
+ rustup toolchain install stable
+ rustup default stable
- name: Checkout Flutter
uses: actions/checkout@v2
with:
diff --git a/.github/workflows/frontend_rust.yml b/.github/workflows/frontend_rust.yml
index 7380325168..c334073507 100644
--- a/.github/workflows/frontend_rust.yml
+++ b/.github/workflows/frontend_rust.yml
@@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
- toolchain: nightly
+ toolchain: stable
override: true
- run: rustup component add rustfmt
working-directory: frontend/rust-lib
@@ -38,7 +38,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
- toolchain: nightly
+ toolchain: stable
override: true
- run: rustup component add clippy
working-directory: frontend/rust-lib
@@ -55,8 +55,8 @@ jobs:
curl \
--proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
- rustup toolchain install nightly
- rustup default nightly
+ rustup toolchain install stable
+ rustup default stable
- name: Frontend tests
working-directory: frontend/rust-lib
run: cargo test
diff --git a/backend/rust-toolchain b/backend/rust-toolchain
deleted file mode 100644
index e549c80007..0000000000
--- a/backend/rust-toolchain
+++ /dev/null
@@ -1,2 +0,0 @@
-[toolchain]
-channel = "nightly-2021-04-24"
\ No newline at end of file
diff --git a/backend/rust-toolchain.toml b/backend/rust-toolchain.toml
new file mode 100644
index 0000000000..48a0631f2e
--- /dev/null
+++ b/backend/rust-toolchain.toml
@@ -0,0 +1,2 @@
+[toolchain]
+channel = "stable-2022-01-20"
\ No newline at end of file
diff --git a/doc/BUILD_ON_LINUX.md b/doc/BUILD_ON_LINUX.md
index 9ad6caca77..fdf00dfd38 100644
--- a/doc/BUILD_ON_LINUX.md
+++ b/doc/BUILD_ON_LINUX.md
@@ -34,8 +34,8 @@ yay -S curl base-devel sqlite openssl clang cmake ninja pkg-config gtk3 unzip
```shell
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
-rustup toolchain install nightly
-rustup default nightly
+rustup toolchain install stable
+rustup default stable
```
3. Install flutter according to https://docs.flutter.dev/get-started/install/linux
diff --git a/doc/BUILD_ON_WINDOWS.md b/doc/BUILD_ON_WINDOWS.md
index 9f99dd97e4..8b961522fd 100644
--- a/doc/BUILD_ON_WINDOWS.md
+++ b/doc/BUILD_ON_WINDOWS.md
@@ -32,7 +32,7 @@ flutter doctor
```shell
# Download rustup.exe from https://win.rustup.rs/x86_64
# Call rustup.exe from powershell or cmd
-.\rustup-init.exe --default-toolchain nightly --default-host x86_64-pc-windows-msvc -y
+.\rustup-init.exe --default-toolchain stable --default-host x86_64-pc-windows-msvc -y
# Note: you probably need to re-open termial to get cargo command be available in PATH var
```
5. Install cargo make
diff --git a/frontend/Makefile b/frontend/Makefile
index 89f206aeaa..e922169ef6 100644
--- a/frontend/Makefile
+++ b/frontend/Makefile
@@ -9,4 +9,4 @@ install_cargo_make:
install_rust:
brew bundle
- rustup-init -y --default-toolchain=nightly
+ rustup-init -y --default-toolchain=stable
diff --git a/frontend/app_flowy/.gitignore b/frontend/app_flowy/.gitignore
index 035c81b4cc..8ec45dd95a 100644
--- a/frontend/app_flowy/.gitignore
+++ b/frontend/app_flowy/.gitignore
@@ -59,4 +59,4 @@ windows/flutter/dart_ffi/
**/**/*.lib
**/**/*.dll
**/**/*.so
-**/Brewfile.lock.json
\ No newline at end of file
+**/**/Brewfile.lock.json
\ No newline at end of file
diff --git a/frontend/rust-lib/rust-toolchain b/frontend/rust-lib/rust-toolchain
deleted file mode 100644
index c02a427532..0000000000
--- a/frontend/rust-lib/rust-toolchain
+++ /dev/null
@@ -1,3 +0,0 @@
-[toolchain]
-#rustup override set nightly-2021-04-24
-channel = "nightly-2021-04-24"
\ No newline at end of file
diff --git a/frontend/rust-lib/rust-toolchain.toml b/frontend/rust-lib/rust-toolchain.toml
new file mode 100644
index 0000000000..48a0631f2e
--- /dev/null
+++ b/frontend/rust-lib/rust-toolchain.toml
@@ -0,0 +1,2 @@
+[toolchain]
+channel = "stable-2022-01-20"
\ No newline at end of file
diff --git a/frontend/scripts/build_sdk.sh b/frontend/scripts/build_sdk.sh
index 8dfd3c079a..061fa58d0a 100755
--- a/frontend/scripts/build_sdk.sh
+++ b/frontend/scripts/build_sdk.sh
@@ -7,7 +7,7 @@ rustup show
#Env check
#1. rustc --version will be the same as cargo --version
#2. override the toolchain if the current toolchain not equal to the rust-toolchain file specified.
-# rustup override set nightly-2021-04-24
+# rustup override set stable-2021-04-24
#3. Check your cargo env using the same source by: which cargo
# 1. ~/.bash_profile,
# 2. ~/.bashrc
diff --git a/frontend/scripts/docker-buildfiles/Dockerfile b/frontend/scripts/docker-buildfiles/Dockerfile
index 2f80aeefb0..86dc80e77b 100755
--- a/frontend/scripts/docker-buildfiles/Dockerfile
+++ b/frontend/scripts/docker-buildfiles/Dockerfile
@@ -22,7 +22,7 @@ RUN git clone https://aur.archlinux.org/yay.git \
RUN yay -S --noconfirm curl base-devel sqlite openssl clang cmake ninja pkg-config gtk3 unzip
RUN xdg-user-dirs-update
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
-RUN source $HOME/.cargo/env && rustup toolchain install nightly && rustup default nightly
+RUN source $HOME/.cargo/env && rustup toolchain install stable && rustup default stable
RUN git clone https://github.com/flutter/flutter.git $HOME/.local/flutter
RUN flutter channel stable
RUN flutter config --enable-linux-desktop
diff --git a/frontend/scripts/makefile/desktop.toml b/frontend/scripts/makefile/desktop.toml
index 3306d05ce2..98d4227857 100644
--- a/frontend/scripts/makefile/desktop.toml
+++ b/frontend/scripts/makefile/desktop.toml
@@ -6,7 +6,7 @@
[tasks.env_check]
dependencies = ["echo_env"]
-condition = { env_set = [ "BUILD_FLAG", "RUST_COMPILE_TARGET", "CRATE_TYPE", "TARGET_OS"], channels = ["nightly"] }
+condition = { env_set = [ "BUILD_FLAG", "RUST_COMPILE_TARGET", "CRATE_TYPE", "TARGET_OS"], channels = ["stable"] }
[tasks.flowy-sdk-dev]
mac_alias = "flowy-sdk-dev-macos"
diff --git a/shared-lib/rust-toolchain b/shared-lib/rust-toolchain
deleted file mode 100644
index c02a427532..0000000000
--- a/shared-lib/rust-toolchain
+++ /dev/null
@@ -1,3 +0,0 @@
-[toolchain]
-#rustup override set nightly-2021-04-24
-channel = "nightly-2021-04-24"
\ No newline at end of file
diff --git a/shared-lib/rust-toolchain.toml b/shared-lib/rust-toolchain.toml
new file mode 100644
index 0000000000..48a0631f2e
--- /dev/null
+++ b/shared-lib/rust-toolchain.toml
@@ -0,0 +1,2 @@
+[toolchain]
+channel = "stable-2022-01-20"
\ No newline at end of file