- 源码 316 文件收编为 rusto-rs/ 文件夹,随本仓库管理 - 移除内部 .git(补丁已存档 docs/rusto-rs-metal-patch-20260912.patch,上游可随时 re-clone) - target/ 与 docs/.yarn 缓存不入库;本地改动:ROCR_* 环境变量调优 + Metal 链接修复 + 预处理测试脚本
25 lines
919 B
Markdown
25 lines
919 B
Markdown
# RustODotnet consumer example
|
|
|
|
CI restores `RustODotnet` from current `build.yml` NuGet output, proving package
|
|
contents compile for a fresh consumer. For local work, pack first and restore from
|
|
that package directory:
|
|
|
|
```bash
|
|
dotnet pack ../../packages/dotnet/RustODotnet.csproj -c Release -o ./nupkg
|
|
dotnet restore RustODotnet.Example.sln --source ./nupkg --source https://api.nuget.org/v3/index.json
|
|
```
|
|
|
|
Then:
|
|
|
|
```bash
|
|
dotnet restore RustODotnet.Example.sln
|
|
dotnet build RustODotnet.Example.sln --configuration Release --no-restore
|
|
dotnet test RustODotnet.Example.sln --configuration Release --no-build
|
|
```
|
|
|
|
`RustODotnet.Example` demonstrates canonical `RustO.Initialize` and `DetectText`.
|
|
Without arguments it avoids native OCR. Running OCR needs packaged native runtime assets,
|
|
matching models, and an image path.
|
|
|
|
`RustODotnet.Example.Tests` only tests managed API contract. No model or native library needed.
|