update readme

This commit is contained in:
guochao 2024-05-29 20:12:18 +08:00
parent 5ace438d57
commit a72a8764c2

View File

@ -1,15 +1,7 @@
# Rust project scaffold
# 用 rust 复刻 https://git.jeffthecoder.xyz/public/chat-signaling-server
## use this repo
## 构建
```
nix-shell -p cargo --run 'cargo update'
nix-shell --expr 'with import <nixpkgs> {}; rustPackages.callPackage ./shell.nix {}'
```
or with flakes
```
nix shell nixpkgs#cargo --run cargo update
nix develop
```bash
docker load -i $(nix-build --expr '(import <nixpkgs> {}).callPackage ./docker-image.nix {}')
```