博客
关于我
【Rust日报】2020-11-09 构建可测试性的 Rust 工程
阅读量:685 次
发布时间:2019-03-17

本文共 1512 字,大约阅读时间需要 5 分钟。

构建可测试性的 Rust 工程

这个文本中讨论了如何组织 Rust 项目以提高测试性以及几个相关项目的示例。

近期 Reddit 上有不少讨论关于 Rust 工程的组织方式以及如何实现更完善的测试。而下面提供的文章中的例子展示了一个 Web 服务,在 Rust 中如何组织模块以及如何让代码更具测试性。

原文链接: medium.com/better-programming/structuring-rust-project-for-testability-18207b5d0243

antler: 一个无纹理的渲染引擎

ANTLER 是一个无纹理渲染引擎。开发者可以通过编写特定格式的配置文件来实现炫酷效果。例如:

{    "tree": {        "Here": {            "tar_tris": 5,            "max_depth": 8,            "padding": 0.01        }    },    "sett": {        "There": "sett/standard.json5"    },    "shader": {        "There": "shaders/nice.json5"    },    "surfs": {        "There": "scenes/path.json5"    },    "attrs": {        "There": "attrs/path.json5"    },    "cols": {        "There": "cols/path.json5"    },    "cam": {        "Here": {            "pos": [-52, 0, 7],            "tar": [-4.5, 0, 1.2],            "lens": {                "Perspective": {                    "fov": 60.0                }            },            "aspect": "Square",            "update_size": 400        }    }}

该引擎支持通过配置文件加载各种资源文件,用户可以根据需求进行调整和扩展。

Rust for gophers

这是为 Golang 开发者设计的一系列教程,旨在帮助他们快速学习 Rust。涵盖了从基础到高级的内容,帮助 Go 开发者更好地理解 Rust 的核心概念。目前教程内容到第六章,内容与 Golang 的熟悉度高度匹配。

原文链接: levpaul.com/posts/rust-lesson-5-and-6/

使用 Rust 创造一门新语言: 函数调用

这是《使用 Rust 创造一门新语言》系列中的最新章节,聚焦于函数调用机制。该章节详细讲解了如何在新语言中实现函数的调用,涵盖了返回类型、变量传递以及错误处理等内容。

原文链接: arzg.github.io/lang/9/

email-parser: 解析最快的邮件库

email-parser 是一个无依赖的邮件解析库,据称解析速度最快。该库针对性能优化,适合处理大量邮件数据。

GitHub 地址: GitHub.com/Mubelotix/email-parser

社区资源

  • Rustcc 论坛: 支持 RSS 订阅
  • 微信公众号: Rust 语言中文社区

转载地址:http://ijohz.baihongyu.com/

你可能感兴趣的文章
NO 157 去掉禅道访问地址中的zentao
查看>>
no available service ‘default‘ found, please make sure registry config corre seata
查看>>
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
查看>>
no connection could be made because the target machine actively refused it.问题解决
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
查看>>
No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
查看>>
No mapping found for HTTP request with URI [/logout.do] in DispatcherServlet with name 'springmvc'
查看>>
No module named 'crispy_forms'等使用pycharm开发
查看>>
No module named cv2
查看>>
No module named tensorboard.main在安装tensorboardX的时候遇到的问题
查看>>
No module named ‘MySQLdb‘错误解决No module named ‘MySQLdb‘错误解决
查看>>
No new migrations found. Your system is up-to-date.
查看>>
No qualifying bean of type XXX found for dependency XXX.
查看>>
No qualifying bean of type ‘com.netflix.discovery.AbstractDiscoveryClientOptionalArgs<?>‘ available
查看>>
No resource identifier found for attribute 'srcCompat' in package的解决办法
查看>>
no session found for current thread
查看>>
No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
查看>>
NO.23 ZenTaoPHP目录结构
查看>>