File tree Expand file tree Collapse file tree 2 files changed +12
-31
lines changed Expand file tree Collapse file tree 2 files changed +12
-31
lines changed Original file line number Diff line number Diff line change @@ -19,32 +19,6 @@ trace:
19
19
RUST_LOG=warn,dkn_compute=trace,libp2p=debug \
20
20
cargo run --bin dkn-compute
21
21
22
- .PHONY : ollama-versions
23
- ollama-versions :
24
- @cat Cargo.lock | grep " https://github.com/andthattoo/ollama-workflows"
25
- @cat Cargo.lock | grep " https://github.com/andthattoo/ollama-rs"
26
-
27
- .PHONY : test # | Run tests
28
- test :
29
- cargo test --workspace
30
-
31
- # ##############################################################################
32
- .PHONY : lint # | Run linter (clippy)
33
- lint :
34
- cargo clippy --workspace
35
-
36
- .PHONY : format # | Run formatter (cargo fmt)
37
- format :
38
- cargo fmt -v
39
-
40
- .PHONY : version # | Print version
41
- version :
42
- @cargo pkgid | cut -d@ -f2
43
-
44
- .PHONY : docs # | Generate & open documentation
45
- docs :
46
- cargo doc --open --no-deps --document-private-items
47
-
48
22
# https://stackoverflow.com/a/45843594
49
23
.PHONY : help # | List targets
50
24
help :
Original file line number Diff line number Diff line change @@ -87,31 +87,38 @@ docker compose --profile=ollama-cuda up
87
87
docker compose --profile=ollama-rocm up
88
88
```
89
89
90
+ Note that we are very dependent on Ollama packages, and it is important to check their versions if relevant:
91
+
92
+ ``` sh
93
+ @cat Cargo.lock | grep " https://github.com/andthattoo/ollama-workflows"
94
+ @cat Cargo.lock | grep " https://github.com/andthattoo/ollama-rs"
95
+ ```
96
+
90
97
### Testing
91
98
92
99
You can the tests as follows:
93
100
94
101
``` sh
95
- make test
102
+ cargo test --workspace
96
103
```
97
104
98
105
We also have some benchmarking and profiling scripts, see [ node performance] ( ./docs/NODE_PERFORMANCE.md ) for more details.
99
106
100
107
### Documentation
101
108
102
- You can view the inline documentation with:
109
+ You can view the entire crate-level documentation with:
103
110
104
111
``` sh
105
- make docs
112
+ cargo doc --open --no-deps --document-private-items
106
113
```
107
114
108
115
### Styling
109
116
110
117
Lint and format with:
111
118
112
119
``` sh
113
- make lint # clippy
114
- make format # rustfmt
120
+ cargo clippy --workspace
121
+ cargo fmt -v
115
122
```
116
123
117
124
### Profiling
You can’t perform that action at this time.
0 commit comments