tracklib 0.1.7 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Cargo.lock +95 -75
- data/Cargo.toml +1 -1
- data/lib/tracklib/version.rb +1 -1
- data/src/lib.rs +35 -385
- data/src/polyline.rs +95 -0
- data/src/rwtfile.rs +429 -0
- data/src/surface.rs +143 -0
- data/tracklib.gemspec +4 -1
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8ddddc2a6cbcee95bba0a4f5e4cccc3608cb88fafd25dc2960049d76f9ce2ad7
|
4
|
+
data.tar.gz: 1580cd2583fc1c83bdfe8c9dce567ddbe8396e36c900ceede2fe1ad644ac31cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76a11689892f18018458f875bd7c538b98a8b3dc5823365c25e84e6784e9049acd2f00c841b99b9cb7a2d7daf11ff32af8d9e598eec35688cb46a7a4b643564e
|
7
|
+
data.tar.gz: 9981ec9d1a45fe7eba17139203ec84db7e52dafd16bc07511a8e665be9611fe1da4224a447311076399c0ae5b757d5a3801d6d741110fee05dfd4ec5780b0f08
|
data/Cargo.lock
CHANGED
@@ -1,142 +1,183 @@
|
|
1
1
|
# This file is automatically @generated by Cargo.
|
2
2
|
# It is not intended for manual editing.
|
3
|
+
version = 3
|
4
|
+
|
3
5
|
[[package]]
|
4
6
|
name = "backtrace"
|
5
7
|
version = "0.3.33"
|
6
8
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
9
|
+
checksum = "88fb679bc9af8fa639198790a77f52d345fe13656c08b43afa9424c206b731c6"
|
7
10
|
dependencies = [
|
8
|
-
"backtrace-sys
|
9
|
-
"cfg-if 0.1.9
|
10
|
-
"libc
|
11
|
-
"rustc-demangle
|
11
|
+
"backtrace-sys",
|
12
|
+
"cfg-if 0.1.9",
|
13
|
+
"libc",
|
14
|
+
"rustc-demangle",
|
12
15
|
]
|
13
16
|
|
14
17
|
[[package]]
|
15
18
|
name = "backtrace-sys"
|
16
19
|
version = "0.1.31"
|
17
20
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
21
|
+
checksum = "82a830b4ef2d1124a711c71d263c5abdc710ef8e907bd508c88be475cebc422b"
|
18
22
|
dependencies = [
|
19
|
-
"cc
|
20
|
-
"libc
|
23
|
+
"cc",
|
24
|
+
"libc",
|
21
25
|
]
|
22
26
|
|
23
27
|
[[package]]
|
24
28
|
name = "base64"
|
25
29
|
version = "0.10.1"
|
26
30
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
31
|
+
checksum = "0b25d992356d2eb0ed82172f5248873db5560c4721f564b13cb5193bda5e668e"
|
27
32
|
dependencies = [
|
28
|
-
"byteorder
|
33
|
+
"byteorder",
|
29
34
|
]
|
30
35
|
|
31
36
|
[[package]]
|
32
37
|
name = "build_const"
|
33
38
|
version = "0.2.1"
|
34
39
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
40
|
+
checksum = "39092a32794787acd8525ee150305ff051b0aa6cc2abaf193924f5ab05425f39"
|
35
41
|
|
36
42
|
[[package]]
|
37
43
|
name = "byteorder"
|
38
44
|
version = "1.3.2"
|
39
45
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
46
|
+
checksum = "a7c3dd8985a7111efc5c80b44e23ecdd8c007de8ade3b96595387e812b957cf5"
|
40
47
|
|
41
48
|
[[package]]
|
42
49
|
name = "cc"
|
43
50
|
version = "1.0.38"
|
44
51
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
52
|
+
checksum = "ce400c638d48ee0e9ab75aef7997609ec57367ccfe1463f21bf53c3eca67bf46"
|
45
53
|
|
46
54
|
[[package]]
|
47
55
|
name = "cfg-if"
|
48
56
|
version = "0.1.9"
|
49
57
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
58
|
+
checksum = "b486ce3ccf7ffd79fdeb678eac06a9e6c09fc88d33836340becb8fffe87c5e33"
|
59
|
+
|
60
|
+
[[package]]
|
61
|
+
name = "cfg-if"
|
62
|
+
version = "1.0.0"
|
63
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
64
|
+
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
50
65
|
|
51
66
|
[[package]]
|
52
67
|
name = "crc"
|
53
68
|
version = "1.8.1"
|
54
69
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
70
|
+
checksum = "d663548de7f5cca343f1e0a48d14dcfb0e9eb4e079ec58883b7251539fa10aeb"
|
55
71
|
dependencies = [
|
56
|
-
"build_const
|
72
|
+
"build_const",
|
73
|
+
]
|
74
|
+
|
75
|
+
[[package]]
|
76
|
+
name = "either"
|
77
|
+
version = "1.6.1"
|
78
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
79
|
+
checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
|
80
|
+
|
81
|
+
[[package]]
|
82
|
+
name = "itertools"
|
83
|
+
version = "0.10.1"
|
84
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
85
|
+
checksum = "69ddb889f9d0d08a67338271fa9b62996bc788c7796a5c18cf057420aaed5eaf"
|
86
|
+
dependencies = [
|
87
|
+
"either",
|
57
88
|
]
|
58
89
|
|
59
90
|
[[package]]
|
60
91
|
name = "itoa"
|
61
92
|
version = "0.4.4"
|
62
93
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
94
|
+
checksum = "501266b7edd0174f8530248f87f99c88fbe60ca4ef3dd486835b8d8d53136f7f"
|
63
95
|
|
64
96
|
[[package]]
|
65
97
|
name = "lazy_static"
|
66
|
-
version = "1.
|
98
|
+
version = "1.4.0"
|
67
99
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
100
|
+
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
68
101
|
|
69
102
|
[[package]]
|
70
103
|
name = "leb128"
|
71
104
|
version = "0.2.4"
|
72
105
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
106
|
+
checksum = "3576a87f2ba00f6f106fdfcd16db1d698d648a26ad8e0573cad8537c3c362d2a"
|
73
107
|
|
74
108
|
[[package]]
|
75
109
|
name = "libc"
|
76
110
|
version = "0.2.60"
|
77
111
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
112
|
+
checksum = "d44e80633f007889c7eff624b709ab43c92d708caad982295768a7b13ca3b5eb"
|
78
113
|
|
79
114
|
[[package]]
|
80
115
|
name = "log"
|
81
|
-
version = "0.4.
|
116
|
+
version = "0.4.14"
|
82
117
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
118
|
+
checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710"
|
83
119
|
dependencies = [
|
84
|
-
"cfg-if
|
120
|
+
"cfg-if 1.0.0",
|
85
121
|
]
|
86
122
|
|
87
123
|
[[package]]
|
88
124
|
name = "memchr"
|
89
125
|
version = "2.2.1"
|
90
126
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
127
|
+
checksum = "88579771288728879b57485cc7d6b07d648c9f0141eb955f8ab7f9d45394468e"
|
91
128
|
|
92
129
|
[[package]]
|
93
130
|
name = "nom"
|
94
131
|
version = "4.2.3"
|
95
132
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
133
|
+
checksum = "2ad2a91a8e869eeb30b9cb3119ae87773a8f4ae617f41b1eb9c154b2905f7bd6"
|
96
134
|
dependencies = [
|
97
|
-
"memchr
|
98
|
-
"version_check
|
135
|
+
"memchr",
|
136
|
+
"version_check",
|
99
137
|
]
|
100
138
|
|
101
139
|
[[package]]
|
102
140
|
name = "proc-macro2"
|
103
141
|
version = "0.4.30"
|
104
142
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
143
|
+
checksum = "cf3d2011ab5c909338f7887f4fc896d35932e29146c12c8d01da6b22a80ba759"
|
105
144
|
dependencies = [
|
106
|
-
"unicode-xid
|
145
|
+
"unicode-xid",
|
107
146
|
]
|
108
147
|
|
109
148
|
[[package]]
|
110
149
|
name = "quote"
|
111
150
|
version = "0.6.13"
|
112
151
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
152
|
+
checksum = "6ce23b6b870e8f94f81fb0a363d65d86675884b34a09043c81e5562f11c1f8e1"
|
113
153
|
dependencies = [
|
114
|
-
"proc-macro2
|
154
|
+
"proc-macro2",
|
115
155
|
]
|
116
156
|
|
117
157
|
[[package]]
|
118
158
|
name = "ruby_tracklib"
|
119
159
|
version = "0.1.0"
|
120
160
|
dependencies = [
|
121
|
-
"base64
|
122
|
-
"lazy_static
|
123
|
-
"rutie
|
124
|
-
"rutie-serde
|
125
|
-
"tracklib
|
161
|
+
"base64",
|
162
|
+
"lazy_static",
|
163
|
+
"rutie",
|
164
|
+
"rutie-serde",
|
165
|
+
"tracklib",
|
126
166
|
]
|
127
167
|
|
128
168
|
[[package]]
|
129
169
|
name = "rustc-demangle"
|
130
170
|
version = "0.1.15"
|
131
171
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
172
|
+
checksum = "a7f4dccf6f4891ebcc0c39f9b6eb1a83b9bf5d747cb439ec6fba4f3b977038af"
|
132
173
|
|
133
174
|
[[package]]
|
134
175
|
name = "rutie"
|
135
176
|
version = "0.7.0"
|
136
177
|
source = "git+https://github.com/danlarkin/rutie#6db74585735ca82894d6163357ee4defdc2cdc61"
|
137
178
|
dependencies = [
|
138
|
-
"lazy_static
|
139
|
-
"libc
|
179
|
+
"lazy_static",
|
180
|
+
"libc",
|
140
181
|
]
|
141
182
|
|
142
183
|
[[package]]
|
@@ -144,111 +185,90 @@ name = "rutie-serde"
|
|
144
185
|
version = "0.1.1"
|
145
186
|
source = "git+https://github.com/danlarkin/rutie-serde#de14caea6c73cc479438c0c2b27b528d498e77fc"
|
146
187
|
dependencies = [
|
147
|
-
"log
|
148
|
-
"rutie
|
149
|
-
"serde
|
150
|
-
"serde_json
|
188
|
+
"log",
|
189
|
+
"rutie",
|
190
|
+
"serde",
|
191
|
+
"serde_json",
|
151
192
|
]
|
152
193
|
|
153
194
|
[[package]]
|
154
195
|
name = "ryu"
|
155
196
|
version = "1.0.0"
|
156
197
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
198
|
+
checksum = "c92464b447c0ee8c4fb3824ecc8383b81717b9f1e74ba2e72540aef7b9f82997"
|
157
199
|
|
158
200
|
[[package]]
|
159
201
|
name = "serde"
|
160
202
|
version = "1.0.98"
|
161
203
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
204
|
+
checksum = "7fe5626ac617da2f2d9c48af5515a21d5a480dbd151e01bb1c355e26a3e68113"
|
162
205
|
|
163
206
|
[[package]]
|
164
207
|
name = "serde_json"
|
165
208
|
version = "1.0.40"
|
166
209
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
210
|
+
checksum = "051c49229f282f7c6f3813f8286cc1e3323e8051823fce42c7ea80fe13521704"
|
167
211
|
dependencies = [
|
168
|
-
"itoa
|
169
|
-
"ryu
|
170
|
-
"serde
|
212
|
+
"itoa",
|
213
|
+
"ryu",
|
214
|
+
"serde",
|
171
215
|
]
|
172
216
|
|
173
217
|
[[package]]
|
174
218
|
name = "snafu"
|
175
219
|
version = "0.2.3"
|
176
220
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
221
|
+
checksum = "67a2e16c9b74a09d4bc84ea6e5eb68fef70b4cb14e8ccd26f2de76af2e9c2e8a"
|
177
222
|
dependencies = [
|
178
|
-
"backtrace
|
179
|
-
"snafu-derive
|
223
|
+
"backtrace",
|
224
|
+
"snafu-derive",
|
180
225
|
]
|
181
226
|
|
182
227
|
[[package]]
|
183
228
|
name = "snafu-derive"
|
184
229
|
version = "0.2.3"
|
185
230
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
231
|
+
checksum = "bf96650c2b31fa949780f792025f4ca79fbe87bd723a8b3573dce37be7193b08"
|
186
232
|
dependencies = [
|
187
|
-
"proc-macro2
|
188
|
-
"quote
|
189
|
-
"syn
|
233
|
+
"proc-macro2",
|
234
|
+
"quote",
|
235
|
+
"syn",
|
190
236
|
]
|
191
237
|
|
192
238
|
[[package]]
|
193
239
|
name = "syn"
|
194
240
|
version = "0.15.42"
|
195
241
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
242
|
+
checksum = "eadc09306ca51a40555dd6fc2b415538e9e18bc9f870e47b1a524a79fe2dcf5e"
|
196
243
|
dependencies = [
|
197
|
-
"proc-macro2
|
198
|
-
"quote
|
199
|
-
"unicode-xid
|
244
|
+
"proc-macro2",
|
245
|
+
"quote",
|
246
|
+
"unicode-xid",
|
200
247
|
]
|
201
248
|
|
202
249
|
[[package]]
|
203
250
|
name = "tracklib"
|
204
|
-
version = "0.
|
251
|
+
version = "0.3.0"
|
205
252
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
253
|
+
checksum = "55fa6025741e969d2ea5048d9db488f6a1c8d029993653041b70c95f7c8b6222"
|
206
254
|
dependencies = [
|
207
|
-
"base64
|
208
|
-
"crc
|
209
|
-
"
|
210
|
-
"
|
211
|
-
"
|
212
|
-
"
|
255
|
+
"base64",
|
256
|
+
"crc",
|
257
|
+
"itertools",
|
258
|
+
"leb128",
|
259
|
+
"nom",
|
260
|
+
"serde",
|
261
|
+
"snafu",
|
213
262
|
]
|
214
263
|
|
215
264
|
[[package]]
|
216
265
|
name = "unicode-xid"
|
217
266
|
version = "0.1.0"
|
218
267
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
268
|
+
checksum = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc"
|
219
269
|
|
220
270
|
[[package]]
|
221
271
|
name = "version_check"
|
222
272
|
version = "0.1.5"
|
223
273
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
224
|
-
|
225
|
-
[metadata]
|
226
|
-
"checksum backtrace 0.3.33 (registry+https://github.com/rust-lang/crates.io-index)" = "88fb679bc9af8fa639198790a77f52d345fe13656c08b43afa9424c206b731c6"
|
227
|
-
"checksum backtrace-sys 0.1.31 (registry+https://github.com/rust-lang/crates.io-index)" = "82a830b4ef2d1124a711c71d263c5abdc710ef8e907bd508c88be475cebc422b"
|
228
|
-
"checksum base64 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0b25d992356d2eb0ed82172f5248873db5560c4721f564b13cb5193bda5e668e"
|
229
|
-
"checksum build_const 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "39092a32794787acd8525ee150305ff051b0aa6cc2abaf193924f5ab05425f39"
|
230
|
-
"checksum byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a7c3dd8985a7111efc5c80b44e23ecdd8c007de8ade3b96595387e812b957cf5"
|
231
|
-
"checksum cc 1.0.38 (registry+https://github.com/rust-lang/crates.io-index)" = "ce400c638d48ee0e9ab75aef7997609ec57367ccfe1463f21bf53c3eca67bf46"
|
232
|
-
"checksum cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)" = "b486ce3ccf7ffd79fdeb678eac06a9e6c09fc88d33836340becb8fffe87c5e33"
|
233
|
-
"checksum crc 1.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d663548de7f5cca343f1e0a48d14dcfb0e9eb4e079ec58883b7251539fa10aeb"
|
234
|
-
"checksum itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "501266b7edd0174f8530248f87f99c88fbe60ca4ef3dd486835b8d8d53136f7f"
|
235
|
-
"checksum lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bc5729f27f159ddd61f4df6228e827e86643d4d3e7c32183cb30a1c08f604a14"
|
236
|
-
"checksum leb128 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "3576a87f2ba00f6f106fdfcd16db1d698d648a26ad8e0573cad8537c3c362d2a"
|
237
|
-
"checksum libc 0.2.60 (registry+https://github.com/rust-lang/crates.io-index)" = "d44e80633f007889c7eff624b709ab43c92d708caad982295768a7b13ca3b5eb"
|
238
|
-
"checksum log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7"
|
239
|
-
"checksum memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "88579771288728879b57485cc7d6b07d648c9f0141eb955f8ab7f9d45394468e"
|
240
|
-
"checksum nom 4.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2ad2a91a8e869eeb30b9cb3119ae87773a8f4ae617f41b1eb9c154b2905f7bd6"
|
241
|
-
"checksum proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)" = "cf3d2011ab5c909338f7887f4fc896d35932e29146c12c8d01da6b22a80ba759"
|
242
|
-
"checksum quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)" = "6ce23b6b870e8f94f81fb0a363d65d86675884b34a09043c81e5562f11c1f8e1"
|
243
|
-
"checksum rustc-demangle 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)" = "a7f4dccf6f4891ebcc0c39f9b6eb1a83b9bf5d747cb439ec6fba4f3b977038af"
|
244
|
-
"checksum rutie 0.7.0 (git+https://github.com/danlarkin/rutie)" = "<none>"
|
245
|
-
"checksum rutie-serde 0.1.1 (git+https://github.com/danlarkin/rutie-serde)" = "<none>"
|
246
|
-
"checksum ryu 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c92464b447c0ee8c4fb3824ecc8383b81717b9f1e74ba2e72540aef7b9f82997"
|
247
|
-
"checksum serde 1.0.98 (registry+https://github.com/rust-lang/crates.io-index)" = "7fe5626ac617da2f2d9c48af5515a21d5a480dbd151e01bb1c355e26a3e68113"
|
248
|
-
"checksum serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)" = "051c49229f282f7c6f3813f8286cc1e3323e8051823fce42c7ea80fe13521704"
|
249
|
-
"checksum snafu 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "67a2e16c9b74a09d4bc84ea6e5eb68fef70b4cb14e8ccd26f2de76af2e9c2e8a"
|
250
|
-
"checksum snafu-derive 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "bf96650c2b31fa949780f792025f4ca79fbe87bd723a8b3573dce37be7193b08"
|
251
|
-
"checksum syn 0.15.42 (registry+https://github.com/rust-lang/crates.io-index)" = "eadc09306ca51a40555dd6fc2b415538e9e18bc9f870e47b1a524a79fe2dcf5e"
|
252
|
-
"checksum tracklib 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "97f6f1e9e410c9b8d6b96f1eab38296f3c6aa8cd67d71a5163db6ba2bef9b6e5"
|
253
|
-
"checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc"
|
254
|
-
"checksum version_check 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd"
|
274
|
+
checksum = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd"
|
data/Cargo.toml
CHANGED
@@ -10,7 +10,7 @@ name = "tracklib"
|
|
10
10
|
crate-type = ["cdylib"]
|
11
11
|
|
12
12
|
[dependencies]
|
13
|
-
tracklib = "
|
13
|
+
tracklib = "0.3.0"
|
14
14
|
rutie = {git="https://github.com/danlarkin/rutie", features=["no-link"]}
|
15
15
|
rutie-serde = {git="https://github.com/danlarkin/rutie-serde"}
|
16
16
|
lazy_static = "1.3"
|
data/lib/tracklib/version.rb
CHANGED