Commit Graph
5 Commits
Author SHA1 Message Date
ripytide 536c670e0d refactor to use Packages more and fix PartialEq,Ord impls on Package to all be consistent with each other 2024-04-25 14:11:19 +01:00
ripytide 17e42ca435 Backend trait refactors
- Refactor the confusing/bodgy consts backend macro to use a single
  `BackendInfo` struct
- Combine `supports_as_dependency()` and the `switches_dependency` into a single `Option` type as that is a better representation as it is an optional backend feature.
- Add more types like `Packages`, `Sections` for uniformity.
- Added a crate-private prelude and switches all imports to use a
  prelude glob import (excluding functions because it's nice to only be
  importing types)
- Refactored Backend section name in logging by implementing Display for
  `AnyBackend` that just prints the `section`
2024-04-24 17:03:42 +01:00
ripytide a5880f614e declarative cli and core: refactor 2024-04-22 16:59:23 +01:00
ripytide df5b229d23 major overhaul of Backend from dynamic to static dispatch using an big enum 2024-04-22 14:08:53 +01:00
ripytide b473f8e432 restructure project into a virtual manifest
- remove redundant readme
- de-duplicate Cargo.toml information using workspace inheritance
- rename "pacdef_core" to "pacdef"
- move "crates/main/main.rs" to "crates/pacdef/src/main.rs"
2024-04-13 14:37:12 +01:00