yielding_executor/
lib.rs

1#![deny(
2    clippy::expect_used,
3    clippy::explicit_deref_methods,
4    clippy::option_if_let_else,
5    clippy::await_holding_lock,
6    clippy::cloned_instead_of_copied,
7    clippy::explicit_into_iter_loop,
8    clippy::flat_map_option,
9    clippy::fn_params_excessive_bools,
10    clippy::implicit_clone,
11    clippy::inefficient_to_string,
12    clippy::large_types_passed_by_value,
13    clippy::manual_ok_or,
14    clippy::map_flatten,
15    clippy::map_unwrap_or,
16    clippy::must_use_candidate,
17    clippy::needless_for_each,
18    clippy::needless_pass_by_value,
19    clippy::option_option,
20    clippy::redundant_else,
21    clippy::semicolon_if_nothing_returned,
22    clippy::too_many_lines,
23    clippy::trivially_copy_pass_by_ref,
24    clippy::unnested_or_patterns,
25    clippy::future_not_send,
26    clippy::useless_let_if_seq,
27    clippy::str_to_string,
28    clippy::inherent_to_string,
29    clippy::let_and_return,
30    clippy::string_to_string,
31    clippy::try_err,
32    clippy::unused_async,
33    clippy::missing_enforced_import_renames,
34    clippy::nonstandard_macro_braces,
35    clippy::rc_mutex,
36    clippy::unwrap_or_else_default,
37    clippy::manual_split_once,
38    clippy::derivable_impls,
39    clippy::needless_option_as_deref,
40    clippy::iter_not_returning_iterator,
41    clippy::same_name_method,
42    clippy::manual_assert,
43    clippy::non_send_fields_in_send_ty,
44    clippy::equatable_if_let,
45    bad_style,
46    clashing_extern_declarations,
47    const_err,
48    dead_code,
49    deprecated,
50    explicit_outlives_requirements,
51    improper_ctypes,
52    invalid_value,
53    missing_copy_implementations,
54    missing_debug_implementations,
55    mutable_transmutes,
56    no_mangle_generic_items,
57    non_shorthand_field_patterns,
58    overflowing_literals,
59    path_statements,
60    patterns_in_fns_without_body,
61    private_in_public,
62    trivial_bounds,
63    trivial_casts,
64    trivial_numeric_casts,
65    type_alias_bounds,
66    unconditional_recursion,
67    unreachable_pub,
68    unsafe_code,
69    unstable_features,
70    unused,
71    unused_allocation,
72    unused_comparisons,
73    unused_import_braces,
74    unused_parens,
75    unused_qualifications,
76    while_true,
77    missing_docs
78)]
79#![allow(
80    unused_attributes,
81    missing_debug_implementations,
82    missing_copy_implementations,
83    trivial_casts,
84    unsafe_code
85)]
86//! # Async Executor for WebAssembly
87//!
88//! There are a number of async task executors available, however, most of them rely on primitives
89//! that might not be available or optimal for WebAssembly deployment at the time.
90//!
91//! This crate currently provides one [**single-threaded** async executor](`single_threaded`)
92pub mod single_threaded;