diff --git a/Cargo.lock b/Cargo.lock index 2ca1decb..dd4d5bcc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4340,6 +4340,7 @@ version = "10.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e640d9b0964e9d39df633548591090ab92f7a4567bc31d3891af23471a3365c6" dependencies = [ + "chrono", "lazy_static", "serde_json", "thiserror 2.0.12", diff --git a/modeling-cmds/Cargo.toml b/modeling-cmds/Cargo.toml index cfcae264..caca8cab 100644 --- a/modeling-cmds/Cargo.toml +++ b/modeling-cmds/Cargo.toml @@ -12,7 +12,7 @@ license = "MIT" [dependencies] anyhow = "1.0.97" -chrono = "0.4.39" +chrono = { version = "0.4.39", features = ["serde"] } cxx = { version = "1.0", optional = true } data-encoding = "2.8.0" enum-iterator = "2.1.0" @@ -37,6 +37,7 @@ serde_json = { version = "1.0.139", optional = true } slog = { version = "2.7.0", optional = true } tabled = { version = "0.18", optional = true } ts-rs = { version = "10.1.0", optional = true, features = [ + "chrono-impl", "uuid-impl", "no-serde-warnings", "serde-json-impl", diff --git a/modeling-cmds/src/format/fbx.rs b/modeling-cmds/src/format/fbx.rs index f1411d19..e185113e 100644 --- a/modeling-cmds/src/format/fbx.rs +++ b/modeling-cmds/src/format/fbx.rs @@ -1,5 +1,3 @@ -use crate::datetime::DateTimeLocal; - use parse_display::{Display, FromStr}; use schemars::JsonSchema; use serde::{Deserialize, Serialize}; @@ -30,11 +28,7 @@ pub mod export { pub storage: Storage, /// Timestamp override. - /// - /// This is intended for local integration testing only; it is not provided as an option - /// in the JSON schema. - #[serde(skip)] - pub created: Option, + pub created: Option>, } impl std::fmt::Display for Options { diff --git a/modeling-cmds/src/format/step.rs b/modeling-cmds/src/format/step.rs index 1f6d61dc..4ce831f2 100644 --- a/modeling-cmds/src/format/step.rs +++ b/modeling-cmds/src/format/step.rs @@ -38,11 +38,8 @@ pub mod export { /// /// [KittyCAD co-ordinate system]: ../coord/constant.KITTYCAD.html pub coords: coord::System, + /// Timestamp override. - /// - /// This is intended for local integration testing only; it is not provided as an option - /// in the JSON schema. - #[serde(skip)] pub created: Option>, }