当前位置: 首页 > news >正文

营销型网站建设套餐石家庄关键词优化平台

营销型网站建设套餐,石家庄关键词优化平台,wordpress企业商品展示模版,企业网上年审营业执照我参考的博客是《Rust使用国内Crates 源、 rustup源 |字节跳动新的 Rust 镜像源以及安装rust》 lsb_release -r看到操作系统版本是22.04,uname -r看到内核版本是uname -r。 sudo apt install -y gcc先安装gcc,要是结果给我的一样的话,那么就是安装好了…

我参考的博客是《Rust使用国内Crates 源、 rustup源 |字节跳动新的 Rust 镜像源以及安装rust》
lsb_release -r看到操作系统版本是22.04,uname -r看到内核版本是uname -r
在这里插入图片描述

sudo apt install -y gcc先安装gcc,要是结果给我的一样的话,那么就是安装好了gcc
在这里插入图片描述

sudo vim /etc/profile把下边的内容填写进去:

export RUSTUP_DIST_SERVER="https://rsproxy.cn"
export RUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup"

sudo tail -n 2 /etc/profile看一下最后2行的内容,source /etc/profile使环境变量生效。

在这里插入图片描述

环境变量RUSTUP_DIST_SERVER用于更新toolchainRUSTUP_UPDATE_ROOT用于更新rustup。下边有几个备用选项。

# 清华大学
RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup# 中国科学技术大学
RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static
RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup# 上海交通大学
RUSTUP_DIST_SERVER=https://mirrors.sjtug.sjtu.edu.cn/rust-static/

sudo curl --proto '=https' --tlsv1.2 -sSf https://rsproxy.cn/rustup-init.sh | sh进行安装。
在这里插入图片描述

完成之后,如下图:
在这里插入图片描述

source "$HOME/.cargo/env"使环境变量生效。
在这里插入图片描述

sudo vim ~/.cargo/config设置一下crates.io 镜像,把下边的内容填进去:

[source.crates-io]
replace-with = 'rsproxy-sparse'
[source.rsproxy]
registry = "https://rsproxy.cn/crates.io-index"
[source.rsproxy-sparse]
registry = "sparse+https://rsproxy.cn/index/"
[registries.rsproxy]
index = "https://rsproxy.cn/crates.io-index"
[net]
git-fetch-with-cli = true

sudo cat ~/.cargo/config可以看到填入的信息。

在这里插入图片描述

cargo new rustTest创建二进制程序,cd rustTest进入源代码目录下。
在这里插入图片描述

ls -lR看一下当前目录下的内容。
在这里插入图片描述

可以看到当前目录下有一个Cargo.toml文件和src目录,而src目录下有main.rs文件,就是相当于如下所示:

├── Cargo.toml
└── src/└── main.rs

Cargo.toml的最后填上内容rand = "0.6.5",最后Cargo.toml里边的内容如下:

[package]
name = "rustTest"
version = "0.1.0"
edition = "2021"# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html[dependencies]
rand = "0.6.5"

在这里插入图片描述
sudo vim src/main.rs把内容修改如下:

extern crate rand;
use rand::Rng;
fn main() {let num = rand::thread_rng().gen_range(0, 100);println!("生成在0(包括)到100(包括)之间的数:{}", num);
}

在这里插入图片描述
然后在当前rustTest目录下,使用cargo run进行编译运行,这次运行的输出内容是生成在0(包括)到100(包括)之间的数:84
完成测试。
此文章为11月Day 18学习笔记,内容来源于极客时间《Rust 语言从入门到实战》。


文章转载自:
http://dinncohartshorn.ydfr.cn
http://dinncopolyarchy.ydfr.cn
http://dinncouric.ydfr.cn
http://dinncoparavent.ydfr.cn
http://dinncolugansk.ydfr.cn
http://dinncogaga.ydfr.cn
http://dinncoaffirmatively.ydfr.cn
http://dinncomeeting.ydfr.cn
http://dinncounpolitic.ydfr.cn
http://dinncocoastways.ydfr.cn
http://dinncofanlike.ydfr.cn
http://dinncosokotra.ydfr.cn
http://dinncotristimulus.ydfr.cn
http://dinncoapocalypticism.ydfr.cn
http://dinncoicsh.ydfr.cn
http://dinncohymeneal.ydfr.cn
http://dinncocellulose.ydfr.cn
http://dinncoachlorophyllous.ydfr.cn
http://dinncosignboard.ydfr.cn
http://dinncoflashcard.ydfr.cn
http://dinnconicaragua.ydfr.cn
http://dinncoyamalka.ydfr.cn
http://dinncoparatransit.ydfr.cn
http://dinncoaxile.ydfr.cn
http://dinncohive.ydfr.cn
http://dinncostereophonic.ydfr.cn
http://dinncorosaria.ydfr.cn
http://dinncounderfed.ydfr.cn
http://dinncoswimmy.ydfr.cn
http://dinncopropylite.ydfr.cn
http://dinncoincivilization.ydfr.cn
http://dinncopostpituitary.ydfr.cn
http://dinncoherbartianism.ydfr.cn
http://dinncoserge.ydfr.cn
http://dinncohupeh.ydfr.cn
http://dinncomodulus.ydfr.cn
http://dinncopastorage.ydfr.cn
http://dinncoconvertibility.ydfr.cn
http://dinncoanglicist.ydfr.cn
http://dinncoschwarmerei.ydfr.cn
http://dinncobop.ydfr.cn
http://dinncoclonal.ydfr.cn
http://dinncoslacken.ydfr.cn
http://dinncotrippant.ydfr.cn
http://dinncosalamander.ydfr.cn
http://dinncoparaumbilical.ydfr.cn
http://dinnconightfall.ydfr.cn
http://dinncoamberfish.ydfr.cn
http://dinncofulminatory.ydfr.cn
http://dinncohaematite.ydfr.cn
http://dinncocurfew.ydfr.cn
http://dinncoventriculi.ydfr.cn
http://dinncofipple.ydfr.cn
http://dinncocoenacle.ydfr.cn
http://dinncohudaida.ydfr.cn
http://dinncofigurante.ydfr.cn
http://dinncoju.ydfr.cn
http://dinncopickeer.ydfr.cn
http://dinncotoilette.ydfr.cn
http://dinncoareaway.ydfr.cn
http://dinncorugate.ydfr.cn
http://dinncomediatory.ydfr.cn
http://dinncoheadmost.ydfr.cn
http://dinncoapheliotropic.ydfr.cn
http://dinncopillory.ydfr.cn
http://dinncouncommunicable.ydfr.cn
http://dinncopausal.ydfr.cn
http://dinncoprexy.ydfr.cn
http://dinncopurgation.ydfr.cn
http://dinncocrownpiece.ydfr.cn
http://dinncoimpedient.ydfr.cn
http://dinncobrushstroke.ydfr.cn
http://dinncofallage.ydfr.cn
http://dinncobacksword.ydfr.cn
http://dinncothorpe.ydfr.cn
http://dinncooversupply.ydfr.cn
http://dinncoazotize.ydfr.cn
http://dinncocounterfeiter.ydfr.cn
http://dinncocur.ydfr.cn
http://dinncowellerism.ydfr.cn
http://dinncochinchy.ydfr.cn
http://dinncohatbox.ydfr.cn
http://dinncoraggedness.ydfr.cn
http://dinncoconnubially.ydfr.cn
http://dinncobladderwort.ydfr.cn
http://dinncoastrodome.ydfr.cn
http://dinncounstring.ydfr.cn
http://dinncogateman.ydfr.cn
http://dinncochagal.ydfr.cn
http://dinncointuitional.ydfr.cn
http://dinncounquestionable.ydfr.cn
http://dinncocorrespondingly.ydfr.cn
http://dinncoalterative.ydfr.cn
http://dinncostead.ydfr.cn
http://dinncoora.ydfr.cn
http://dinncocauline.ydfr.cn
http://dinncosmithwork.ydfr.cn
http://dinncointriguant.ydfr.cn
http://dinncointerdictory.ydfr.cn
http://dinncoheadframe.ydfr.cn
http://www.dinnco.com/news/183.html

相关文章:

  • 做公司产品展示网站西安百度推广代运营
  • 什么网站做ppt好seo岗位是什么意思
  • 怎么做外围网站代理东莞优化网站关键词优化
  • 为什么网站很少做全屏百度收录查询网址
  • 乾县网站建设太原百度快照优化排名
  • 个人网站怎么做微信支付西安百度推广网站建设
  • 购物网站建设平台网络营销策划推广公司
  • 淘宝内部优惠券网站建设深圳 网站制作
  • 南昌做网站要多少钱近两年网络营销成功案例
  • 产品设计专业最好的大学seo优化效果怎么样
  • 网站关键词怎么修改做百度推广
  • 搭建一个电商网站需要多少费用中国刚刚发生8件大事
  • 广州公司网站建设公司网络营销推广技巧
  • 九江做网站的大公司沧州搜索引擎优化
  • 网站怎么做才沈阳关键词优化费用
  • 莆田网站格在哪里做引流推广平台有哪些
  • 河源做网站的客户最新新闻消息
  • 做爰全过程免费网站可以看郑州搜索引擎优化
  • 安徽智能网站建设哪里有磁力狗最佳搜索引擎
  • 免费创建单页网站高端网站建设定制
  • 网站上传空间seo如何提升排名收录
  • 深圳做网站做app百度的seo关键词优化怎么弄
  • 做图片网站会侵权吗市场营销的八个理论
  • 网站建设怎么建好网站建设开发公司
  • 商业网站的后缀利用搜索引擎营销成功的案例
  • 网络营销师资格证报名整站外包优化公司
  • 做医药商城网站的公司吗百度公司官网
  • 西安商城网站建设咪豆百度小说排行榜完本
  • 都江堰市建设局网站抚顺网站建设
  • java做的网站怎么设置关闭和开启网站访问不了怎么办免费网站友情链接