first-render-document tutorial may not run on macOS after a plain cargo build
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- macos, rust
调研方向
从 docs/site/src/content/docs/tutorials/first-render-document.mdx 开始,并检查 scripts/cargo-runtime-library-path.sh。在 macOS 上,测试 target/release/registry-render 是否能在普通 Cargo 构建后运行;如果不能,请采用 Discovery 教程使用的基于 helper 的构建方式。完成条件是教程能够在 macOS 和 Linux 上运行,或者记录 registry-render 不需要 helper。
由索引模型根据 Issue 内容生成。
描述
Problem
docs/site/src/content/docs/tutorials/first-render-document.mdx tells the reader to build with a plain cargo build --release --locked -p registry-render and then run the binary directly. On macOS, a Cargo-built binary that links AWS-LC FIPS cannot run outside Cargo. The library stays in Cargo's build directory, and the binary fails with dyld: Library not loaded: @rpath/libaws_lc_fips_0_14_2_crypto.dylib. #1612 fixed the same problem on the Discovery tutorial.
Unverified: whether registry-render links AWS-LC FIPS at all. If it does not, this issue can be closed.
Proposal
Check on macOS whether target/release/registry-render runs from a shell after a plain build. If it doesn't, build the way the Discovery tutorial now does:
. scripts/cargo-runtime-library-path.sh
registry_cargo_build "$PWD" --locked --release -p registry-render
registry_cargo_build is plain cargo build on Linux and exports DYLD_FALLBACK_LIBRARY_PATH for the current shell on macOS. Every command that runs the binary must stay in that shell.
Done when
The tutorial's build step works as written on macOS and Linux, or this issue records that registry-render does not need the helper.
- 主要语言
- Rust
- 星标
- 2
- 派生
- 0
- 平均合并
- 7 小时 46 分钟
- 30 天内合并 PR
- 199
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
registrystack/registry-stack 的其他 Issue
-
area:breg criticality:p3 documentation triage:needs-implementation
难度 1/5 1 小时以内 新手友好度 86/100
registrystack/registry-stack#1713 ·
维护者通常 1 天内回复
-
area:breg bug criticality:p3 triage:needs-implementation
难度 2/5 1-3 小时 新手友好度 78/100
registrystack/registry-stack#1699 ·
维护者通常 1 天内回复
-
area:breg bug criticality:p3 triage:needs-implementation
难度 2/5 1-3 小时 新手友好度 85/100
registrystack/registry-stack#1682 ·
维护者通常 1 天内回复
-
area:casework bug criticality:p3 triage:needs-implementation
难度 1/5 1 小时以内 新手友好度 88/100
registrystack/registry-stack#1669 ·
维护者通常 1 天内回复
-
area:evidence bug criticality:p3 triage:needs-implementation
难度 2/5 1-3 小时 新手友好度 86/100
registrystack/registry-stack#1665 ·
维护者通常 1 天内回复
查看 registrystack/registry-stack 的全部 Issue
相似的 Issue
-
backend::vllm diffusion multimodal
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
lambdaclass/ethrex#7329 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
shadowsocks/shadowsocks-rust#2186 · 1 条评论 ·
-
C-bug S-awaiting-triage
难度 1/5 1 小时以内 新手友好度 92/100
juspay/hyperswitch#14479 ·
维护者通常 1 天内回复