Selaa lähdekoodia

Initial import.

Mathias Gottschlag 6 vuotta sitten
commit
ddaecedc88
7 muutettua tiedostoa jossa 506 lisäystä ja 0 poistoa
  1. 3
    0
      .gitignore
  2. 458
    0
      Cargo.lock
  3. 9
    0
      Cargo.toml
  4. 9
    0
      fswatcher/Cargo.toml
  5. 21
    0
      fswatcher/src/lib.rs
  6. 3
    0
      src/bin/client.rs
  7. 3
    0
      src/bin/server.rs

+ 3
- 0
.gitignore Näytä tiedosto

@@ -0,0 +1,3 @@
1
+/target
2
+**/*.rs.bk
3
+*.swp

+ 458
- 0
Cargo.lock Näytä tiedosto

@@ -0,0 +1,458 @@
1
+# This file is automatically @generated by Cargo.
2
+# It is not intended for manual editing.
3
+[[package]]
4
+name = "autocfg"
5
+version = "0.1.7"
6
+source = "registry+https://github.com/rust-lang/crates.io-index"
7
+
8
+[[package]]
9
+name = "bitflags"
10
+version = "1.2.1"
11
+source = "registry+https://github.com/rust-lang/crates.io-index"
12
+
13
+[[package]]
14
+name = "bytes"
15
+version = "0.5.3"
16
+source = "registry+https://github.com/rust-lang/crates.io-index"
17
+
18
+[[package]]
19
+name = "cfg-if"
20
+version = "0.1.10"
21
+source = "registry+https://github.com/rust-lang/crates.io-index"
22
+
23
+[[package]]
24
+name = "fnv"
25
+version = "1.0.6"
26
+source = "registry+https://github.com/rust-lang/crates.io-index"
27
+
28
+[[package]]
29
+name = "fswatcher"
30
+version = "0.1.0"
31
+
32
+[[package]]
33
+name = "fuchsia-zircon"
34
+version = "0.3.3"
35
+source = "registry+https://github.com/rust-lang/crates.io-index"
36
+dependencies = [
37
+ "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
38
+ "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
39
+]
40
+
41
+[[package]]
42
+name = "fuchsia-zircon-sys"
43
+version = "0.3.3"
44
+source = "registry+https://github.com/rust-lang/crates.io-index"
45
+
46
+[[package]]
47
+name = "futures-channel"
48
+version = "0.3.1"
49
+source = "registry+https://github.com/rust-lang/crates.io-index"
50
+dependencies = [
51
+ "futures-core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
52
+]
53
+
54
+[[package]]
55
+name = "futures-core"
56
+version = "0.3.1"
57
+source = "registry+https://github.com/rust-lang/crates.io-index"
58
+
59
+[[package]]
60
+name = "futures-sink"
61
+version = "0.3.1"
62
+source = "registry+https://github.com/rust-lang/crates.io-index"
63
+
64
+[[package]]
65
+name = "futures-task"
66
+version = "0.3.1"
67
+source = "registry+https://github.com/rust-lang/crates.io-index"
68
+
69
+[[package]]
70
+name = "futures-util"
71
+version = "0.3.1"
72
+source = "registry+https://github.com/rust-lang/crates.io-index"
73
+dependencies = [
74
+ "futures-core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
75
+ "futures-task 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
76
+ "pin-utils 0.1.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)",
77
+]
78
+
79
+[[package]]
80
+name = "h2"
81
+version = "0.2.1"
82
+source = "registry+https://github.com/rust-lang/crates.io-index"
83
+dependencies = [
84
+ "bytes 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)",
85
+ "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
86
+ "futures-core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
87
+ "futures-sink 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
88
+ "futures-util 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
89
+ "http 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
90
+ "indexmap 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
91
+ "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
92
+ "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
93
+ "tokio 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)",
94
+ "tokio-util 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
95
+]
96
+
97
+[[package]]
98
+name = "http"
99
+version = "0.2.0"
100
+source = "registry+https://github.com/rust-lang/crates.io-index"
101
+dependencies = [
102
+ "bytes 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)",
103
+ "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
104
+ "itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)",
105
+]
106
+
107
+[[package]]
108
+name = "http-body"
109
+version = "0.3.1"
110
+source = "registry+https://github.com/rust-lang/crates.io-index"
111
+dependencies = [
112
+ "bytes 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)",
113
+ "http 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
114
+]
115
+
116
+[[package]]
117
+name = "httparse"
118
+version = "1.3.4"
119
+source = "registry+https://github.com/rust-lang/crates.io-index"
120
+
121
+[[package]]
122
+name = "hyper"
123
+version = "0.13.1"
124
+source = "registry+https://github.com/rust-lang/crates.io-index"
125
+dependencies = [
126
+ "bytes 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)",
127
+ "futures-channel 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
128
+ "futures-core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
129
+ "futures-util 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
130
+ "h2 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
131
+ "http 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
132
+ "http-body 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
133
+ "httparse 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
134
+ "itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)",
135
+ "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
136
+ "net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)",
137
+ "pin-project 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
138
+ "time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)",
139
+ "tokio 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)",
140
+ "tower-service 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
141
+ "want 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
142
+]
143
+
144
+[[package]]
145
+name = "indexmap"
146
+version = "1.3.0"
147
+source = "registry+https://github.com/rust-lang/crates.io-index"
148
+dependencies = [
149
+ "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
150
+]
151
+
152
+[[package]]
153
+name = "iovec"
154
+version = "0.1.4"
155
+source = "registry+https://github.com/rust-lang/crates.io-index"
156
+dependencies = [
157
+ "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)",
158
+]
159
+
160
+[[package]]
161
+name = "itoa"
162
+version = "0.4.4"
163
+source = "registry+https://github.com/rust-lang/crates.io-index"
164
+
165
+[[package]]
166
+name = "kernel32-sys"
167
+version = "0.2.2"
168
+source = "registry+https://github.com/rust-lang/crates.io-index"
169
+dependencies = [
170
+ "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
171
+ "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
172
+]
173
+
174
+[[package]]
175
+name = "lazy_static"
176
+version = "1.4.0"
177
+source = "registry+https://github.com/rust-lang/crates.io-index"
178
+
179
+[[package]]
180
+name = "libc"
181
+version = "0.2.66"
182
+source = "registry+https://github.com/rust-lang/crates.io-index"
183
+
184
+[[package]]
185
+name = "log"
186
+version = "0.4.8"
187
+source = "registry+https://github.com/rust-lang/crates.io-index"
188
+dependencies = [
189
+ "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
190
+]
191
+
192
+[[package]]
193
+name = "memchr"
194
+version = "2.2.1"
195
+source = "registry+https://github.com/rust-lang/crates.io-index"
196
+
197
+[[package]]
198
+name = "mio"
199
+version = "0.6.21"
200
+source = "registry+https://github.com/rust-lang/crates.io-index"
201
+dependencies = [
202
+ "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
203
+ "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
204
+ "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
205
+ "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
206
+ "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
207
+ "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)",
208
+ "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
209
+ "miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
210
+ "net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)",
211
+ "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
212
+ "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
213
+]
214
+
215
+[[package]]
216
+name = "miow"
217
+version = "0.2.1"
218
+source = "registry+https://github.com/rust-lang/crates.io-index"
219
+dependencies = [
220
+ "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
221
+ "net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)",
222
+ "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
223
+ "ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
224
+]
225
+
226
+[[package]]
227
+name = "net2"
228
+version = "0.2.33"
229
+source = "registry+https://github.com/rust-lang/crates.io-index"
230
+dependencies = [
231
+ "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
232
+ "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)",
233
+ "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
234
+]
235
+
236
+[[package]]
237
+name = "pin-project"
238
+version = "0.4.6"
239
+source = "registry+https://github.com/rust-lang/crates.io-index"
240
+dependencies = [
241
+ "pin-project-internal 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
242
+]
243
+
244
+[[package]]
245
+name = "pin-project-internal"
246
+version = "0.4.6"
247
+source = "registry+https://github.com/rust-lang/crates.io-index"
248
+dependencies = [
249
+ "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
250
+ "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
251
+ "syn 1.0.11 (registry+https://github.com/rust-lang/crates.io-index)",
252
+]
253
+
254
+[[package]]
255
+name = "pin-project-lite"
256
+version = "0.1.1"
257
+source = "registry+https://github.com/rust-lang/crates.io-index"
258
+
259
+[[package]]
260
+name = "pin-utils"
261
+version = "0.1.0-alpha.4"
262
+source = "registry+https://github.com/rust-lang/crates.io-index"
263
+
264
+[[package]]
265
+name = "proc-macro2"
266
+version = "1.0.6"
267
+source = "registry+https://github.com/rust-lang/crates.io-index"
268
+dependencies = [
269
+ "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
270
+]
271
+
272
+[[package]]
273
+name = "quote"
274
+version = "1.0.2"
275
+source = "registry+https://github.com/rust-lang/crates.io-index"
276
+dependencies = [
277
+ "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
278
+]
279
+
280
+[[package]]
281
+name = "redox_syscall"
282
+version = "0.1.56"
283
+source = "registry+https://github.com/rust-lang/crates.io-index"
284
+
285
+[[package]]
286
+name = "slab"
287
+version = "0.4.2"
288
+source = "registry+https://github.com/rust-lang/crates.io-index"
289
+
290
+[[package]]
291
+name = "syn"
292
+version = "1.0.11"
293
+source = "registry+https://github.com/rust-lang/crates.io-index"
294
+dependencies = [
295
+ "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
296
+ "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
297
+ "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
298
+]
299
+
300
+[[package]]
301
+name = "time"
302
+version = "0.1.42"
303
+source = "registry+https://github.com/rust-lang/crates.io-index"
304
+dependencies = [
305
+ "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)",
306
+ "redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)",
307
+ "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
308
+]
309
+
310
+[[package]]
311
+name = "tokio"
312
+version = "0.2.6"
313
+source = "registry+https://github.com/rust-lang/crates.io-index"
314
+dependencies = [
315
+ "bytes 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)",
316
+ "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
317
+ "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
318
+ "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
319
+ "memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
320
+ "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)",
321
+ "pin-project-lite 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
322
+ "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
323
+]
324
+
325
+[[package]]
326
+name = "tokio-util"
327
+version = "0.2.0"
328
+source = "registry+https://github.com/rust-lang/crates.io-index"
329
+dependencies = [
330
+ "bytes 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)",
331
+ "futures-core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
332
+ "futures-sink 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
333
+ "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
334
+ "pin-project-lite 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
335
+ "tokio 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)",
336
+]
337
+
338
+[[package]]
339
+name = "tower-service"
340
+version = "0.3.0"
341
+source = "registry+https://github.com/rust-lang/crates.io-index"
342
+
343
+[[package]]
344
+name = "try-lock"
345
+version = "0.2.2"
346
+source = "registry+https://github.com/rust-lang/crates.io-index"
347
+
348
+[[package]]
349
+name = "twfss"
350
+version = "0.1.0"
351
+dependencies = [
352
+ "fswatcher 0.1.0",
353
+ "hyper 0.13.1 (registry+https://github.com/rust-lang/crates.io-index)",
354
+]
355
+
356
+[[package]]
357
+name = "unicode-xid"
358
+version = "0.2.0"
359
+source = "registry+https://github.com/rust-lang/crates.io-index"
360
+
361
+[[package]]
362
+name = "want"
363
+version = "0.3.0"
364
+source = "registry+https://github.com/rust-lang/crates.io-index"
365
+dependencies = [
366
+ "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
367
+ "try-lock 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
368
+]
369
+
370
+[[package]]
371
+name = "winapi"
372
+version = "0.2.8"
373
+source = "registry+https://github.com/rust-lang/crates.io-index"
374
+
375
+[[package]]
376
+name = "winapi"
377
+version = "0.3.8"
378
+source = "registry+https://github.com/rust-lang/crates.io-index"
379
+dependencies = [
380
+ "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
381
+ "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
382
+]
383
+
384
+[[package]]
385
+name = "winapi-build"
386
+version = "0.1.1"
387
+source = "registry+https://github.com/rust-lang/crates.io-index"
388
+
389
+[[package]]
390
+name = "winapi-i686-pc-windows-gnu"
391
+version = "0.4.0"
392
+source = "registry+https://github.com/rust-lang/crates.io-index"
393
+
394
+[[package]]
395
+name = "winapi-x86_64-pc-windows-gnu"
396
+version = "0.4.0"
397
+source = "registry+https://github.com/rust-lang/crates.io-index"
398
+
399
+[[package]]
400
+name = "ws2_32-sys"
401
+version = "0.2.1"
402
+source = "registry+https://github.com/rust-lang/crates.io-index"
403
+dependencies = [
404
+ "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
405
+ "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
406
+]
407
+
408
+[metadata]
409
+"checksum autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "1d49d90015b3c36167a20fe2810c5cd875ad504b39cff3d4eae7977e6b7c1cb2"
410
+"checksum bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
411
+"checksum bytes 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "10004c15deb332055f7a4a208190aed362cf9a7c2f6ab70a305fba50e1105f38"
412
+"checksum cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
413
+"checksum fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "2fad85553e09a6f881f739c29f0b00b0f01357c743266d478b68951ce23285f3"
414
+"checksum fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82"
415
+"checksum fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7"
416
+"checksum futures-channel 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "fcae98ca17d102fd8a3603727b9259fcf7fa4239b603d2142926189bc8999b86"
417
+"checksum futures-core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "79564c427afefab1dfb3298535b21eda083ef7935b4f0ecbfcb121f0aec10866"
418
+"checksum futures-sink 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "171be33efae63c2d59e6dbba34186fe0d6394fb378069a76dfd80fdcffd43c16"
419
+"checksum futures-task 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0bae52d6b29cf440e298856fec3965ee6fa71b06aa7495178615953fd669e5f9"
420
+"checksum futures-util 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c0d66274fb76985d3c62c886d1da7ac4c0903a8c9f754e8fe0f35a6a6cc39e76"
421
+"checksum h2 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b9433d71e471c1736fd5a61b671fc0b148d7a2992f666c958d03cd8feb3b88d1"
422
+"checksum http 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b708cc7f06493459026f53b9a61a7a121a5d1ec6238dee58ea4941132b30156b"
423
+"checksum http-body 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "13d5ff830006f7646652e057693569bfe0d51760c0085a071769d142a205111b"
424
+"checksum httparse 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9"
425
+"checksum hyper 0.13.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8bf49cfb32edee45d890537d9057d1b02ed55f53b7b6a30bae83a38c9231749e"
426
+"checksum indexmap 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712d7b3ea5827fcb9d4fda14bf4da5f136f0db2ae9c8f4bd4e2d1c6fde4e6db2"
427
+"checksum iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e"
428
+"checksum itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "501266b7edd0174f8530248f87f99c88fbe60ca4ef3dd486835b8d8d53136f7f"
429
+"checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d"
430
+"checksum lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
431
+"checksum libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)" = "d515b1f41455adea1313a4a2ac8a8a477634fbae63cc6100e3aebb207ce61558"
432
+"checksum log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7"
433
+"checksum memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "88579771288728879b57485cc7d6b07d648c9f0141eb955f8ab7f9d45394468e"
434
+"checksum mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)" = "302dec22bcf6bae6dfb69c647187f4b4d0fb6f535521f7bc022430ce8e12008f"
435
+"checksum miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919"
436
+"checksum net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)" = "42550d9fb7b6684a6d404d9fa7250c2eb2646df731d1c06afc06dcee9e1bcf88"
437
+"checksum pin-project 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "94b90146c7216e4cb534069fb91366de4ea0ea353105ee45ed297e2d1619e469"
438
+"checksum pin-project-internal 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "44ca92f893f0656d3cba8158dd0f2b99b94de256a4a54e870bd6922fcc6c8355"
439
+"checksum pin-project-lite 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f0af6cbca0e6e3ce8692ee19fb8d734b641899e07b68eb73e9bbbd32f1703991"
440
+"checksum pin-utils 0.1.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)" = "5894c618ce612a3fa23881b152b608bafb8c56cfc22f434a3ba3120b40f7b587"
441
+"checksum proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "9c9e470a8dc4aeae2dee2f335e8f533e2d4b347e1434e5671afc49b054592f27"
442
+"checksum quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "053a8c8bcc71fcce321828dc897a98ab9760bef03a4fc36693c231e5b3216cfe"
443
+"checksum redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)" = "2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84"
444
+"checksum slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8"
445
+"checksum syn 1.0.11 (registry+https://github.com/rust-lang/crates.io-index)" = "dff0acdb207ae2fe6d5976617f887eb1e35a2ba52c13c7234c790960cdad9238"
446
+"checksum time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = "db8dcfca086c1143c9270ac42a2bbd8a7ee477b78ac8e45b19abfb0cbede4b6f"
447
+"checksum tokio 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0e1bef565a52394086ecac0a6fa3b8ace4cb3a138ee1d96bd2b93283b56824e3"
448
+"checksum tokio-util 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "571da51182ec208780505a32528fc5512a8fe1443ab960b3f2f3ef093cd16930"
449
+"checksum tower-service 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e987b6bf443f4b5b3b6f38704195592cca41c5bb7aedd3c3693c7081f8289860"
450
+"checksum try-lock 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e604eb7b43c06650e854be16a2a03155743d3752dd1c943f6829e26b7a36e382"
451
+"checksum unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c"
452
+"checksum want 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0"
453
+"checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
454
+"checksum winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = "8093091eeb260906a183e6ae1abdba2ef5ef2257a21801128899c3fc699229c6"
455
+"checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
456
+"checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
457
+"checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
458
+"checksum ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e"

+ 9
- 0
Cargo.toml Näytä tiedosto

@@ -0,0 +1,9 @@
1
+[package]
2
+name = "twfss"
3
+version = "0.1.0"
4
+authors = ["Mathias Gottschlag <mgottschlag@gmail.com>"]
5
+edition = "2018"
6
+
7
+[dependencies]
8
+fswatcher = { path = "./fswatcher" }
9
+hyper = "0.13"

+ 9
- 0
fswatcher/Cargo.toml Näytä tiedosto

@@ -0,0 +1,9 @@
1
+[package]
2
+name = "fswatcher"
3
+version = "0.1.0"
4
+authors = ["Mathias Gottschlag <mgottschlag@gmail.com>"]
5
+edition = "2018"
6
+
7
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8
+
9
+[dependencies]

+ 21
- 0
fswatcher/src/lib.rs Näytä tiedosto

@@ -0,0 +1,21 @@
1
+//use std::path::Path;
2
+//
3
+//struct FileSystemWatcher {
4
+//    // TODO
5
+//}
6
+//
7
+//impl FileSystemWatcher {
8
+//    // TODO
9
+//}
10
+//
11
+//struct DirectoryTreeWatcher {
12
+//    // TODO
13
+//}
14
+
15
+#[cfg(test)]
16
+mod tests {
17
+    #[test]
18
+    fn it_works() {
19
+        assert_eq!(2 + 2, 4);
20
+    }
21
+}

+ 3
- 0
src/bin/client.rs Näytä tiedosto

@@ -0,0 +1,3 @@
1
+fn main() {
2
+    println!("Hello, world!");
3
+}

+ 3
- 0
src/bin/server.rs Näytä tiedosto

@@ -0,0 +1,3 @@
1
+fn main() {
2
+    println!("Hello, world!");
3
+}

Loading…
Peruuta
Tallenna