tpt-dev

Rust

Pure-Rust, no_std-first developer tooling workspace: 30 crates for formal verification, hard real-time, edge AI, post-quantum crypto, FFI and Wasm. Dual-licensed MIT OR Apache-2.0.

0 stars0 forks0 watchersApache License 2.0

Languages

Rust99.6%SMT0.2%C0.1%
README

tpt-dev

Foundational, pure-Rust developer tooling: 33 crates covering formal verification, hard real-time concurrency, edge-AI memory management, post-quantum cryptography and embedded tooling. Four of them are proc-macro companions. Two more are the tpt-dev facade and the cargo tpt command.

Every crate is no_std first, with std behind an optional feature. Hot paths are designed to avoid heap allocation.

Status: pre-release. Nothing is published yet. See todo.md for open work.

Start here

  • New to the project: docs/getting-started.md takes you from a clean checkout to a passing check and a first dependency.
  • Not sure which crate you need: docs/which-crate.md maps problems to crates.
  • Depending on one or more crates: add the tpt-dev facade with feature groups, or depend on single crates directly. The feature and no_std matrix lists what each crate needs.

Crates

The status column uses three levels. alpha means implemented and tested, but the API may change. wip means a known part is partial or missing, and the README of the crate lists the limits.

GroupCrateStatusPurpose
Facadetpt-devalphaOne dependency; feature groups re-export the crates below
Toolingtpt-dev-clialphacargo tpt: the project checks in one command
Formal verificationtpt-dev-solveralphaPure-Rust QF_LRA SMT solver
tpt-dev-contractalpha#[requires] / #[ensures], proved where decidable
tpt-dev-fuzzalphaSolver-guided structural fuzzer
tpt-dev-testalphaProperty testing with invariant generation
tpt-dev-automataalphaState machine verifier: reachability and deadlock
FFI and ASTtpt-dev-headersalphaC header generator from Rust extern "C" items
tpt-dev-ffialphaTypestate sessions for stateful C libraries
tpt-dev-astalphaZero-copy streaming AST parser framework
Real-time and concurrencytpt-dev-asyncalphaHard real-time no_std async executor
tpt-dev-tracealphaZero-allocation distributed tracing
tpt-dev-lockalphaDeadlock-free sync primitives
tpt-dev-memalphaSafe MMIO register framework
Performance and codegentpt-dev-profileralphaSampling profiler with bounded per-sample cost
tpt-dev-benchalphaStatistical benchmarking and CI regression gate
tpt-dev-codecalphaCompile-time validated bit-level serialization
tpt-dev-dslalphaPEG grammar framework and embedded DSL macro
tpt-dev-codegenalphaBuild-time Rust source generation
Developer experiencetpt-dev-docalphaRunnable documentation, static site output
tpt-dev-lintalphaProject-specific lint rules, no compiler plugins
tpt-dev-depalphaDependency graph: cycles, licences, bloat
tpt-dev-mockalphaCompile-time mocking for traits
AI and edgetpt-dev-pagedalphaPaged memory manager for LLM KV-caches
tpt-dev-dispatchalphaHeterogeneous compute task scheduler
Securitytpt-dev-pqcwipML-KEM and ML-DSA; constant-time work is partial
tpt-dev-zkalphaRust-to-R1CS transpiler with circom export
tpt-dev-teewipTEE abstraction; the TrustZone backend is a model only
Debugging and logictpt-dev-replayalphaDeterministic execution recorder and replay
Wasm and hardwaretpt-dev-composewipWasm component parser and linker; plans, does not execute
tpt-dev-simalphaCycle-accurate hardware simulator
Enclaves and telemetrytpt-dev-sinkalphaZero-allocation edge telemetry router

Companion proc-macro crates, which the crates above re-export or depend on: tpt-dev-contract, tpt-dev-dsl-macros, tpt-dev-mock-macros, tpt-dev-zk-macros.

Layout

crates/tpt-dev/           facade: feature groups over the crates
crates/tpt-dev-cli/       cargo-tpt: project checks
crates/tpt-dev-*/         one directory per crate
docs/                     guides
deny.toml                 license policy (cargo-deny)
rust-toolchain.toml       pinned toolchain, with thumbv7em-none-eabihf target

Versioning

All crates share one version. Before 1.0, minor releases may break the API, and patch releases may not. See VERSIONING.md. Changes are recorded in CHANGELOG.md.

Building and checking

cargo tpt check            # fmt, clippy, project lint rules, dependency policy
cargo tpt check --full     # also runs the tests and cargo-deny
cargo test --workspace
cargo build --workspace --exclude tpt-dev-contract --exclude tpt-dev-mock-macros \
  --exclude tpt-dev-zk-macros --exclude tpt-dev-dsl-macros --exclude tpt-dev-dep \
  --exclude tpt-dev-headers --exclude tpt-dev-lint --exclude tpt-dev-cli \
  --target thumbv7em-none-eabihf

cargo tpt runs the same checks as CI. The full list of subcommands is in crates/tpt-dev-cli.

License

Dual-licensed under either of

at your option. Dependencies must offer an MIT-compatible license. Apache-only, GPL and AGPL dependencies are rejected. See CONTRIBUTING.md and deny.toml.