日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

Rust初步(三):使用atom搭配racer进行rust编程

發(fā)布時間:2025/3/15 15 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Rust初步(三):使用atom搭配racer进行rust编程 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

在rust.cc社區(qū)中有一個關于rust編輯器的討論(話說很多人要學一個新語言,都會立即考慮編輯器的問題,包括我在內),主要關注的是,智能提示(這個真的太重要了)。大家討論下來有幾個選擇

?

1. eclipse

2. vs code(我用過,目前支持語言高亮顯示,但沒有智能提示,還是不順手)

3.emacs (GNU的創(chuàng)始人作品,再次向開源致敬)

4.SolidOak (我用過,體驗很不好)

5.atom (我最后選用了這個工具,是GitHub出品的,據(jù)說VS Code也是基于atom做的實現(xiàn)),配合racer做智能提示,還有l(wèi)inter-rust 做語法檢查。整體使用體驗是:很好,很強大

?

最終的效果如下

?

?

首先肯定是要先安裝atom,可以通過 https://atom.io/

然后,按照下面的幫助進行安裝配置

https://atom.io/packages/racer

  • Ensure you have the Atom package language-rust installed and active.? 安裝一個package(language-rust),這里又有一個有意思的package manager:apm ,參考 https://atom.io/packages/language-rust
  • Ensure you have Racer properly installed.? 然后安裝racer,參考 https://github.com/phildawes/racer,有意思的是整個工具本來就是用rust寫的,所以你可以下載源代碼(使用git)后,使用cargo build 進行編譯即可
  • Ensure you have a copy of the rustc source code extracted on your disk. 需要下載rustc的源代碼,并且解壓縮到本地磁盤。參考 https://www.rust-lang.org/install.html和 https://github.com/rust-lang/rust?
  • 我是直接用git獲取了 https://github.com/rust-lang/rust? 然后保存到本地一個目錄,例如

    ?

  • Install this package via Atom's package manager: 通過命令或者配置工具安裝racer
    • go to Preferences > Packages, search for racer, and install it
    • OR use the command line apm install racer).
  • ?

    最后,要進行一些配置

    轉載于:https://www.cnblogs.com/chenxizhang/p/4759921.html

    總結

    以上是生活随笔為你收集整理的Rust初步(三):使用atom搭配racer进行rust编程的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。