tpt-carbon
Audit-grade GHG accounting and ESG disclosure (CSRD, TCFD, SEC, ISSB) in Rust. Scope 1/2/3, typed units, full provenance. MIT OR Apache-2.0.
tpt-carbon
Audit-grade GHG (greenhouse gas) accounting and ESG disclosure data models in Rust, by TPT Solutions.
Status: scoping. No code yet. See TODO.md for the roadmap and spec.txt for the design.
Why
EU CSRD and SEC climate rules are turning voluntary ESG reporting into audited filings. Teams using spreadsheets and notebooks need reproducible tooling. There is no serious Rust implementation of the GHG Protocol today.
Principles
- Methodological correctness: every calculation traces to a specific version of the GHG Protocol, PCAF or ISO 14064.
- Provenance on every number: factor used, factor database version, and the activity data behind each emission quantity.
- No floating point for emissions:
rust_decimalplus typed units, so tCO2e and kgCO2e cannot be mixed by accident. - Uncertainty is shown: spend-based Scope 3 estimates carry ranges, not just point values.
Planned crates
| Crate | Purpose |
|---|---|
tpt-carbon-factors | Emission factor schema, GWP tables, DEFRA/eGRID data, ecoinvent loader (schema only) |
tpt-carbon-scope1 | Direct emissions |
tpt-carbon-scope2 | Purchased energy, location- and market-based |
tpt-carbon-scope3 | Value chain (categories 1, 3, 6, 7, 11, 15 first) |
tpt-carbon-inventory | Aggregation, boundaries, base year, intensity |
tpt-carbon-disclosure | TCFD, CSRD ESRS E1, SEC, ISSB data models |
tpt-carbon-pathway | Targets, SBTi trajectories, abatement |
tpt-carbon | Umbrella crate behind features |
Not in scope
Carbon market trading, ESG scoring of third parties, and full life-cycle assessment.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
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 license, shall be dual licensed as above, without any additional terms or conditions.
Copyright (c) TPT Solutions.