前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【Rust日报】2019-09-23 - 一个用Rust编写的QUIC实现

【Rust日报】2019-09-23 - 一个用Rust编写的QUIC实现

作者头像
MikeLoveRust
发布2019-09-25 15:39:08
1K0
发布2019-09-25 15:39:08
举报

neqo - 一个用Rust编写的QUIC实现

一个用Rust编写的QUIC实现

运行测试http 0.9程序(neqm -client和neqm -server)

  • cargo build
  • ./target/debug/neqo-server 12345 -k key --db ./test-fixture/db
  • ./target/debug/neqo-client http://127.0.0.1:12345/ -o --db ./test-fixture/db

运行测试http3程序(neqm -client和neqm -http3-server)

  • cargo build
  • ./target/debug/neqo-http3-server [::]:12345 --db ./test-fixture/db
  • ./target/debug/neqo-client http://127.0.0.1:12345/ --db ./test-fixture/db

Repo:https://github.com/mozilla/neqo

tide - 授权每个人构建HTTP服务

一个模块化的Web框架围绕async/await进行构建,它是由Rust Async生态系统工作组积极开发的,目前还没有准备好投入生产使用

使用案例

代码语言:javascript
复制
fn main() -> Result<(), std::io::Error> {
    let mut app = tide::App::new();
    app.at("/").get(|_| async move { "Hello, world!" });
    Ok(app.run("127.0.0.1:8000")?)
}

Repo:https://github.com/rustasync/tide

godot-rust - Rust绑定Godot游戏引擎

NativeScript是GDNative的一个扩展,它允许动态库向Godot注册脚本,

Repo:https://github.com/GodotNativeTools/godot-rust

blend - .blend文件的解析器和运行时

它是一个用于Blender解析.blend文件的库 使用案例

代码语言:javascript
复制
use blend::Blend;
/// Prints the name and position of every object
fn main() {
    let blend = Blend::from_path("file.blend");

    for obj in blend.get_by_code(*b"OB") {
        let loc = obj.get_f32_vec("loc");
        let name = obj.get("id").get_string("name");

        println!("\"{}\" at {:?}", name, loc);
    }
}

Repo:https://github.com/lukebitts/blend


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

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

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

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

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • neqo - 一个用Rust编写的QUIC实现
  • tide - 授权每个人构建HTTP服务
  • godot-rust - Rust绑定Godot游戏引擎
  • blend - .blend文件的解析器和运行时
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档