diff --git a/.cargo/config.toml b/.cargo/config.toml index b615045..bac0add 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,6 +1,6 @@ # Just used for rust-analyzer. [build] -# target = "riscv64gc-unknown-none-elf" +target = "riscv64gc-unknown-none-elf" # target = 'aarch64-unknown-none-softfloat' # target = 'x86_64-unknown-none' # target = 'loongarch64-unknown-none' diff --git a/.github/workflows/doc.yaml b/.github/workflows/doc.yaml index ae859a8..02f4d64 100644 --- a/.github/workflows/doc.yaml +++ b/.github/workflows/doc.yaml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@nightly - name: generate doc run: cargo doc --no-deps --all-features - name: Deploy to Github Pages @@ -20,4 +20,4 @@ jobs: with: single-commit: true branch: gh-pages - folder: target/doc \ No newline at end of file + folder: target/riscv64gc-unknown-none-elf/doc diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..0c59087 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,8 @@ +[toolchain] +profile = "minimal" +# channel = "nightly-2023-03-29" +channel = "nightly-2023-12-01" +components = ["rust-src", "rustfmt", "clippy"] +targets = [ + "riscv64imac-unknown-none-elf", +]