前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【Rust日报】 2019-06-12:PingCAP人才计划培训课程 - Rust网络应用实践

【Rust日报】 2019-06-12:PingCAP人才计划培训课程 - Rust网络应用实践

作者头像
MikeLoveRust
发布2019-07-09 13:21:00
9190
发布2019-07-09 13:21:00
举报
文章被收录于专栏:Rust语言学习交流

Rust 官网简体中文翻译公开测试

继续公开测试,检查是否有错别字、或表意错误等问题,然后在Pontoon上面进行审校。

  • Read More
  • Pontoon

PingCAP人才计划培训课程:Rust网络应用实践

#pingcap #talent

感兴趣的可以跟着学习一下。当然,该项目下也有Go课程,针对TiDB相关的。

Read More

把GitHub打造成你自己的Cargo Registry

#github

Read More

如何在Windows平台上基于MSVC工具链使用gtk-rs

#gtk #windows #msvc

该贴作者对于gtk-rs团队推荐使用GNU工具链不是太满意,所以他自己折腾出一些方案分享出来给其他人减少麻烦:

代码语言:javascript
复制
1. Install GTK3 using vcpkg following the instructions on the GTK website. I'll refer to its directory as %VCPKGDIR% for brevity.

2. Add %VCPKGDIR%\installed\x64-windows\bin to your PATH environment variable. It needs to be early in the list, or DLLs shipped with random applications may get picked up before the ones vcpkg installed, leading to process didn't exit successfully (exit code: 0xc0000139, STATUS_ENTRYPOINT_NOT_FOUND).

3. Set the GTK_LIB_DIR environment variable to %VCPKGDIR%\installed\x64-windows\lib.

4. Create some symlinks.

    %VCPKGDIR%\installed\x64-windows\lib\gtk-3.0.lib points to %VCPKGDIR%\installed\x64-windows\lib\gtk-3.lib.

    %VCPKGDIR%\installed\x64-windows\lib\gdk-3.0.lib points to %VCPKGDIR%\installed\x64-windows\lib\gdk-3.lib.

    %VCPKGDIR%\installed\x64-windows\bin\gtk-3.0.dll points to %VCPKGDIR%\installed\x64-windows\bin\gtk-3.dll.

    %VCPKGDIR%\installed\x64-windows\bin\gdk-3.0.dll points to %VCPKGDIR%\installed\x64-windows\bin\gdk-3.dll.

5. At this point you can try and make something with GTK. However, while the latest version of gtk on crates.io is still 0.6 you'll need to either use the Git repositories directly or patch the source code in your Cargo registry - they got the minimum version for something wrong, so you'll get an unresolved external symbol error.

6. If you try making something with GTK now, it'll work, but you'll get warnings about missing stuff. For some reason, vcpkg doesn't currently build any resources. To work around this, download the latest versions of mingw-w64-x86_64-adwaita-icon-theme and mingw-w64-x86_64-hicolor-icon-theme from the MSYS2 repo. Extract the icons folder in each one to %VCPKGDIR%\installed\x64-windows\share.

Reddit 讨论

「视频」响应式编译器

#Rust

Rust 核心团队leader在PLISS大会上的分享,对编译器感兴趣的可以听一下。时长1小时27分。

许多编译器教科书和课程将编译视为一种“批处理过程”,其中编译器接收一堆输入文件,经过一组编译器转换,并最终生成目标代码作为输出。 但是,越来越多的用户希望与VSCode等IDE集成,后者需要不同的结构。 此外,许多语言都具有递归结构,其中正确的处理顺序难以静态地确定。 Niko(Nicholas)将讨论Rust团队在重组(restructuring)Rust编译器以支持增量编译和IDE集成方面所做的一些工作。

  • Slides
  • Slides
  • Videos

evc: 一个无锁的同步原语库

#lockfree

支持同时读写,与evmap库类似。

evc

「官方」嵌入式工作组: 嵌入式Rust 的 2019

#embeded

概要:

  1. 2018年嵌入式工作组推动了Cortex-M支持的稳定。
  2. 通过构建更多“有趣”的东西,例如示例项目,酷应用程序,以及从这些项目中提取和发布可重用组件来集中建立2019年的嵌入式Rust生态系统。
  3. 我们将在夏季(直到2019年9月或10月)将其作为重点
  4. 需要每个拥有GitHub帐号的人来投票,决定使用哪个聊天平台:rfcs/0351-chat-vote

Read More

minsql: 分布式SQL式日志搜索引擎

#sql

通过http接口交互请求,支持简单的SQL语法。

minsql

一些无锁和无等待数据结构的学习资源

文章:

代码语言:javascript
复制
https://preshing.com/20120612/an-introduction-to-lock-free-programming

https://preshing.com/20120625/memory-ordering-at-compile-time

https://preshing.com/20120710/memory-barriers-are-like-source-control-operations

https://preshing.com/20120913/acquire-and-release-semantics

https://preshing.com/20120930/weak-vs-strong-memory-models

https://preshing.com/20121019/this-is-why-they-call-it-a-weakly-ordered-cpu

视频

代码语言:javascript
复制
https://youtu.be/V3omVLzI0WE

https://youtu.be/bY8f4DSkQ6M

https://youtu.be/Fs4-E4Nj1Ks

https://youtu.be/CSqbjfCCLrU

https://youtu.be/C6EWVBNCxsc

leptess: Rust OCR库

#ocr

是leptonica 和 tesseract C库的Rust绑定

leptess

wordsolve:现代填字游戏的简单求解器

#game #puzzle

wordsolve

metrics-facade 发布 0.1

#metrics

metrics-facade提供了类似于log库的宏,这些宏方便开发者收集性能指标(递增计数器、度量表和直方图)来测量其代码。

metrics-facade

「系列文章」用Rust写一个光线追踪器

#Raytracer

  • Part I
  • Part II

如何将Rust应用打包为最小的Docker镜像

#docker

主要是利用多阶段构建的方式,在最后一个阶段将编译好的二进制文件复制到一个最小化镜像里。

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2019-06-12,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 Rust语言学习交流 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Rust 官网简体中文翻译公开测试
  • PingCAP人才计划培训课程:Rust网络应用实践
  • 把GitHub打造成你自己的Cargo Registry
  • 如何在Windows平台上基于MSVC工具链使用gtk-rs
  • 「视频」响应式编译器
  • evc: 一个无锁的同步原语库
  • 「官方」嵌入式工作组: 嵌入式Rust 的 2019
  • minsql: 分布式SQL式日志搜索引擎
  • 一些无锁和无等待数据结构的学习资源
  • leptess: Rust OCR库
  • wordsolve:现代填字游戏的简单求解器
  • metrics-facade 发布 0.1
  • 「系列文章」用Rust写一个光线追踪器
  • 如何将Rust应用打包为最小的Docker镜像
相关产品与服务
容器服务
腾讯云容器服务(Tencent Kubernetes Engine, TKE)基于原生 kubernetes 提供以容器为核心的、高度可扩展的高性能容器管理服务,覆盖 Serverless、边缘计算、分布式云等多种业务部署场景,业内首创单个集群兼容多种计算节点的容器资源管理模式。同时产品作为云原生 Finops 领先布道者,主导开源项目Crane,全面助力客户实现资源优化、成本控制。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档