前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【Rust日报】 2020-05-14 Deno 1.0 发布

【Rust日报】 2020-05-14 Deno 1.0 发布

作者头像
MikeLoveRust
发布2020-05-19 11:14:05
3970
发布2020-05-19 11:14:05
举报

Deno 1.0 发布

deno.land 中的有很大一部分核心代码是使用 Rust 实现的,现在 deno 已经正式发布 1.0 版本啦 ???

Deno 是一个新的运行时,用于在 Web 浏览器之外执行 JavaScript 和 TypeScript。Deno 也有许多 Rust API,比如说 deno_core 和 rusty_v8 crate。这些 API 将继续行迭代。更多信息请看官网介绍:https://deno.land/v1。

deno 开源代码仓库:https://github.com/denoland/deno

如何使用 WASM 作为抽象平台

已经有几种通用运行时可用于在 Rust 程序中运行 Wasm【如:https://github.com/bytecodealliance/wasmtime】。这些运行时为您提供了一个可以运行任意代码的虚拟机,这与细节区分应用程序运行于哪个平台是有区别的。 详细请看博文:http://adventures.michaelfbryan.com/posts/wasm-as-a-platform-for-abstraction/?utm_source=users-forum&utm_medium=social&utm_campaign=wasm-platform-for-abstraction

使用 Tokio-Serde 实现作业队列

这是一个系列博客,在作者的上一个博客中,他使用 tmq(https://github.com/cetra3/tmq) 实现了作业队列。本篇博客作者将使用 tokio-serde 而不是 tmq 来构建具有较小库占用空间的作业队列。

详情请看:https://cetra3.github.io/blog/implementing-a-jobq-with-tokio/

实访 NuShell 作者

NuShell 是 Rust 编写的传统 Unix 与现代开发相结合的 Shell,更多细节请看博文https://notamonadtutorial.com/nushell-the-shell-where-traditional-unix-meets-modern-development-written-in-rust-caf92c2c7c98

在 Rust 中使用全局数据

This guide explains how you can use "global data" in Rust. When I say "global data," I mean data that is loaded near the start of the program and is accessible in almost all of the program.

Possible use cases for global data:

  • App configuration, e.g. weapon characteristics for a game
  • Making data available everywhere without needing to pass it as an argument through all functions (apply this carefully!)
  • Generating Rust code from external data
  • Database connections... or other network resources?
  • A logger, maybe

地址:https://github.com/paulkernfeld/global-data-in-rust


From 日报小组 @Jancd

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

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

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

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

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Deno 1.0 发布
  • 如何使用 WASM 作为抽象平台
  • 使用 Tokio-Serde 实现作业队列
  • 实访 NuShell 作者
  • 在 Rust 中使用全局数据
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档