Skip to content

Commit

Permalink
Add notes regarding make-cargo-build-system
Browse files Browse the repository at this point in the history
  • Loading branch information
declantsien committed Jul 11, 2024
1 parent 4d71a29 commit 1846d6e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,19 @@ location of the toolchain file with =(rustup "path/to/rust-toolchain")=
...)
#+end_src

*** =cargo-build-system=

Procedure =make-cargo-build-system= takes the same arguments(toolchain spec)
as =rustup=. Which will replace the default rustc/cargo with =rust-toolchain=
requested by =toolchain spec=

#+begin_src
(package
(name "rust-*")
(build-system (make-cargo-build-system "nightly-2024-01-25"))
...)
#+end_src

** Using rustup dist server mirror
#+begin_src shell
export RUSTUP_DIST_SERVER="https://mirrors.ustc.edu.cn/rust-static"
Expand Down

0 comments on commit 1846d6e

Please sign in to comment.