Loading

上一页 1 2 3 4 5 6 7 ··· 85 下一页
摘要: serder version: 1.0 rust version 1.41 (1.31+) 参考 Github 官方文档 创建测试项目 cargo new serde-learn --lib 依赖 Cargo.toml serde = { version = "1.0", features = [" 阅读全文
posted @ 2025-07-02 13:11 RioTian 阅读(244) 评论(0) 推荐(0)
摘要: Rust 版本:1.41.0 (1.24 以上) diesel 版本 1.4.3 使用MySQL进行模块 参考 repo 官网 API Doc Custom types in Diesel 一、Getting Started 1、简介 原则 防止运行时错误 性能 生产性和可扩展性 与Active R 阅读全文
posted @ 2025-07-02 13:09 RioTian 阅读(192) 评论(0) 推荐(0)
摘要: Rust 版本:1.41.0 (1.39.0 以上) 前序文章: Rust Tokio Actix 版本:2.0 参考: 官方网站 创建测试项目 cargo new actix-learn 一、介绍 actix 是 Rust 生态中的 Actor 系统。 actix-web 是 actix acto 阅读全文
posted @ 2025-07-02 13:08 RioTian 阅读(537) 评论(0) 推荐(0)
摘要: Rust 版本:1.41.0 (1.39.0 以上) 前序文章: Rust异步编程 Tokio 版本:0.2 参考: 官方网站 中文官方网站(有点过时) API 文档 创建测试项目 cargo new tokio-learn 一、简介 Tokio是一个事件驱动的非阻塞I / O平台,用于使用Rust 阅读全文
posted @ 2025-07-02 13:07 RioTian 阅读(270) 评论(0) 推荐(0)
摘要: 版本:1.41.0 前序文章: rust 语言 流行异步库 参考: Rust 异步编程(中文版有点滞后) Asynchronous Programming in Rust Rust异步入门 Designing futures for Rust 零成本异步I/O 类似于ES6(JavaScript)中 阅读全文
posted @ 2025-07-02 13:06 RioTian 阅读(129) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2025-06-27 08:29 RioTian 阅读(0) 评论(0) 推荐(0)
摘要: 作者:丹尼尔·P·克拉克 原文链接:https://www.cloudbees.com/blog/lifetimes-in-rust 高级语言很方便地处理我们代码中的每个对象的存活的范围(scope), 我们不需要理解这些对象的生命周期。Rust同样为我们管理着生命周期,我们可以通过所有权(owne 阅读全文
posted @ 2025-06-20 09:33 RioTian 阅读(55) 评论(0) 推荐(0)
摘要: 已有仓库实现 Arc Spaces 导出 html 供 Chrome 使用:Here 在线版本:https://yuriten.github.io/arc-bookmarks-json-to-html/ 检查一下 ~/Library/Application Support/Arc/StorableS 阅读全文
posted @ 2025-06-18 13:24 RioTian 阅读(73) 评论(0) 推荐(0)
摘要: 参考链接:🔗 要使用 zero2prod database,您需要一个 PostgreSQL 客户端,而不是 PostgreSQL 服务器。PostgreSQL 官方安装程序和包 包含运行 PostgreSQL 服务器所需的所有组件,但其中一些组件对于 RisingWave 来说是不必要的。 ps 阅读全文
posted @ 2025-06-15 11:32 RioTian 阅读(97) 评论(0) 推荐(0)
摘要: 如果是想用 Rust 写算法题,可以参考 Egor 大神写的 rust-competitive-helper 里面提供了一个很好用的输入输出框架。还可以配合浏览器插件生成题目代码模板 rust-competitive-helper Egor 也写了一个算法库,关于 Rust 线段树实现也可以参考他的 阅读全文
posted @ 2025-06-12 16:27 RioTian 阅读(19) 评论(0) 推荐(0)
摘要: 版本 1.46.0 仅供参考学习 参考: https://www.rust-lang.org/zh-CN/ https://doc.rust-lang.org/stable/book/ 标准库doc官方 标准库doc中文 Rust 程序设计语言 简体中文版 深入浅出 Rust (微信读书/京东读书可 阅读全文
posted @ 2025-06-06 11:20 RioTian 阅读(173) 评论(0) 推荐(0)
摘要: 官方文档将一个模块拆分成多个文件时,介绍的是将原来多个模块写在同一个文件中,拆分成了每个模块一个文件。不过还有一种情况没有提到,如果一个模块中的某个 struct 实现代码过多时,仍写在同一个模块文件的话,维护成本就显的比较高了,这时我们可能还需要对这个 struct 的实现按某种粒度拆分成多个文件 阅读全文
posted @ 2025-06-06 08:56 RioTian 阅读(90) 评论(0) 推荐(0)
摘要: 以下是VSCode在Mac OS X上存储内容的所有地方,除了Visual Studio Code.app本身,它位于Applications文件夹中: 复制粘贴这一段到终端 rm -fr ~/Library/Preferences/com.microsoft.VSCode.helper.plist 阅读全文
posted @ 2025-05-27 17:11 RioTian 阅读(694) 评论(0) 推荐(0)
摘要: 文章内容链接:Here 阅读全文
posted @ 2025-05-12 10:59 RioTian 阅读(80) 评论(0) 推荐(0)
摘要: import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; impor 阅读全文
posted @ 2025-04-22 10:25 RioTian 阅读(40) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 85 下一页