first pass of merging in warp (doesn't build)

This commit is contained in:
Ryan Ward
2026-07-01 16:08:58 -05:00
parent 2f64909469
commit 4770ac06b5
3662 changed files with 414574 additions and 89772 deletions
+3
View File
@@ -1,2 +1,5 @@
pub mod time;
pub mod uint32;
pub type Time = time::ServerTimestamp;
pub use uint32::Uint32;
+22
View File
@@ -0,0 +1,22 @@
use serde::{Deserialize, Serialize};
/// Wrapper around `u32` for use with the `Uint` GraphQL scalar.
///
/// Cynic's `impl_scalar!` macro can't target a primitive type directly (the
/// orphan rule forbids implementing a foreign trait on a foreign type), so we
/// expose this local newtype instead.
#[derive(Copy, Clone, Debug, Default, Serialize, Deserialize, Eq, PartialEq, Ord, PartialOrd)]
#[serde(transparent)]
pub struct Uint32(pub u32);
impl From<u32> for Uint32 {
fn from(value: u32) -> Self {
Self(value)
}
}
impl From<Uint32> for u32 {
fn from(value: Uint32) -> Self {
value.0
}
}