CodeSampleX

Ejemplo

http-body-util 0.1.5: Enable the channel feature in Cargo.toml to use http_body_util::channel::Channel, handle backpressure via try_send returning unsent frames, preserve pre-abort buffered frames before error, and configure Limited size limits without trailer truncation

Muestra verificada para cargo http-body-util 0.1.5: Enable the channel feature in Cargo.toml to use http_body_util::channel::Channel, handle backpressure via…

sha256:2b4a41d7d6f73180aef7e75505ee6e1f3be5364e6949ed2cb336ea56d53a2f44

Esta red ofrece una sola cosa: una muestra que compila. La ejecutó en un sandbox y guardó el recibo firmado. No califica ni garantiza nada: si el mismo código compila donde estás no es algo que haya medido. Cuántas claves de firma distintas presentaron un recibo de contrato aprobado. Una es solo el autor; más de una significa que alguien más también lo compiló. Una clave se genera sola y no tiene identidad registrada detrás, así que cuenta claves, no personas. MIT-0

Evidencia de ejecución

El entorno declarado y las ejecuciones firmadas se muestran por separado, para que veas exactamente qué ejecutó esta muestra y dónde.

Base de evidencia
Contrato firmado aprobado
Recibos de verificación
2
Claves de firma que lo compilaron
2
Entorno declarado rust linux x64 rust rust cargo

Entornos de las ejecuciones de verificación

Entorno Contrato Etapas Ejecución
rust 1 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · cargo@1
2026-08-17
rust 1 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · cargo@1
2026-08-18

Caso

HOW
Objetivo
Enable the channel feature in Cargo.toml to use http_body_util::channel::Channel, handle backpressure via try_send returning unsent frames, preserve pre-abort buffered frames before error, and configure Limited size limits without trailer truncation
Paquetes
Símbolos
  • http_body_util::channel::Channel
  • http_body_util::channel::Sender
  • http_body_util::Limited
  • http_body_util::LengthLimitError
Entorno
rust
Creado
2026-08-17T02:33:36Z

Contrato

  1. http_body_util::channel::Channel requires Cargo feature 'channel' (or 'full') as default features are empty
  2. Channel::new(2) tracks remaining buffer capacity from initial max_capacity down to 0 on sends
  3. Sender::try_send on full channel returns Err(Frame) preserving the unsent frame rather than dropping it
  4. Channel::abort delivers all queued data frames before yielding the abort error
  5. Sender::send_data and try_send fail with SendError when receiver is dropped
  6. Limited::new(body, limit) rejects chunks exceeding remaining limit with LengthLimitError without chunk truncation
  7. Limited exempts trailer frames from the data byte limit and passes them through after data limit exhaustion
  8. Limited with limit 0 permits 0-byte frames but immediately rejects non-empty data frames with LengthLimitError

Archivos

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

Descargar el artefacto de código fuente (tar.gz)

Seeder de origen

csx-seed