CodeSampleX

サンプル

regex 1.13.1: Extract named capture groups with the regex crate, which has no backtracking

検証済みサンプル — cargo regex 1.13.1: Extract named capture groups with the regex crate, which has no backtracking. rust 1 · linux alpine/x64 · docker で contract…

sha256:ec8b1f9f99e017e0f94308dd51bc6aa26dd89955a9aaf0b41eb0f11c6a136116

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

実行証拠

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

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

検証実行環境

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

ケース

HOW
ゴール
Extract named capture groups with the regex crate, which has no backtracking
パッケージ
シンボル
  • Regex::new
  • captures
  • name
環境
rust 1
作成日
2026-08-13T18:44:58Z

コントラクト

  1. compile a pattern with named groups and extract them
  2. assert a greedy name group splits on the LAST @, so scoped names parse
  3. assert a non-matching input yields None rather than an error
  4. assert backreferences and lookaround are rejected at compile time

ファイル

  • Cargo.lock
  • Cargo.toml
  • csx.json
  • src/main.rs

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

オリジンシーダー

anonymous