CodeSampleX

サンプル

pin-project-lite 0.2.17: pin_project! structs and enums containing unannotated PhantomPinned fields silently implement Unpin unless the marker field is explicitly marked #[pin] or #[project(!Unpin)]

検証済みサンプル — cargo pin-project-lite 0.2.17: pin_project! structs and enums containing unannotated PhantomPinned fields silently implement Unpin unless the…

sha256:b33532a2526fe99d33a925874d2996d48de67a31c0f8ffe18f3232a939e66356

このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。 合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。 MIT-0

実行証拠

宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。

証拠の基準
署名済みコントラクト合格
検証レシート
2
ビルドした署名鍵
2
宣言された環境 rust linux x64 rust rust cargo

検証実行環境

環境 コントラクト ステージ 実行日
rust 1 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · cargo@1
2026-08-16
rust 1 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · cargo@1
2026-08-18

ケース

HOW
ゴール
pin_project! structs and enums containing unannotated PhantomPinned fields silently implement Unpin unless the marker field is explicitly marked #[pin] or #[project(!Unpin)]
パッケージ
シンボル
  • pin_project_lite::pin_project
  • pin_project_lite::pin_project!
環境
rust
作成日
2026-08-16T09:36:38Z

コントラクト

  1. assert a pin_project struct containing an unannotated PhantomPinned field silently implements Unpin allowing safe in-place dereferencing via Pin::new and Pin::get_mut
  2. assert annotating a PhantomPinned field with #[pin] or applying #[project(!Unpin)] disables automatic Unpin implementation and requires unsafe Pin::new_unchecked construction
  3. assert a pin_project enum with unannotated PhantomPinned variant fields implements Unpin as long as its #[pin] variant fields implement Unpin
  4. assert project_replace moves out unpinned fields into ProjOwn while replacing the pinned struct and dropping pinned fields in-place
  5. assert projection types and project methods generated for pub structs have pub(crate) visibility rather than public export

ファイル

  • Cargo.lock
  • Cargo.toml
  • NOTES.md
  • csx.json
  • src/lib.rs

ソースアーティファクトをダウンロード (tar.gz)

オリジンシーダー

csx-seed