From 1a39932d060a4dfdd68cd1d1443a477c4cb457b8 Mon Sep 17 00:00:00 2001 From: Nixon <43715558+nixonyh@users.noreply.github.com> Date: Wed, 29 Apr 2026 21:32:50 +0800 Subject: [PATCH 1/2] Make `Field: Send + Sync` regardless of `T` Refer to: https://doc.rust-lang.org/reference/subtyping.html (Thanks @MickHarrigan!) --- src/field.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/field.rs b/src/field.rs index 55e196c..5476d35 100644 --- a/src/field.rs +++ b/src/field.rs @@ -55,7 +55,7 @@ pub struct Field { /// Example: `Transform::translation::x` will have a field path /// of `"::translation::x"`. field_path: &'static str, - _marker: PhantomData<(S, T)>, + _marker: PhantomData (S, T)>, } impl Field { From f11ed7b927a0ac9e327604ff9664586e0fe679f8 Mon Sep 17 00:00:00 2001 From: Nixon <43715558+nixonyh@users.noreply.github.com> Date: Wed, 29 Apr 2026 21:33:57 +0800 Subject: [PATCH 2/2] Bump version --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f324de7..af10ec5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,7 +4,7 @@ version = 4 [[package]] name = "field_path" -version = "0.3.0" +version = "0.4.0" dependencies = [ "hashbrown", ] diff --git a/Cargo.toml b/Cargo.toml index 5755485..7695ce8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "field_path" description = "Type-safe, no-std field access and reflection utilities." -version = "0.3.0" +version = "0.4.0" edition = "2024" license = "MIT OR Apache-2.0" repository = "https://github.com/voxell-tech/field_path"