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

北京移动网站建设公司价格资源丰富免费的网站推荐排名

北京移动网站建设公司价格,资源丰富免费的网站推荐排名,信息网站建设方案,品牌设计需要多少钱换皮不换身 换了国内源#xff0c;构建时该卡还会卡。因为它所谓的换源#xff0c;只是更换crates.io“索引”的源#xff0c;而不是package“内容”的源。换了国内源后#xff0c;在国内编译时访问 crates.io-index 自然会快很多#xff0c;可是crates.io-index里面的信…换皮不换身 换了国内源构建时该卡还会卡。因为它所谓的换源只是更换crates.io“索引”的源而不是package“内容”的源。换了国内源后在国内编译时访问 crates.io-index 自然会快很多可是crates.io-index里面的信息含量本身就不多主要是package名称/版本/依赖/特性等Cargo还要去crates.io网站查询指定package的下载地址而下载地址也是指向crates.io网站的。最终网络访问瓶颈还是境外的crates.io网站。 换国内源 清华 https://mirrors.tuna.tsinghua.edu.cn/help/crates.io-index.git/ 清华大学开源软件镜像站Rust crates.io 索引镜像使用帮助 编辑 $CARGO_HOME/config 文件添加以下内容 [source.crates-io] replace-with mirror[source.mirror] registry https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.gitRust Crates 实践指南 - The Guide to Rust Crates https://mirrors.gitcode.host/zzy/rust-crate-guide/4-cargo/4.1-source-replacement.html 创建 $HOME/.cargo/config 文件各操作系统及版本均大致相同然后在 config 文件内写入下述配置内容 [source.crates-io] registry https://github.com/rust-lang/crates.io-index # 指定镜像 replace-with 镜像源名 # 如tuna、sjtu、ustc或者 rustcc# 注以下源配置一个即可无需全部# 中国科学技术大学 [source.ustc] registry git://mirrors.ustc.edu.cn/crates.io-index# 上海交通大学 [source.sjtu] registry https://mirrors.sjtug.sjtu.edu.cn/git/crates.io-index# 清华大学 [source.tuna] registry https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git# rustcc社区 [source.rustcc] registry https://code.aliyun.com/rustcc/crates.io-index.git查询 crates.io-index https://github.com/rust-lang/crates.io-index/blob/master/to/ki/tokio // ingore old vertions ... {name:tokio,vers:1.30.0,deps:[{name:async-stream,req:^0.3,features:[],optional:false,default_features:true,target:null,kind:dev},{name:backtrace,req:^0.3.58,features:[],optional:false,default_features:true,target:cfg(tokio_taskdump),kind:normal},{name:bytes,req:^1.0.0,features:[],optional:true,default_features:true,target:null,kind:normal},{name:futures,req:^0.3.0,features:[async-await],optional:false,default_features:true,target:null,kind:dev},{name:libc,req:^0.2.145,features:[],optional:true,default_features:true,target:cfg(unix),kind:normal},{name:libc,req:^0.2.145,features:[],optional:false,default_features:true,target:cfg(unix),kind:dev},{name:loom,req:^0.7,features:[futures,checkpoint],optional:false,default_features:true,target:cfg(loom),kind:dev},{name:mio,req:^0.8.6,features:[],optional:true,default_features:false,target:null,kind:normal},{name:mio-aio,req:^0.7.0,features:[tokio],optional:false,default_features:true,target:cfg(target_os \freebsd\),kind:dev},{name:mockall,req:^0.11.1,features:[],optional:false,default_features:true,target:null,kind:dev},{name:nix,req:^0.26,features:[fs,socket],optional:false,default_features:false,target:cfg(unix),kind:dev},{name:num_cpus,req:^1.8.0,features:[],optional:true,default_features:true,target:null,kind:normal},{name:parking_lot,req:^0.12.0,features:[],optional:true,default_features:true,target:null,kind:normal},{name:pin-project-lite,req:^0.2.11,features:[],optional:false,default_features:true,target:null,kind:normal},{name:rand,req:^0.8.0,features:[],optional:false,default_features:true,target:cfg(not(all(target_family \wasm\, target_os \unknown\))),kind:dev},{name:signal-hook-registry,req:^1.1.1,features:[],optional:true,default_features:true,target:cfg(unix),kind:normal},{name:socket2,req:^0.5.3,features:[all],optional:true,default_features:true,target:cfg(not(target_family \wasm\)),kind:normal},{name:socket2,req:^0.5.3,features:[],optional:false,default_features:true,target:cfg(not(target_family \wasm\)),kind:dev},{name:tempfile,req:^3.1.0,features:[],optional:false,default_features:true,target:cfg(not(target_family \wasm\)),kind:dev},{name:tokio-macros,req:~2.1.0,features:[],optional:true,default_features:true,target:null,kind:normal},{name:tokio-stream,req:^0.1,features:[],optional:false,default_features:true,target:null,kind:dev},{name:tokio-test,req:^0.4.0,features:[],optional:false,default_features:true,target:null,kind:dev},{name:tracing,req:^0.1.25,features:[std],optional:true,default_features:false,target:cfg(tokio_unstable),kind:normal},{name:wasm-bindgen-test,req:^0.3.0,features:[],optional:false,default_features:true,target:cfg(all(target_family \wasm\, not(target_os \wasi\))),kind:dev},{name:windows-sys,req:^0.48,features:[],optional:true,default_features:true,target:cfg(windows),kind:normal},{name:windows-sys,req:^0.48,features:[Win32_Foundation,Win32_Security_Authorization],optional:false,default_features:true,target:cfg(windows),kind:dev}],cksum:2d3ce25f50619af8b0aec2eb23deebe84249e19e2ddd393a6e16e3300a6dadfd,features:{default:[],fs:[],full:[fs,io-util,io-std,macros,net,parking_lot,process,rt,rt-multi-thread,signal,sync,time],io-std:[],io-util:[bytes],macros:[tokio-macros],net:[libc,mio/os-poll,mio/os-ext,mio/net,socket2,windows-sys/Win32_Foundation,windows-sys/Win32_Security,windows-sys/Win32_Storage_FileSystem,windows-sys/Win32_System_Pipes,windows-sys/Win32_System_SystemServices],process:[bytes,libc,mio/os-poll,mio/os-ext,mio/net,signal-hook-registry,windows-sys/Win32_Foundation,windows-sys/Win32_System_Threading,windows-sys/Win32_System_WindowsProgramming],rt:[],rt-multi-thread:[num_cpus,rt],signal:[libc,mio/os-poll,mio/net,mio/os-ext,signal-hook-registry,windows-sys/Win32_Foundation,windows-sys/Win32_System_Console],stats:[],sync:[],test-util:[rt,sync,time],time:[]},yanked:false,rust_version:1.63} {name:tokio,vers:1.31.0,deps:[{name:async-stream,req:^0.3,features:[],optional:false,default_features:true,target:null,kind:dev},{name:backtrace,req:^0.3.58,features:[],optional:false,default_features:true,target:cfg(tokio_taskdump),kind:normal},{name:bytes,req:^1.0.0,features:[],optional:true,default_features:true,target:null,kind:normal},{name:futures,req:^0.3.0,features:[async-await],optional:false,default_features:true,target:null,kind:dev},{name:libc,req:^0.2.145,features:[],optional:true,default_features:true,target:cfg(unix),kind:normal},{name:libc,req:^0.2.145,features:[],optional:false,default_features:true,target:cfg(unix),kind:dev},{name:loom,req:^0.7,features:[futures,checkpoint],optional:false,default_features:true,target:cfg(loom),kind:dev},{name:mio,req:^0.8.6,features:[],optional:true,default_features:false,target:null,kind:normal},{name:mio-aio,req:^0.7.0,features:[tokio],optional:false,default_features:true,target:cfg(target_os \freebsd\),kind:dev},{name:mockall,req:^0.11.1,features:[],optional:false,default_features:true,target:null,kind:dev},{name:nix,req:^0.26,features:[fs,socket],optional:false,default_features:false,target:cfg(unix),kind:dev},{name:num_cpus,req:^1.8.0,features:[],optional:true,default_features:true,target:null,kind:normal},{name:parking_lot,req:^0.12.0,features:[],optional:true,default_features:true,target:null,kind:normal},{name:pin-project-lite,req:^0.2.11,features:[],optional:false,default_features:true,target:null,kind:normal},{name:rand,req:^0.8.0,features:[],optional:false,default_features:true,target:cfg(not(all(target_family \wasm\, target_os \unknown\))),kind:dev},{name:signal-hook-registry,req:^1.1.1,features:[],optional:true,default_features:true,target:cfg(unix),kind:normal},{name:socket2,req:^0.5.3,features:[all],optional:true,default_features:true,target:cfg(not(target_family \wasm\)),kind:normal},{name:socket2,req:^0.5.3,features:[],optional:false,default_features:true,target:cfg(not(target_family \wasm\)),kind:dev},{name:tempfile,req:^3.1.0,features:[],optional:false,default_features:true,target:cfg(not(target_family \wasm\)),kind:dev},{name:tokio-macros,req:~2.1.0,features:[],optional:true,default_features:true,target:null,kind:normal},{name:tokio-stream,req:^0.1,features:[],optional:false,default_features:true,target:null,kind:dev},{name:tokio-test,req:^0.4.0,features:[],optional:false,default_features:true,target:null,kind:dev},{name:tracing,req:^0.1.25,features:[std],optional:true,default_features:false,target:cfg(tokio_unstable),kind:normal},{name:wasm-bindgen-test,req:^0.3.0,features:[],optional:false,default_features:true,target:cfg(all(target_family \wasm\, not(target_os \wasi\))),kind:dev},{name:windows-sys,req:^0.48,features:[],optional:true,default_features:true,target:cfg(windows),kind:normal},{name:windows-sys,req:^0.48,features:[Win32_Foundation,Win32_Security_Authorization],optional:false,default_features:true,target:cfg(windows),kind:dev}],cksum:40de3a2ba249dcb097e01be5e67a5ff53cf250397715a071a81543e8a832a920,features:{default:[],fs:[],full:[fs,io-util,io-std,macros,net,parking_lot,process,rt,rt-multi-thread,signal,sync,time],io-std:[],io-util:[bytes],macros:[tokio-macros],net:[libc,mio/os-poll,mio/os-ext,mio/net,socket2,windows-sys/Win32_Foundation,windows-sys/Win32_Security,windows-sys/Win32_Storage_FileSystem,windows-sys/Win32_System_Pipes,windows-sys/Win32_System_SystemServices],process:[bytes,libc,mio/os-poll,mio/os-ext,mio/net,signal-hook-registry,windows-sys/Win32_Foundation,windows-sys/Win32_System_Threading,windows-sys/Win32_System_WindowsProgramming],rt:[],rt-multi-thread:[num_cpus,rt],signal:[libc,mio/os-poll,mio/net,mio/os-ext,signal-hook-registry,windows-sys/Win32_Foundation,windows-sys/Win32_System_Console],stats:[],sync:[],test-util:[rt,sync,time],time:[]},yanked:false,rust_version:1.63} {name:tokio,vers:1.32.0,deps:[{name:async-stream,req:^0.3,features:[],optional:false,default_features:true,target:null,kind:dev},{name:backtrace,req:^0.3.58,features:[],optional:false,default_features:true,target:cfg(tokio_taskdump),kind:normal},{name:bytes,req:^1.0.0,features:[],optional:true,default_features:true,target:null,kind:normal},{name:futures,req:^0.3.0,features:[async-await],optional:false,default_features:true,target:null,kind:dev},{name:libc,req:^0.2.145,features:[],optional:true,default_features:true,target:cfg(unix),kind:normal},{name:libc,req:^0.2.145,features:[],optional:false,default_features:true,target:cfg(unix),kind:dev},{name:loom,req:^0.7,features:[futures,checkpoint],optional:false,default_features:true,target:cfg(loom),kind:dev},{name:mio,req:^0.8.6,features:[],optional:true,default_features:false,target:null,kind:normal},{name:mio-aio,req:^0.7.0,features:[tokio],optional:false,default_features:true,target:cfg(target_os \freebsd\),kind:dev},{name:mockall,req:^0.11.1,features:[],optional:false,default_features:true,target:null,kind:dev},{name:nix,req:^0.26,features:[fs,socket],optional:false,default_features:false,target:cfg(unix),kind:dev},{name:num_cpus,req:^1.8.0,features:[],optional:true,default_features:true,target:null,kind:normal},{name:parking_lot,req:^0.12.0,features:[],optional:true,default_features:true,target:null,kind:normal},{name:pin-project-lite,req:^0.2.11,features:[],optional:false,default_features:true,target:null,kind:normal},{name:rand,req:^0.8.0,features:[],optional:false,default_features:true,target:cfg(not(all(target_family \wasm\, target_os \unknown\))),kind:dev},{name:signal-hook-registry,req:^1.1.1,features:[],optional:true,default_features:true,target:cfg(unix),kind:normal},{name:socket2,req:^0.5.3,features:[all],optional:true,default_features:true,target:cfg(not(target_family \wasm\)),kind:normal},{name:socket2,req:^0.5.3,features:[],optional:false,default_features:true,target:cfg(not(target_family \wasm\)),kind:dev},{name:tempfile,req:^3.1.0,features:[],optional:false,default_features:true,target:cfg(not(target_family \wasm\)),kind:dev},{name:tokio-macros,req:~2.1.0,features:[],optional:true,default_features:true,target:null,kind:normal},{name:tokio-stream,req:^0.1,features:[],optional:false,default_features:true,target:null,kind:dev},{name:tokio-test,req:^0.4.0,features:[],optional:false,default_features:true,target:null,kind:dev},{name:tracing,req:^0.1.25,features:[std],optional:true,default_features:false,target:cfg(tokio_unstable),kind:normal},{name:wasm-bindgen-test,req:^0.3.0,features:[],optional:false,default_features:true,target:cfg(all(target_family \wasm\, not(target_os \wasi\))),kind:dev},{name:windows-sys,req:^0.48,features:[],optional:true,default_features:true,target:cfg(windows),kind:normal},{name:windows-sys,req:^0.48,features:[Win32_Foundation,Win32_Security_Authorization],optional:false,default_features:true,target:cfg(windows),kind:dev}],cksum:17ed6077ed6cd6c74735e21f37eb16dc3935f96878b1fe961074089cc80893f9,features:{default:[],fs:[],full:[fs,io-util,io-std,macros,net,parking_lot,process,rt,rt-multi-thread,signal,sync,time],io-std:[],io-util:[bytes],macros:[tokio-macros],net:[libc,mio/os-poll,mio/os-ext,mio/net,socket2,windows-sys/Win32_Foundation,windows-sys/Win32_Security,windows-sys/Win32_Storage_FileSystem,windows-sys/Win32_System_Pipes,windows-sys/Win32_System_SystemServices],process:[bytes,libc,mio/os-poll,mio/os-ext,mio/net,signal-hook-registry,windows-sys/Win32_Foundation,windows-sys/Win32_System_Threading,windows-sys/Win32_System_WindowsProgramming],rt:[],rt-multi-thread:[num_cpus,rt],signal:[libc,mio/os-poll,mio/net,mio/os-ext,signal-hook-registry,windows-sys/Win32_Foundation,windows-sys/Win32_System_Console],stats:[],sync:[],test-util:[rt,sync,time],time:[]},yanked:false,rust_version:1.63}Cargo从这里可以拿到历史版本号依赖项(deps)特性(features)等信息。 查询package https://crates.io/api/v1/crates/tokio/1.32.0 {version:{audit_actions:[{action:publish,time:2023-08-16T21:11:49.97347800:00,user:{avatar:https://avatars.githubusercontent.com/u/6180?v4,id:10,login:carllerche,name:Carl Lerche,url:https://github.com/carllerche}}],checksum:17ed6077ed6cd6c74735e21f37eb16dc3935f96878b1fe961074089cc80893f9,crate:tokio,crate_size:725004,created_at:2023-08-16T21:11:49.97347800:00,dl_path:/api/v1/crates/tokio/1.32.0/download,downloads:1848459,features:{default:[],fs:[],full:[fs,io-util,io-std,macros,net,parking_lot,process,rt,rt-multi-thread,signal,sync,time],io-std:[],io-util:[bytes],macros:[tokio-macros],net:[libc,mio/os-poll,mio/os-ext,mio/net,socket2,windows-sys/Win32_Foundation,windows-sys/Win32_Security,windows-sys/Win32_Storage_FileSystem,windows-sys/Win32_System_Pipes,windows-sys/Win32_System_SystemServices],process:[bytes,libc,mio/os-poll,mio/os-ext,mio/net,signal-hook-registry,windows-sys/Win32_Foundation,windows-sys/Win32_System_Threading,windows-sys/Win32_System_WindowsProgramming],rt:[],rt-multi-thread:[num_cpus,rt],signal:[libc,mio/os-poll,mio/net,mio/os-ext,signal-hook-registry,windows-sys/Win32_Foundation,windows-sys/Win32_System_Console],stats:[],sync:[],test-util:[rt,sync,time],time:[]},id:873708,license:MIT,links:{authors:/api/v1/crates/tokio/1.32.0/authors,dependencies:/api/v1/crates/tokio/1.32.0/dependencies,version_downloads:/api/v1/crates/tokio/1.32.0/downloads},num:1.32.0,published_by:{avatar:https://avatars.githubusercontent.com/u/6180?v4,id:10,login:carllerche,name:Carl Lerche,url:https://github.com/carllerche},readme_path:/api/v1/crates/tokio/1.32.0/readme,rust_version:1.63,updated_at:2023-08-16T21:11:49.97347800:00,yanked:false}}Cargo从这里可以拿到package下载地址dl_path:/api/v1/crates/tokio/1.32.0/download。这是一个相对地址前面需要加上crates.io的origin最终获得完整下载地址https://crates.io/api/v1/crates/tokio/1.32.0/download。 下载package https://crates.io/api/v1/crates/tokio/1.32.0/download 自动重定向到 https://static.crates.io/crates/tokio/tokio-1.32.0.crate下载得到的是.crate文件实际是一个压缩包解压后就是tokio项目源代码目录树。 前瞻 现有方案不解决主要问题。我想今后Rust还是需要提供crates.io内package下载镜像源的。
http://www.huolong8.cn/news/24419/

相关文章:

  • 建设工程敎育网网站seo网络营销工程师
  • 网站建设开发全包网站加ico图标
  • 网上的网站模板怎么用十进十建 网站建设工作总结
  • 做公众号商城原型的网站贵州建设厅考试网站二建成绩查询
  • 福州交通建设集团官方网站全国十大装修公司最有名的是
  • 电商网站建设服务网站备案要求企业 个人
  • 淘宝券商城网站制作wordpress百科
  • 北京专业企业营销网站建设做外贸网站多久更新
  • 婚纱影楼网站怎么做网页小猪佩奇
  • 电商网站建设运城网站建设的总体目标考核指标
  • 东莞市网站建设公司企业网站推广宣传方案
  • php企业网站源码推荐网页游戏开服表时间表
  • 临清网站建设服务2万一3万电动汽车
  • 芜湖seo网站优化wordpress静态
  • intitle:郑州网站建设外贸网站建站h
  • 做网站原型的简单工具个人建站系统
  • wordpress企业仿站外贸培训
  • 优质外贸网站中国互联网协会理事长级别
  • 网站规划与建设规划书辽宁建设工程造价信息网
  • 全国高校校园网站建设与发展高级研修班临沂市开发区可以做分销的网站
  • 做网站泊头apple私人免费网站怎么下载
  • 网站关键字被改了wordpress导入演示卡主
  • 青岛李沧区网站建设网站设计怎么用黑色
  • 上海 网站设计北京建设网站圣辉友联
  • 医疗做网站一站式网站建设
  • 网页制作试题及答案福州百度推广排名优化
  • 校园网站建设软件打开浏览器直接进入网站
  • 昌平网站开发公司wordpress 新用户邮件
  • 天津市工程建设交易网站查汗国网络搭建比赛
  • 徐州 商城网站建设企业微信官网