Key Features Learn how concurrency works in Rust and why it is safe Get to know the different philosophies of error handling and how to use them wisely After reading this book, you will be able to migrate your legacy C or C++ application to a Rust environment Book Description If concurrent programs are giving you sleepless nights, Rust is your go-to language. Being one of the first ever comprehensive books on Rust, it is filled with real-world examples and explanations, showing you how you can build scalable and reliable programs for your organization. We'll teach you intermediate to advanced level concepts that make Rust a great language. Improving performance, using generics, building macros, and working with threads are just some of the topics we'll cover. We'll talk about the official toolsets and ways to discover more. The book contains a mix of theory interspersed with hands-on tasks, so you acquire the skills as well as the knowledge. Since programming cannot be learned by just reading, we provide exercises (and solutions) to hammer the concepts in. After reading this book, you will be able to implement Rust for your enterprise project, deploy the software, and will know the best practices of coding in Rust.
2023-07-19 11:13:58 18.63MB Rust
1
锈-pixi-js 需要每晚的Rust工具集,wasm-bindgen和npm。 build.sh和clean.sh脚本可构建和清理项目。 run_server.sh在运行webpack-dev-server。
2023-07-19 11:06:36 109KB Rust
1
pam-Linux插入式身份验证模块(PAM)的Safe Rust API 注意:目前仅支持开箱即用的基本用户名/密码认证。 警告 通过env模块提供的环境支持可能已损坏,并且不应在当前状态下使用! 用法 将pam添加到您的Cargo.toml: [ dependencies ] pam = " 0.7.0 " 使用Authenticator结构进行身份验证并打开会话 extern crate pam; pub fn main () { let service = "" ; let user = "" ; let password = "" ; let mut auth = pam :: Authenticator :: with_password (service). unwr
2023-06-30 11:14:48 25KB rust authentication pam linux-pam
1
编码原 提供一个构建器API,以协助生成Rust代码。 有关此板条箱的更多信息,请参见 安装 要使用codegen ,首先将其添加到您的Cargo.toml : [ dependencies ] codegen = " 0.1.3 " 接下来,将其添加到您的板条箱中: extern crate codegen; 用法 创建一个Scope实例。 使用构建器API将元素添加到范围。 调用Scope::to_string()以获取生成的代码。 例如: use codegen :: Scope; let mut scope = Scope :: new (); scope. new_struct ( "Foo" ) . derive ( "Debug" ) . field ( "one" , "usize" ) . field ( "two" , "Stri
2023-06-25 17:53:08 24KB Rust
1
Rust 程序设计语言 简体中文版, Rust 入门必备。 一本关于 Rust 的介绍书籍。 Rust 是一个安全、速度和并发的编程语言。 他的设计不仅可以使程序获得性能和对底层语言的控制,并且能够享受高级语言强大的抽象能力。
2023-05-20 09:22:41 77.92MB Rust
1
mpu9250 适用于MPU9250(和某些MPU *设备)和板载AK8963(加速度计+陀螺仪+磁力计IMU)的no_std驱动程序。 什么有效 读取加速度计,陀螺仪,温度传感器和磁力计:原始值,换算值和换算值。 设置DLPF,读数刻度,采样率除数。 读取mpu9250和ak8963的WHO_AM_I寄存器。 获得分辨率和工厂灵敏度。 支持芯片 MPU9250 - Imu和Marg ; MPU9255 Imu MPU9255 ( Imu和Marg ; MPU6500仅Imu 。 笔记 MPU9255在ASIC中具有一些额外的功能,该功能允许一些其他的手势控制,但该芯片与MPU9250相同。 基本用法 将作为依赖项包含在Cargo.toml中 : [dependencies.mpu9250] version = "" 使用embedded-hal实现获取SP
2023-04-24 17:30:50 39KB Rust
1
定价博弈matlab代码递归词典搜索 该代码实现了RLS方法并解决了Bertrand的定价和投资博弈,该论文在“递归词典搜索:找到有限状态定向动态博弈的所有马尔可夫完美均衡”(经济研究评论,2015年)和“ Bertrand Price的动力学”一书中与降低成本的投资竞争”,作者:Fedor Iskhakov,Bertel Schjerning和John Rust。 任何run_leapfrog_ *脚本都将运行该模型的各种版本。 要运行此代码,必须使用C编译器正确配置Matlab(运行mex -setup)并参考(Matlab R2015b)
2023-04-04 21:49:54 262KB 系统开源
1
RustCrypto:关联数据认证加密 (AEAD) 算法 用纯 Rust 编写的经过算法的集合。 AEAD 是高级对称加密原语,可防御各种潜在攻击(即 )。 用法 Crates 功能是根据 crate 中定义的特征来表达的。 板条箱 名称 算法 Crates.io 文档 移动电源 1.49 1.49 aes-siv AES-SIV 1.49 ccm CCM 1.41 chacha20poly1305 (X)ChaCha20Poly1305 1.49 deoxys 脱氧剂-I/II 1.50 eax EAX 1.41 mgm 米高梅 1.41 xsalsa20poly1305 XSalsa20Poly1305 1.49 MSRV 政策 最低支持的 Rust 版本 (MSRV) 可以在未来更改,但将通过次要版本调整来完成。 执照 所有板
2023-03-22 17:14:17 617KB Rust
1
cargo-ndk-为Android构建Rust代码 这个货物扩展处理了从Rust代码库成功构建Android库所需的所有环境配置,并支持生成正确的jniLibs目录结构。 正在安装 cargo install cargo-ndk 您还需要安装所有打算使用的工具链。 最简单的方法如下: rustup target add \ aarch64-linux-android \ armv7-linux-androideabi \ x86_64-linux-android \ i686-linux-android 根据您的用例进行必要的修改。 用法 如果您已将带有Android Studio的NDK安装到其默认位置, cargo ndk将自动检测并使用最新的NDK版本。 可以通过在ANDROID_NDK_HOME环境变量中指定NDK根目录的路径来覆盖它。 示例
2023-03-20 09:43:00 26KB android rust ndk cargo
1
阿尔蒂斯 项目设置 npm install 编译和热重装以进行开发 npm run serve 编译并最小化生产 npm run build 整理和修复文件 npm run lint 自定义配置 请参阅。
2023-03-16 14:30:15 1002KB Rust
1