Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

first-render-document tutorial may not run on macOS after a plain cargo build

未关闭 适合新手
#1,618 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 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 内容生成。

描述

area:docs area:render bug criticality:p3 triage:needs-implementation

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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

registrystack/registry-stack 的其他 Issue

查看 registrystack/registry-stack 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。