Rust开发crates.io换国内中科大/阿里云镜像源

Rust社区公开的第三方包都集中在crates.io网站上面,他们的文档被自动发布到doc.rs网站上。Rust提供了非常方便的包管理器cargo,它类似于Node.jsnpmPythonpip。但cargo不仅局限于包管理,还为Rust生态系统提供了标准的工作流。

所以在实际开发中,为了更快速下载第三方包,我们需要把crates.io换国内的镜像源。

换国内中科大源

完整复制以下命令,然后粘贴到终端执行即可:

tee $HOME/.cargo/config <<-'EOF'
[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
replace-with = 'ustc'
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"
EOF

换阿里云源

tee $HOME/.cargo/config <<-'EOF'
[source.crates-io]
replace-with = "rustcc"

[source.rustcc]
registry = "https://code.aliyun.com/rustcc/crates.io-index"
EOF

万事大吉!以后用Rust开发再也不用面对伟大的GFW了,233333~

已标记关键词 清除标记
GSAS Introduction Welcome to the General Structure Analysis System (GSAS). GSAS is a set of programs for the processing and analysis of both single crystal and powder diffraction data obtained with x-rays or neutr ons. It is capable of handling all of these types of data simultaneously for a given structural pr oblem. In addition, it can handle powder diffraction data from a mixtur e of phases refining structural parameters for each phase. GSAS is designed to be easy to use a nd features a menu driven editor ( EXPEDT) equipped with help listings and error trapping features. EXPEDT is used to prepare all input for the main calculation programs in GSAS. The entire GSAS system is written in FORTRAN and uses some system callable features. The current distributions of GSAS are available for all Microsoft operating syst ems on the Intel based personal computer (MS-DOS 6.x, Windows 95/98/ME/2K/XP and NT 4.0) and several Unix operating systems (Linux on Intel PC, Macintosh OS X and Silicon Graphics Irix 6.x). An integral part of GSAS is the facility for interactive gr aphics display based on the PGPLOT graphical subroutine library. The Unix versions of GSAS support X-windows graphical displays while the Microsoft OS version s upports graphics on the PC via the GrWnd utility written by Tsuguhiro Tamaribuchi. It also supports hard copy graphics devices (PostScript printers and Hewlett-Packard printers and plotters). This manual consists of three sections: this introduction, a training manual and a technical manual.
相关推荐
©️2020 CSDN 皮肤主题: 酷酷鲨 设计师:CSDN官方博客 返回首页