只需这样几步,就可以在github仓库中发布release,也就是别人可以直接下载的打包版本。
git commit -am "release: 0.2.0"
git tag "v0.2.0"
git push
git push --tags
甚至还可以一键给你的包生成一个网站。
https://github.com/axodotdev/cargo-dist?tab=readme-ov-file
用了这个工具,你可以在编译时或运行时自动安装打包 pg 的程序,并在运行时启动独立的pg进程。很方便测试时使用。
https://github.com/theseus-rs/postgresql-embedded
类似的还有这个项目:https://crates.io/crates/pg-embed
No Boilerplate 做的视频,真棒。讲了TDD,讲了具体的事例来说明如何高效地利用Rust编译器来帮助开发。
https://www.youtube.com/watch?v=Kdpfhj3VM04&t=2s
LSM(Log Structured Merge Tree) 是数据库中的重要概念。这里有一个很好的入门教程:https://garrensmith.com/Databases/Log+Structured+Merge+Tree, https://skyzh.github.io/mini-lsm/00-preface.html
https://github.com/redixhumayun/mini-lsm
相当于使用wasm来做中间介质,而不是c。
可参考:https://github.com/thiagodejesus/rust-wasm
--