From cad11cea4ed141e0283583aaf5d814530e26edd6 Mon Sep 17 00:00:00 2001 From: Jason Mobarak Date: Tue, 26 Jan 2021 12:31:51 -0800 Subject: [PATCH 1/3] update libswiftnav pointer --- third-party/libswiftnav | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third-party/libswiftnav b/third-party/libswiftnav index d6a2bbc..1662e4c 160000 --- a/third-party/libswiftnav +++ b/third-party/libswiftnav @@ -1 +1 @@ -Subproject commit d6a2bbc7a1b12f821b2eb059bc926376f606c26c +Subproject commit 1662e4c9873d066c0bcfed8848ec247a7e35c073 From 98a3b67ee1db1889a8b3feea850c66919918f685 Mon Sep 17 00:00:00 2001 From: Jason Mobarak Date: Tue, 26 Jan 2021 12:36:19 -0800 Subject: [PATCH 2/3] bump --- third-party/libswiftnav | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third-party/libswiftnav b/third-party/libswiftnav index 1662e4c..0a75d04 160000 --- a/third-party/libswiftnav +++ b/third-party/libswiftnav @@ -1 +1 @@ -Subproject commit 1662e4c9873d066c0bcfed8848ec247a7e35c073 +Subproject commit 0a75d043343f9998359b9154be5ddaaef0865038 From 34895ba527d07bebc7565b729c508bc747354ffd Mon Sep 17 00:00:00 2001 From: Jason Mobarak Date: Tue, 26 Jan 2021 13:00:56 -0800 Subject: [PATCH 3/3] fix repr on windows, set stack size --- .cargo/config | 2 ++ src/ephemeris.rs | 3 ++- third-party/libswiftnav | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .cargo/config diff --git a/.cargo/config b/.cargo/config new file mode 100644 index 0000000..6243706 --- /dev/null +++ b/.cargo/config @@ -0,0 +1,2 @@ +[target.x86_64-pc-windows-msvc] +rustflags = ["-C", "link-arg=/STACK:8388608"] diff --git a/src/ephemeris.rs b/src/ephemeris.rs index 4224f2a..0dc6566 100644 --- a/src/ephemeris.rs +++ b/src/ephemeris.rs @@ -36,7 +36,8 @@ type Result = std::result::Result; /// Various statuses that an ephemeris can be in #[derive(Copy, Clone, Debug)] -#[repr(u32)] +#[cfg_attr(windows, repr(i32))] +#[cfg_attr(not(windows), repr(u32))] pub enum Status { Null = c_bindings::ephemeris_status_t_EPH_NULL, Invalid = c_bindings::ephemeris_status_t_EPH_INVALID, diff --git a/third-party/libswiftnav b/third-party/libswiftnav index 0a75d04..d6a2bbc 160000 --- a/third-party/libswiftnav +++ b/third-party/libswiftnav @@ -1 +1 @@ -Subproject commit 0a75d043343f9998359b9154be5ddaaef0865038 +Subproject commit d6a2bbc7a1b12f821b2eb059bc926376f606c26c