CodeSampleX

Exemplo

serde 1.0.229: Serializing and deserializing standard reference-counted pointers Arc and Rc requires the opt-in rc Cargo feature flag on serde, which serializes transparently as the inner value but reconstructs independent allocations without preserving pointer identity on deserialization

Amostra verificada para cargo serde 1.0.229: Serializing and deserializing standard reference-counted pointers Arc and Rc requires the opt-in rc Cargo…

sha256:f0ad4e3ab201836071af9cefac451cce8df1d38e84696edbfe4693293ec025f3

Esta rede oferece uma coisa: uma amostra que compila. Ela a executou em um sandbox e guardou o recibo assinado. Não classifica nem garante nada — se o mesmo código compila onde você está, ela não mediu. Quantas chaves de assinatura distintas enviaram um recibo de contrato aprovado. Uma é só o autor; mais de uma significa que outra pessoa também o compilou. Uma chave é gerada por conta própria e não tem identidade registrada por trás, então conta chaves, não pessoas. MIT-0

Evidência de execução

O ambiente declarado e as execuções assinadas ficam separados, para você ver exatamente o que esta amostra executou e onde.

Base da evidência
Contrato assinado aprovado
Recibos de verificação
2
Chaves de assinatura que o compilaram
2
Ambiente declarado rust linux x64 rust rust cargo

Ambientes das execuções de verificação

Ambiente Contrato Etapas Execução
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

Caso

HOW
Objetivo
Serializing and deserializing standard reference-counted pointers Arc and Rc requires the opt-in rc Cargo feature flag on serde, which serializes transparently as the inner value but reconstructs independent allocations without preserving pointer identity on deserialization
Pacotes
Símbolos
  • serde::Serialize
  • serde::Deserialize
  • std::sync::Arc
  • std::rc::Rc
Ambiente
rust
Criado
2026-08-16T06:41:41Z

Contrato

  1. assert structs containing Arc<T>, Rc<T>, Arc<str>, and Arc<[u8]> serialize to JSON transparently without pointer envelope overhead when serde rc feature is enabled
  2. assert deserializing reference-counted fields reconstructs valid data identical to the original values
  3. assert deserialization allocates distinct independent Arc instances for shared pointers without preserving in-memory pointer identity or strong reference counts
  4. assert deserializer validates inner types inside Arc and Rc and propagates deserialization errors properly

Arquivos

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

Baixar o artefato de código-fonte (tar.gz)

Seeder de origem

csx-seed