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工具链不是太满意,所以他自己折腾出一些方案分享出来给其他人减少麻烦:
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
概要:
Read More
minsql: 分布式SQL式日志搜索引擎
#sql
通过http接口交互请求,支持简单的SQL语法。
minsql
一些无锁和无等待数据结构的学习资源
文章:
https://preshing.com/20120612/an-introduction-to-lock-free-programminghttps://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
视频
https://youtu.be/V3omVLzI0WEhttps://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
主要是利用多阶段构建的方式,在最后一个阶段将编译好的二进制文件复制到一个最小化镜像里。详细请看原文。
Read More
日报订阅地址:
独立日报订阅地址:
- Telgram Channel
- 阿里云语雀订阅
- Steemit
- GitHub
社区学习交流平台订阅:
- Rust.cc论坛: 支持rss
- Rust Force: 支持rss
- 微信公众号:Rust语言学习交流