tpt-kardashev

Rust

Foundation libraries for operating at planetary-to-galactic scale. Covers relativistic time and causality, orbital mechanics, delay-tolerant networking, error-correcting codes, radiation-tolerant computing, verified self-modification and energy accounting. MIT OR Apache-2.0.

0 stars0 forks0 watchersApache License 2.0
astrodynamicsdtnphysicsrelativity

Languages

Rust99.5%Python0.5%
README

tpt-kardashev

Foundation libraries for planetary-to-galactic scale: ten independent Rust crates in one Cargo workspace.

Status: Phase 0 scaffold. The crates are empty skeletons. Scope and order are in todo.md; the design is in spec.txt.

Crates

CrateConcern
tpt-kardashev-archive-codesArchival and error-correcting codes
tpt-kardashev-relativitySpecial and weak-field relativity, causality
tpt-kardashev-radhardRadiation-tolerant computing primitives
tpt-kardashev-energy-ledgerDouble-entry energy accounting
tpt-kardashev-dtnDelay-tolerant networking
tpt-kardashev-astrodynamicsTime scales, frames, orbits
tpt-kardashev-nuclear-plasmaEquilibrium and neutronics
tpt-kardashev-causal-consensusCausal ordering and consensus
tpt-kardashev-isruIn-situ resource planning
tpt-kardashev-reflectVerified self-modification

Dependency graph

Crates have no mandatory dependencies on each other. Optional edges are feature flags only:

  • astrodynamics → relativity (feature relativity)
  • causal-consensus → relativity (feature relativity)
  • isru → energy-ledger (feature energy)
  • reflect, nuclear-plasma: independent

Design principles

  1. One concern per crate, with a small trait-based API.
  2. No mandatory internal dependencies; every crate builds alone.
  3. no_std first, with alloc and std as features.
  4. Zero runtime dependencies by default.
  5. No sibling path dependencies on other repos.
  6. Deterministic: seeded randomness, explicit virtual time.
  7. Errors, not panics; unsafe forbidden except where a crate documents why it needs it.
  8. Reference code is ported, not linked; provenance is recorded in docs/provenance/.
  9. Honest about assumptions; each crate's README says what it does not model.
  10. Only MIT-selectable dependencies (spec §4.5).

Non-goals

  • No applications, daemons, UIs or CLIs beyond examples/.
  • No hardware drivers, flight software buses or ground-station control.
  • No claim of standards compliance or flight qualification.
  • No speculative physics.
  • No bundled datasets (nuclear data, ephemerides). Users supply them.

Building

The toolchain is pinned in rust-toolchain.toml (Rust 1.90.0, MSRV 1.90).

cargo build --workspace
cargo test --workspace
cargo clippy --workspace --all-targets -- -D warnings
cargo deny check licenses

Licence

Dual-licensed under either of

at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this work by you, as defined in the Apache-2.0 licence, shall be dual licensed as above, without any additional terms or conditions. See CONTRIBUTING.md.

Copyright (c) 2026 TPT Solutions.