Build fails due to missing `size_of` function
まだ誰も着手していません。
評価
調査の方向性
cargo build が size_of 関数の欠落を報告している、419 行付近の libsql-wal/src/shared_wal.rs を調べます。まず imports とコンパイラが提案する項目を確認し、その後リポジトリで cargo build を実行します。報告された環境で、未解決関数エラーなしに build が完了すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Running a simple cargo build from the latest main (and libsql-server-v0.24.31) results in the following error:
error[E0425]: cannot find function `size_of` in this scope
--> libsql-wal/src/shared_wal.rs:419:80
|
419 | let buf = unsafe { ZeroCopyBoxIoBuf::new_uninit_partial(frame, size_of::<FrameHeader>()) };
| ^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
1 + use core::mem::size_of;
|
1 + use std::mem::size_of;
Importing use std::mem::size_of; in shared_wal.rs seems to allow the build to complete. I'm not a rust dev and I don't really understand the difference between the two imports, so I figured I'd open an issue rather than a pull request.
EDIT: Running latest docker almalinux:9-minimal (eec681af155e) on linux/arm64
- 主要言語
- C
- スター
- 17.3k
- フォーク
- 545
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tursodatabase/libsql のほかの issue
-
Rust local Row::get_value truncates embedded NUL TEXT and panics on malformed UTF-8 (0.9.30)対応中かも @Sanjays2402 が 6 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
tursodatabase/libsql#2285 ·
-
libsql-ffi: broken builds under Nix on macOS対応中かも @frectonz が 55 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
tursodatabase/libsql#2275 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
tursodatabase/libsql#2226 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
tursodatabase/libsql#1892 ·
-
Admin API has no authentication by default, and the flag that fixes it is undocumented対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 3/5 半日 初心者へのやさしさ 30/100
tursodatabase/libsql#2291 ·
tursodatabase/libsql の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
kubernetes-sigs/security-profiles-operator#3597 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
AFLplusplus/AFLplusplus#2903 ·
-
Clean up stale and inaccurate comments in the platform screen and input files対応中かも @RichStephens が今日担当しました。 オープン
難易度 2/5 半日 初心者へのやさしさ 88/100
FujiNetWIFI/fujinet-config#289 ·
メンテナーはふだん 1 日以内に返信
-
category:port-update
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
nasa/cFS-GroundSystem#272 ·