File tree Expand file tree Collapse file tree 3 files changed +1008
-1
lines changed Expand file tree Collapse file tree 3 files changed +1008
-1
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,14 @@ readme = "README.md"
8
8
repository = " https://github.com/swift-nav/swiftnav-rs"
9
9
license = " LGPL-3.0"
10
10
11
+ [dependencies ]
12
+ chrono = { version = " 0.4" , optional = true }
13
+
11
14
[build-dependencies ]
12
15
bindgen = " 0.59"
13
16
cmake = " 0.1"
14
17
15
18
[features ]
16
19
default = [" testcpp" ]
17
20
testcpp = []
21
+ chrono-support = [" chrono" ]
Original file line number Diff line number Diff line change @@ -61,9 +61,21 @@ fn main() {
61
61
. blocklist_type ( "u16" )
62
62
. blocklist_type ( "u32" )
63
63
. allowlist_type ( "gps_time_t" )
64
+ . allowlist_type ( "utc_params_t" )
65
+ . allowlist_type ( "utc_tm" )
64
66
. allowlist_function ( "gpsdifftime" )
65
67
. allowlist_function ( "gps_time_valid" )
66
68
. allowlist_function ( "add_secs" )
69
+ . allowlist_function ( "decode_utc_parameters" )
70
+ . allowlist_function ( "gps2utc" )
71
+ . allowlist_function ( "date2mjd" )
72
+ . allowlist_function ( "mjd2utc" )
73
+ . allowlist_function ( "utc2mjd" )
74
+ . allowlist_function ( "date2utc" )
75
+ . allowlist_function ( "get_gps_utc_offset" )
76
+ . allowlist_function ( "is_leap_second_event" )
77
+ . allowlist_function ( "round_to_epoch" )
78
+ . allowlist_function ( "floor_to_epoch" )
67
79
. allowlist_var ( "FLOAT_EQUALITY_EPS" )
68
80
. allowlist_var ( "MINUTE_SECS" )
69
81
. allowlist_var ( "HOUR_SECS" )
You can’t perform that action at this time.
0 commit comments