1# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2#
3# When uploading crates to the registry Cargo will automatically
4# "normalize" Cargo.toml files for maximal compatibility
5# with all versions of Cargo and also rewrite `path` dependencies
6# to registry (e.g., crates.io) dependencies.
7#
8# If you are reading this file be aware that the original Cargo.toml
9# will likely look very different (and much more reasonable).
10# See Cargo.toml.orig for the original contents.
11
12[package]
13edition = "2021"
14rust-version = "1.70"
15name = "tokio"
16version = "1.42.0"
17authors = ["Tokio Contributors <[email protected]>"]
18build = false
19autobins = false
20autoexamples = false
21autotests = false
22autobenches = false
23description = """
24An event-driven, non-blocking I/O platform for writing asynchronous I/O
25backed applications.
26"""
27homepage = "https://tokio.rs"
28readme = "README.md"
29keywords = [
30    "io",
31    "async",
32    "non-blocking",
33    "futures",
34]
35categories = [
36    "asynchronous",
37    "network-programming",
38]
39license = "MIT"
40repository = "https://github.com/tokio-rs/tokio"
41
42[package.metadata.cargo_check_external_types]
43allowed_external_types = [
44    "bytes::buf::buf_impl::Buf",
45    "bytes::buf::buf_mut::BufMut",
46    "tokio_macros::*",
47]
48
49[package.metadata.docs.rs]
50all-features = true
51rustc-args = [
52    "--cfg",
53    "tokio_unstable",
54    "--cfg",
55    "tokio_taskdump",
56]
57rustdoc-args = [
58    "--cfg",
59    "docsrs",
60    "--cfg",
61    "tokio_unstable",
62    "--cfg",
63    "tokio_taskdump",
64]
65
66[package.metadata.playground]
67features = [
68    "full",
69    "test-util",
70]
71
72[lib]
73name = "tokio"
74path = "src/lib.rs"
75
76[[test]]
77name = "_require_full"
78path = "tests/_require_full.rs"
79
80[[test]]
81name = "async_send_sync"
82path = "tests/async_send_sync.rs"
83
84[[test]]
85name = "buffered"
86path = "tests/buffered.rs"
87
88[[test]]
89name = "coop_budget"
90path = "tests/coop_budget.rs"
91
92[[test]]
93name = "dump"
94path = "tests/dump.rs"
95
96[[test]]
97name = "duplex_stream"
98path = "tests/duplex_stream.rs"
99
100[[test]]
101name = "fs"
102path = "tests/fs.rs"
103
104[[test]]
105name = "fs_canonicalize_dir"
106path = "tests/fs_canonicalize_dir.rs"
107
108[[test]]
109name = "fs_copy"
110path = "tests/fs_copy.rs"
111
112[[test]]
113name = "fs_dir"
114path = "tests/fs_dir.rs"
115
116[[test]]
117name = "fs_file"
118path = "tests/fs_file.rs"
119
120[[test]]
121name = "fs_link"
122path = "tests/fs_link.rs"
123
124[[test]]
125name = "fs_open_options"
126path = "tests/fs_open_options.rs"
127
128[[test]]
129name = "fs_open_options_windows"
130path = "tests/fs_open_options_windows.rs"
131
132[[test]]
133name = "fs_remove_dir_all"
134path = "tests/fs_remove_dir_all.rs"
135
136[[test]]
137name = "fs_remove_file"
138path = "tests/fs_remove_file.rs"
139
140[[test]]
141name = "fs_rename"
142path = "tests/fs_rename.rs"
143
144[[test]]
145name = "fs_symlink_dir_windows"
146path = "tests/fs_symlink_dir_windows.rs"
147
148[[test]]
149name = "fs_symlink_file_windows"
150path = "tests/fs_symlink_file_windows.rs"
151
152[[test]]
153name = "fs_try_exists"
154path = "tests/fs_try_exists.rs"
155
156[[test]]
157name = "io_async_fd"
158path = "tests/io_async_fd.rs"
159
160[[test]]
161name = "io_async_read"
162path = "tests/io_async_read.rs"
163
164[[test]]
165name = "io_buf_reader"
166path = "tests/io_buf_reader.rs"
167
168[[test]]
169name = "io_buf_writer"
170path = "tests/io_buf_writer.rs"
171
172[[test]]
173name = "io_chain"
174path = "tests/io_chain.rs"
175
176[[test]]
177name = "io_copy"
178path = "tests/io_copy.rs"
179
180[[test]]
181name = "io_copy_bidirectional"
182path = "tests/io_copy_bidirectional.rs"
183
184[[test]]
185name = "io_driver"
186path = "tests/io_driver.rs"
187
188[[test]]
189name = "io_driver_drop"
190path = "tests/io_driver_drop.rs"
191
192[[test]]
193name = "io_fill_buf"
194path = "tests/io_fill_buf.rs"
195
196[[test]]
197name = "io_join"
198path = "tests/io_join.rs"
199
200[[test]]
201name = "io_lines"
202path = "tests/io_lines.rs"
203
204[[test]]
205name = "io_mem_stream"
206path = "tests/io_mem_stream.rs"
207
208[[test]]
209name = "io_panic"
210path = "tests/io_panic.rs"
211
212[[test]]
213name = "io_poll_aio"
214path = "tests/io_poll_aio.rs"
215
216[[test]]
217name = "io_read"
218path = "tests/io_read.rs"
219
220[[test]]
221name = "io_read_buf"
222path = "tests/io_read_buf.rs"
223
224[[test]]
225name = "io_read_exact"
226path = "tests/io_read_exact.rs"
227
228[[test]]
229name = "io_read_line"
230path = "tests/io_read_line.rs"
231
232[[test]]
233name = "io_read_to_end"
234path = "tests/io_read_to_end.rs"
235
236[[test]]
237name = "io_read_to_string"
238path = "tests/io_read_to_string.rs"
239
240[[test]]
241name = "io_read_until"
242path = "tests/io_read_until.rs"
243
244[[test]]
245name = "io_repeat"
246path = "tests/io_repeat.rs"
247
248[[test]]
249name = "io_sink"
250path = "tests/io_sink.rs"
251
252[[test]]
253name = "io_split"
254path = "tests/io_split.rs"
255
256[[test]]
257name = "io_take"
258path = "tests/io_take.rs"
259
260[[test]]
261name = "io_util_empty"
262path = "tests/io_util_empty.rs"
263
264[[test]]
265name = "io_write"
266path = "tests/io_write.rs"
267
268[[test]]
269name = "io_write_all"
270path = "tests/io_write_all.rs"
271
272[[test]]
273name = "io_write_all_buf"
274path = "tests/io_write_all_buf.rs"
275
276[[test]]
277name = "io_write_buf"
278path = "tests/io_write_buf.rs"
279
280[[test]]
281name = "io_write_int"
282path = "tests/io_write_int.rs"
283
284[[test]]
285name = "join_handle_panic"
286path = "tests/join_handle_panic.rs"
287
288[[test]]
289name = "macros_join"
290path = "tests/macros_join.rs"
291
292[[test]]
293name = "macros_pin"
294path = "tests/macros_pin.rs"
295
296[[test]]
297name = "macros_rename_test"
298path = "tests/macros_rename_test.rs"
299
300[[test]]
301name = "macros_select"
302path = "tests/macros_select.rs"
303
304[[test]]
305name = "macros_test"
306path = "tests/macros_test.rs"
307
308[[test]]
309name = "macros_try_join"
310path = "tests/macros_try_join.rs"
311
312[[test]]
313name = "net_bind_resource"
314path = "tests/net_bind_resource.rs"
315
316[[test]]
317name = "net_lookup_host"
318path = "tests/net_lookup_host.rs"
319
320[[test]]
321name = "net_named_pipe"
322path = "tests/net_named_pipe.rs"
323
324[[test]]
325name = "net_panic"
326path = "tests/net_panic.rs"
327
328[[test]]
329name = "net_unix_pipe"
330path = "tests/net_unix_pipe.rs"
331
332[[test]]
333name = "no_rt"
334path = "tests/no_rt.rs"
335
336[[test]]
337name = "process_arg0"
338path = "tests/process_arg0.rs"
339
340[[test]]
341name = "process_change_of_runtime"
342path = "tests/process_change_of_runtime.rs"
343
344[[test]]
345name = "process_issue_2174"
346path = "tests/process_issue_2174.rs"
347
348[[test]]
349name = "process_issue_42"
350path = "tests/process_issue_42.rs"
351
352[[test]]
353name = "process_kill_on_drop"
354path = "tests/process_kill_on_drop.rs"
355
356[[test]]
357name = "process_raw_handle"
358path = "tests/process_raw_handle.rs"
359
360[[test]]
361name = "process_smoke"
362path = "tests/process_smoke.rs"
363
364[[test]]
365name = "rt_basic"
366path = "tests/rt_basic.rs"
367
368[[test]]
369name = "rt_common"
370path = "tests/rt_common.rs"
371
372[[test]]
373name = "rt_handle"
374path = "tests/rt_handle.rs"
375
376[[test]]
377name = "rt_handle_block_on"
378path = "tests/rt_handle_block_on.rs"
379
380[[test]]
381name = "rt_local"
382path = "tests/rt_local.rs"
383
384[[test]]
385name = "rt_metrics"
386path = "tests/rt_metrics.rs"
387
388[[test]]
389name = "rt_panic"
390path = "tests/rt_panic.rs"
391
392[[test]]
393name = "rt_threaded"
394path = "tests/rt_threaded.rs"
395
396[[test]]
397name = "rt_threaded_alt"
398path = "tests/rt_threaded_alt.rs"
399
400[[test]]
401name = "rt_time_start_paused"
402path = "tests/rt_time_start_paused.rs"
403
404[[test]]
405name = "rt_unstable_metrics"
406path = "tests/rt_unstable_metrics.rs"
407
408[[test]]
409name = "signal_ctrl_c"
410path = "tests/signal_ctrl_c.rs"
411
412[[test]]
413name = "signal_drop_recv"
414path = "tests/signal_drop_recv.rs"
415
416[[test]]
417name = "signal_drop_rt"
418path = "tests/signal_drop_rt.rs"
419
420[[test]]
421name = "signal_drop_signal"
422path = "tests/signal_drop_signal.rs"
423
424[[test]]
425name = "signal_multi_rt"
426path = "tests/signal_multi_rt.rs"
427
428[[test]]
429name = "signal_no_rt"
430path = "tests/signal_no_rt.rs"
431
432[[test]]
433name = "signal_notify_both"
434path = "tests/signal_notify_both.rs"
435
436[[test]]
437name = "signal_panic"
438path = "tests/signal_panic.rs"
439
440[[test]]
441name = "signal_twice"
442path = "tests/signal_twice.rs"
443
444[[test]]
445name = "signal_usr1"
446path = "tests/signal_usr1.rs"
447
448[[test]]
449name = "sync_barrier"
450path = "tests/sync_barrier.rs"
451
452[[test]]
453name = "sync_broadcast"
454path = "tests/sync_broadcast.rs"
455
456[[test]]
457name = "sync_errors"
458path = "tests/sync_errors.rs"
459
460[[test]]
461name = "sync_mpsc"
462path = "tests/sync_mpsc.rs"
463
464[[test]]
465name = "sync_mpsc_weak"
466path = "tests/sync_mpsc_weak.rs"
467
468[[test]]
469name = "sync_mutex"
470path = "tests/sync_mutex.rs"
471
472[[test]]
473name = "sync_mutex_owned"
474path = "tests/sync_mutex_owned.rs"
475
476[[test]]
477name = "sync_notify"
478path = "tests/sync_notify.rs"
479
480[[test]]
481name = "sync_once_cell"
482path = "tests/sync_once_cell.rs"
483
484[[test]]
485name = "sync_oneshot"
486path = "tests/sync_oneshot.rs"
487
488[[test]]
489name = "sync_panic"
490path = "tests/sync_panic.rs"
491
492[[test]]
493name = "sync_rwlock"
494path = "tests/sync_rwlock.rs"
495
496[[test]]
497name = "sync_semaphore"
498path = "tests/sync_semaphore.rs"
499
500[[test]]
501name = "sync_semaphore_owned"
502path = "tests/sync_semaphore_owned.rs"
503
504[[test]]
505name = "sync_watch"
506path = "tests/sync_watch.rs"
507
508[[test]]
509name = "task_abort"
510path = "tests/task_abort.rs"
511
512[[test]]
513name = "task_blocking"
514path = "tests/task_blocking.rs"
515
516[[test]]
517name = "task_builder"
518path = "tests/task_builder.rs"
519
520[[test]]
521name = "task_hooks"
522path = "tests/task_hooks.rs"
523
524[[test]]
525name = "task_id"
526path = "tests/task_id.rs"
527
528[[test]]
529name = "task_join_set"
530path = "tests/task_join_set.rs"
531
532[[test]]
533name = "task_local"
534path = "tests/task_local.rs"
535
536[[test]]
537name = "task_local_set"
538path = "tests/task_local_set.rs"
539
540[[test]]
541name = "task_panic"
542path = "tests/task_panic.rs"
543
544[[test]]
545name = "task_yield_now"
546path = "tests/task_yield_now.rs"
547
548[[test]]
549name = "tcp_accept"
550path = "tests/tcp_accept.rs"
551
552[[test]]
553name = "tcp_connect"
554path = "tests/tcp_connect.rs"
555
556[[test]]
557name = "tcp_echo"
558path = "tests/tcp_echo.rs"
559
560[[test]]
561name = "tcp_into_split"
562path = "tests/tcp_into_split.rs"
563
564[[test]]
565name = "tcp_into_std"
566path = "tests/tcp_into_std.rs"
567
568[[test]]
569name = "tcp_peek"
570path = "tests/tcp_peek.rs"
571
572[[test]]
573name = "tcp_shutdown"
574path = "tests/tcp_shutdown.rs"
575
576[[test]]
577name = "tcp_socket"
578path = "tests/tcp_socket.rs"
579
580[[test]]
581name = "tcp_split"
582path = "tests/tcp_split.rs"
583
584[[test]]
585name = "tcp_stream"
586path = "tests/tcp_stream.rs"
587
588[[test]]
589name = "test_clock"
590path = "tests/test_clock.rs"
591
592[[test]]
593name = "time_interval"
594path = "tests/time_interval.rs"
595
596[[test]]
597name = "time_panic"
598path = "tests/time_panic.rs"
599
600[[test]]
601name = "time_pause"
602path = "tests/time_pause.rs"
603
604[[test]]
605name = "time_rt"
606path = "tests/time_rt.rs"
607
608[[test]]
609name = "time_sleep"
610path = "tests/time_sleep.rs"
611
612[[test]]
613name = "time_timeout"
614path = "tests/time_timeout.rs"
615
616[[test]]
617name = "udp"
618path = "tests/udp.rs"
619
620[[test]]
621name = "uds_cred"
622path = "tests/uds_cred.rs"
623
624[[test]]
625name = "uds_datagram"
626path = "tests/uds_datagram.rs"
627
628[[test]]
629name = "uds_socket"
630path = "tests/uds_socket.rs"
631
632[[test]]
633name = "uds_split"
634path = "tests/uds_split.rs"
635
636[[test]]
637name = "uds_stream"
638path = "tests/uds_stream.rs"
639
640[[test]]
641name = "unwindsafe"
642path = "tests/unwindsafe.rs"
643
644[dependencies.bytes]
645version = "1.0.0"
646optional = true
647
648[dependencies.mio]
649version = "1.0.1"
650optional = true
651default-features = false
652
653[dependencies.parking_lot]
654version = "0.12.0"
655optional = true
656
657[dependencies.pin-project-lite]
658version = "0.2.11"
659
660[dependencies.tokio-macros]
661version = "~2.4.0"
662optional = true
663
664[dev-dependencies.async-stream]
665version = "0.3"
666
667[dev-dependencies.futures]
668version = "0.3.0"
669features = ["async-await"]
670
671[dev-dependencies.mockall]
672version = "0.11.1"
673
674[dev-dependencies.tokio-stream]
675version = "0.1"
676
677[dev-dependencies.tokio-test]
678version = "0.4.0"
679
680[features]
681default = []
682fs = []
683full = [
684    "fs",
685    "io-util",
686    "io-std",
687    "macros",
688    "net",
689    "parking_lot",
690    "process",
691    "rt",
692    "rt-multi-thread",
693    "signal",
694    "sync",
695    "time",
696]
697io-std = []
698io-util = ["bytes"]
699macros = ["tokio-macros"]
700net = [
701    "libc",
702    "mio/os-poll",
703    "mio/os-ext",
704    "mio/net",
705    "socket2",
706    "windows-sys/Win32_Foundation",
707    "windows-sys/Win32_Security",
708    "windows-sys/Win32_Storage_FileSystem",
709    "windows-sys/Win32_System_Pipes",
710    "windows-sys/Win32_System_SystemServices",
711]
712process = [
713    "bytes",
714    "libc",
715    "mio/os-poll",
716    "mio/os-ext",
717    "mio/net",
718    "signal-hook-registry",
719    "windows-sys/Win32_Foundation",
720    "windows-sys/Win32_System_Threading",
721    "windows-sys/Win32_System_WindowsProgramming",
722]
723rt = []
724rt-multi-thread = ["rt"]
725signal = [
726    "libc",
727    "mio/os-poll",
728    "mio/net",
729    "mio/os-ext",
730    "signal-hook-registry",
731    "windows-sys/Win32_Foundation",
732    "windows-sys/Win32_System_Console",
733]
734sync = []
735test-util = [
736    "rt",
737    "sync",
738    "time",
739]
740time = []
741
742[target.'cfg(all(target_family = "wasm", not(target_os = "wasi")))'.dev-dependencies.wasm-bindgen-test]
743version = "0.3.0"
744
745[target."cfg(loom)".dev-dependencies.loom]
746version = "0.7"
747features = [
748    "futures",
749    "checkpoint",
750]
751
752[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dev-dependencies.rand]
753version = "0.8.0"
754
755[target.'cfg(not(target_family = "wasm"))'.dependencies.socket2]
756version = "0.5.5"
757features = ["all"]
758optional = true
759
760[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.proptest]
761version = "1"
762
763[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.socket2]
764version = "0.5.5"
765
766[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.tempfile]
767version = "3.1.0"
768
769[target.'cfg(target_os = "freebsd")'.dev-dependencies.mio-aio]
770version = "0.9.0"
771features = ["tokio"]
772
773[target."cfg(tokio_taskdump)".dependencies.backtrace]
774version = "0.3.58"
775
776[target."cfg(tokio_unstable)".dependencies.tracing]
777version = "0.1.29"
778features = ["std"]
779optional = true
780default-features = false
781
782[target."cfg(unix)".dependencies.libc]
783version = "0.2.149"
784optional = true
785
786[target."cfg(unix)".dependencies.signal-hook-registry]
787version = "1.1.1"
788optional = true
789
790[target."cfg(unix)".dev-dependencies.libc]
791version = "0.2.149"
792
793[target."cfg(unix)".dev-dependencies.nix]
794version = "0.29.0"
795features = [
796    "aio",
797    "fs",
798    "socket",
799]
800default-features = false
801
802[target."cfg(windows)".dependencies.windows-sys]
803version = "0.52"
804optional = true
805
806[target."cfg(windows)".dev-dependencies.windows-sys]
807version = "0.52"
808features = [
809    "Win32_Foundation",
810    "Win32_Security_Authorization",
811]
812