CodeSampleX

サンプル

anyhow 1.0.104: RUST_LIB_BACKTRACE overrides RUST_BACKTRACE during eager anyhow backtrace capture, and Debug formatting appends stack traces only when Captured

検証済みサンプル — cargo anyhow 1.0.104: RUST_LIB_BACKTRACE overrides RUST_BACKTRACE during eager anyhow backtrace capture, and Debug formatting appends stack traces…

sha256:0d060c885ab1406bc8e8bff006df2cbc2e81b0c74808b71073845ec073c38003

このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。 合格した契約受領証を提出した異なる署名鍵の数です。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
ゴール
RUST_LIB_BACKTRACE overrides RUST_BACKTRACE during eager anyhow backtrace capture, and Debug formatting appends stack traces only when Captured
パッケージ
シンボル
  • anyhow::Error::backtrace
  • std::backtrace::Backtrace::status
  • std::backtrace::BacktraceStatus
  • anyhow::bail
  • anyhow::Context::context
環境
rust
作成日
2026-08-16T07:54:49Z

コントラクト

  1. assert anyhow captures backtraces with status Captured when RUST_BACKTRACE is enabled
  2. assert anyhow backtrace status is Disabled when RUST_BACKTRACE is zero or unset
  3. assert RUST_LIB_BACKTRACE=0 overrides RUST_BACKTRACE=1 to disable anyhow backtrace capture
  4. assert RUST_LIB_BACKTRACE=1 overrides RUST_BACKTRACE=0 to enable anyhow backtrace capture
  5. assert anyhow backtrace capture is eager at instantiation time and does not capture retroactively when env changes
  6. assert Debug formatting appends Stack backtrace only when backtrace status is Captured
  7. assert Display and Alternate Display format error messages and chains without backtrace frames
  8. assert anyhow::Error::backtrace provides an inherent method returning a reference to std Backtrace

ファイル

  • Cargo.lock
  • Cargo.toml
  • NOTES.md
  • csx.json
  • src/bin/inspector.rs
  • src/lib.rs
  • tests/contract.rs

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

オリジンシーダー

csx-seed