Files
tines/tines-core/Cargo.toml
T
kyleandClaude Opus 5.5 e2717a930d refactor(core): make Frame and WireError crate-private
Spec §3 (decision D-b) lists `Frame` and `WireError` as private; lib.rs
re-exported both. Only `frame_sender` stays public.

- The pinned vectors in tests/vectors.rs now compile in-crate as a
  `#[cfg(test)] #[path]` module (autotests = false keeps Cargo from also
  building them as an integration test). Every golden vector now checks
  `encode() == GOLDEN` as well as the decode, and new literal vectors pin a
  trailing-byte rejection and an addressed Obs with a nonzero age and an
  `observed_at`.
- A `#[doc(hidden)]` `conformance` module (behind the `conformance`
  feature) gives the fuzz harness byte-level frame encoders/decoders and
  core's local limits without exposing `Frame`. The fuzz_twin test target
  now requires `conformance`, which scripts/ci.sh enables.
- compile_fail doctests pin that `Frame`/`WireError` are unreachable.
- Remove the THROWAWAY gen_missing_golden_vectors test and fix stale
  wire.rs comments about the version/tag byte offsets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 08:44:09 -07:00

55 lines
2.1 KiB
TOML

[package]
name = "tines-core"
version = "1.0.0"
rust-version = "1.82.0"
edition.workspace = true
license.workspace = true
description = "Opportunistic shared memory for mostly-offline robots: a no_std core of content-addressed observations, gossip, and store-and-forward exchange."
authors.workspace = true
repository.workspace = true
readme.workspace = true
documentation = "https://docs.rs/tines-core"
keywords = ["robotics", "gossip", "delay-tolerant", "no-std", "sync"]
categories = ["no-std", "embedded", "network-programming", "science::robotics"]
# Test targets are listed by hand below: `tests/vectors.rs` is not one. It pins
# the wire format against the crate-private `Frame`, so `src/lib.rs` compiles
# it into the unit tests instead (`#[path = "../tests/vectors.rs"]`).
autotests = false
[features]
default = ["alloc"]
alloc = []
# A `no_std`-clean conformance suite ([`store_conformance`]) that concrete
# backends run against themselves to prove they honor the `Store` contract.
# Std-free so it builds with `--no-default-features`; enabled only by the
# backend crates that exercise the suite (MemStore, LogStore, CappedStore).
# It also turns on the `#[doc(hidden)]` `conformance` module, which gives the
# fuzz harness byte-level frame helpers and core's local limits.
conformance = []
[dependencies]
heapless = { version = "0.8", features = ["serde"] }
serde = { version = "1", default-features = false, features = ["derive"] }
postcard = { version = "1", default-features = false }
blake2 = { version = "0.10", default-features = false }
[dev-dependencies]
proptest = "1"
# The fuzz harness lives in `fuzz/` (outside this crate) but is compiled into
# the test suite via a `#[path]` module include to keep it the SAME harness.
# That source names `heapless` directly, so restate it here for the twin.
heapless = { version = "0.8", features = ["serde"] }
[[test]]
name = "pair"
[[test]]
name = "public_api"
# The proptest twin of the `fuzz/` harness builds frames through the hidden
# `conformance` helpers, so it runs only with that feature (as `scripts/ci.sh`
# does) and needs `MemStore` (`alloc`).
[[test]]
name = "fuzz_twin"
required-features = ["alloc", "conformance"]