温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

如何用Rust编写的QUIC实现

发布时间:2021-11-24 14:56:36 来源:亿速云 阅读:233 作者:柒染 栏目:大数据

如何用Rust编写的QUIC实现,相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。

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

一个用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生态系统工作组积极开发的,目前还没有准备好投入生产使用

使用案例

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文件的库 使用案例

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);
   }
}

看完上述内容,你们掌握如何用Rust编写的QUIC实现的方法了吗?如果还想学到更多技能或想了解更多相关内容,欢迎关注亿速云行业资讯频道,感谢各位的阅读!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI