Migration vers une forme unifiée des cargos
This commit is contained in:
@@ -4,10 +4,10 @@ version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
serde = "1.0.228"
|
||||
serde = { workspace = true }
|
||||
utoipa = { version = "5.4.0", features = ["axum_extras"] }
|
||||
utoipa-swagger-ui = { version = "9.0.2", features = ["axum"] }
|
||||
quick-xml = { version = "0.38.3", features = ["serialize"] }
|
||||
quick-xml = { workspace = true }
|
||||
bevy_reflect = "0.17.1"
|
||||
bevy_reflect_derive = "0.17.1"
|
||||
pmoutils = { path = "../pmoutils" }
|
||||
|
||||
14
pmodidl/Cargo.toml.backup
Normal file
14
pmodidl/Cargo.toml.backup
Normal file
@@ -0,0 +1,14 @@
|
||||
[package]
|
||||
name = "pmodidl"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
serde = "1.0.228"
|
||||
utoipa = { version = "5.4.0", features = ["axum_extras"] }
|
||||
utoipa-swagger-ui = { version = "9.0.2", features = ["axum"] }
|
||||
quick-xml = { version = "0.38.3", features = ["serialize"] }
|
||||
bevy_reflect = "0.17.1"
|
||||
bevy_reflect_derive = "0.17.1"
|
||||
pmoutils = { path = "../pmoutils" }
|
||||
xmltree = "0.10"
|
||||
@@ -5,6 +5,7 @@
|
||||
use bevy_reflect::Reflect;
|
||||
use pmoutils::ToXmlElement;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::time::SystemTime;
|
||||
use std::{borrow::Cow, time::Instant};
|
||||
use std::collections::HashSet;
|
||||
use std::fmt::Write;
|
||||
@@ -36,7 +37,7 @@ pub struct ParsedMetadata<T> {
|
||||
/// Timestamp du parsing (exclu de la réflexion car SystemTime n'implémente pas Reflect)
|
||||
#[reflect(ignore)]
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub parsed_at: Option<Instant>,
|
||||
pub parsed_at: Option<SystemTime>,
|
||||
}
|
||||
|
||||
impl<T> ParsedMetadata<T> {
|
||||
@@ -44,7 +45,7 @@ impl<T> ParsedMetadata<T> {
|
||||
Self {
|
||||
format: format.into(),
|
||||
data,
|
||||
parsed_at: Some(Instant::now()),
|
||||
parsed_at: Some(SystemTime::now()),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user