diff --git a/weaponry/Cargo.toml b/weaponry/Cargo.toml index 39fa15f..1e5ee4e 100644 --- a/weaponry/Cargo.toml +++ b/weaponry/Cargo.toml @@ -6,6 +6,8 @@ edition = "2024" [dependencies] pretty_assertions = "1.4.1" rayon = "1.10.0" +rusqlite = "0.33.0" +struct-field-names-as-array = "0.3.0" [dev-dependencies] criterion = { version = "0.5" } diff --git a/weaponry/src/weaponry_structs/equipement_structs.rs b/weaponry/src/weaponry_structs/equipement_structs.rs index 7ba3706..c73bc63 100644 --- a/weaponry/src/weaponry_structs/equipement_structs.rs +++ b/weaponry/src/weaponry_structs/equipement_structs.rs @@ -2,6 +2,8 @@ // File: weaponry/src/weaponry_structs/equipement_structs.rs //! Base equipement structures +use struct_field_names_as_array::FieldNamesAsArray; + use super::{DamageType, NatureTarget, SpecialCategory, WeaponCategory}; /// The final equipement list @@ -34,7 +36,7 @@ pub struct Equipement { /// The inner statistics of the equipement, used across all parts and final weapon #[allow(clippy::missing_docs_in_private_items, missing_docs)] -#[derive(Clone, Default)] +#[derive(Clone, Default, FieldNamesAsArray)] #[cfg_attr(test, derive(Debug, PartialEq))] pub struct InnerStats { pub id: u8,