2 Commits

Author SHA1 Message Date
Wouter Bokslag
71caafae96 Standardized code formatting conventions and linting
Added a rustfmt.toml to define code formatting conventions for the project.
Applied said format to entire codebase.
2026-02-19 17:19:44 +01:00
Wouter Bokslag
c9c20a9abe Massive restructuring and refactor
Although functional changes are limited, I've massively refactored and restructured the codebase into several separate crates.
- tetra-core features functionality and data that are used throughout the stack
- tetra-saps contains definitions for all SAP message types
- tetra-config contains everything that has to do with toml-based config file parsing and conversion to the internally-used datastructures
- tetra-pdus features entity-related PDU definitions, including field struct types and enums
- tetra-entities features implementations for TETRA entities, split between BS and MS use cases. It also holds subcomponents like schedulers and decoding tools.

A separate bins folder is made, which may hold any current and future binary targets we want to compile. Right now we have:
- tetra-bluestation-bs, which compiles the core base station binary
- pdu-tool, which is a crude, buggy, ad hoc tool to parse certain pdu types for stack debugging purposes
2026-01-17 16:58:09 +01:00