前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【Rust 日报】2020-06-10 RustCrypto 发布了多种密码学库

【Rust 日报】2020-06-10 RustCrypto 发布了多种密码学库

作者头像
MikeLoveRust
发布2020-06-19 16:16:11
8260
发布2020-06-19 16:16:11
举报

RustCrypto 发布了多种密码学库

新发布的密码学库包括:aead, block-cipher, crypto-mac, digest, signature, stream-cipher 等,其中几乎所有的 crates 都是用纯 Rust 开发的。

https://github.com/RustCrypto

Smooshmonkey:Firefox 的 Rust 解析器

https://bugzilla.mozilla.org/show_bug.cgi?id=smooshmonkey

WASM3 的 Rust wrapper

一个简单的例子:加载 wasm 模块然后导出一个将两数相加的函数:

代码语言:javascript
复制
use wasm3::Environment;
use wasm3::Module;

fn main() {
    let env = Environment::new().expect("Unable to create environment");
    let rt = env
        .create_runtime(1024 * 60)
        .expect("Unable to create runtime");
    let module = Module::parse(&env, &include_bytes!("wasm/wasm_add/wasm_add.wasm")[..])
        .expect("Unable to parse module");

    let module = rt.load_module(module).expect("Unable to load module");
    let func = module
        .find_function::<(i64, i64), i64>("add")
        .expect("Unable to find function");
    println!("Wasm says that 3 + 6 is {}", func.call(3, 6).unwrap())
}

Rust 命令行 Nushell 新版本发布

https://www.nushell.sh/blog/2020/06/09/nushell_0_15_0.html

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

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

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

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

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • RustCrypto 发布了多种密码学库
  • Smooshmonkey:Firefox 的 Rust 解析器
  • WASM3 的 Rust wrapper
  • Rust 命令行 Nushell 新版本发布
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档