构建
- 作者仓库星标 28
- 许可证 Apache-2.0
- 作者仓库 proto-fleet
- 领域
- 工程开发
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 94 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @block · Apache-2.0
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- Linux · Docker
- 运行环境要求
- Docker
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
# asicrs-build
`just build-plugins` and `just test-contract` rebuild ASIC-rs only when its
freshness check (mtime against the `BIN` plus a `find -newer` over
`plugin/asicrs sdk/rust server/sdk/v1/pb`) trips. That check is robust for
typical edits but skips when the binary mtime is newer than the source —
which is true after a clean checkout or when switching branches.
## What to do
1. After editing any source under `plugin/asicrs/`, `sdk/rust/`, or
`server/sdk/v1/pb/`, force a rebuild:
- Local development: `just rebuild-plugin asicrs`
- Docker dev runtime (Linux ARM64): same command — it sets
`_asicrs-build-docker` after removing the platform marker.
2. Run `just test-contract` if the change affects miner-driver behavior.
3. If switching between native and Docker runtimes, expect a full rebuild
the first time — the `.asicrs-platform` marker is what disambiguates.
## What to avoid
- Don't hand-edit `server/plugins/asicrs-config.yaml` to make tests pass —
the contract harness rewrites it per suite, and your edits will be
overwritten.
章节与文件索引
按说明文件中的顺序排列。
该怎么办
要避免什么
文件/命令 -> just build-plugins · just test-contract · BIN · find -newer · plugin/asicrs sdk/rust server/sdk/v1/pb · plugin/asicrs/ · sdk/rust/ · server/sdk/v1/pb/
内容校验值 -> cb974c79335a
当前原文的自动摘译,尚未人工审校。
该怎么办
在编辑
plugin/asicrs/、sdk/rust/或server/sdk/v1/pb/下的任何源代码后,强制重建: 本地开发:just rebuild-plugin asicrsDocker 开发运行时(Linux ARM64):相同的命令 — 它在删除平台标记后设置_asicrs-build-docker。要避免什么
不要手动编辑
server/plugins/asicrs-config.yaml来使测试通过——合约工具会按套件重写它,并且您的编辑将被覆盖。