# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.88"
name = "events_once"
version = "0.5.26"
authors = ["Sander Saares <sander@saares.eu>"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Efficient oneshot events (channels) with support for single-threaded events, object embedding, event pools and event lakes"
readme = "README.md"
license = "MIT"
repository = "https://github.com/folo-rs/folo"

[package.metadata.docs.rs]
all-features = true

[features]
default = []

[lib]
name = "events_once"
path = "src/lib.rs"

[[example]]
name = "events_once_boxed"
path = "examples/events_once_boxed.rs"

[[example]]
name = "events_once_into_value"
path = "examples/events_once_into_value.rs"

[[example]]
name = "events_once_lake"
path = "examples/events_once_lake.rs"

[[example]]
name = "events_once_local"
path = "examples/events_once_local.rs"

[[example]]
name = "events_once_placed"
path = "examples/events_once_placed.rs"

[[example]]
name = "events_once_pooled"
path = "examples/events_once_pooled.rs"

[[example]]
name = "events_once_raw"
path = "examples/events_once_raw.rs"

[[example]]
name = "events_once_readme"
path = "examples/events_once_readme.rs"

[[bench]]
name = "events_once_cg"
path = "benches/events_once_cg.rs"
harness = false

[[bench]]
name = "events_once_local"
path = "benches/events_once_local.rs"
harness = false

[[bench]]
name = "events_once_sync"
path = "benches/events_once_sync.rs"
harness = false

[[bench]]
name = "events_once_vs_3p"
path = "benches/events_once_vs_3p.rs"
harness = false

[dependencies.hash_hasher]
version = "2.0.0"
default-features = false

[dependencies.infinity_pool]
version = "0.8.17"
default-features = false

[dev-dependencies.criterion]
version = "0.8.2"
default-features = false

[dev-dependencies.futures]
version = "0.3.11"
features = [
    "std",
    "executor",
]
default-features = false

[dev-dependencies.oneshot]
version = "0.2.1"
features = [
    "std",
    "async",
]
default-features = false

[dev-dependencies.pin-project]
version = "1.1.0"
default-features = false

[dev-dependencies.static_assertions]
version = "1.1.0"
default-features = false

[dev-dependencies.tokio]
version = "1.48.0"
features = [
    "macros",
    "rt",
    "rt-multi-thread",
    "time",
]
default-features = false

[target.'cfg(target_os = "linux")'.dev-dependencies.gungraun]
version = "=0.19.0"
features = ["default"]
default-features = false

[lints.clippy]
absolute_paths = "warn"
allow_attributes_without_reason = "warn"
arithmetic_side_effects = "warn"
as_ptr_cast_mut = "warn"
assertions_on_result_states = "warn"
assigning_clones = "warn"
borrow_as_ptr = "warn"
cast_lossless = "warn"
cast_possible_truncation = "warn"
cast_possible_wrap = "warn"
cast_precision_loss = "warn"
cast_ptr_alignment = "warn"
cast_sign_loss = "warn"
clone_on_ref_ptr = "warn"
cloned_instead_of_copied = "warn"
coerce_container_to_any = "warn"
cognitive_complexity = "warn"
collection_is_never_read = "warn"
copy_iterator = "warn"
create_dir = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
default_trait_access = "warn"
default_union_representation = "warn"
derive_partial_eq_without_eq = "warn"
doc_broken_link = "warn"
doc_link_with_quotes = "warn"
doc_markdown = "warn"
doc_paragraphs_missing_punctuation = "warn"
elidable_lifetime_names = "warn"
empty_drop = "warn"
enum_glob_use = "warn"
equatable_if_let = "warn"
exhaustive_enums = "warn"
exhaustive_structs = "warn"
exit = "warn"
explicit_deref_methods = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
filter_map_next = "warn"
flat_map_option = "warn"
float_cmp = "warn"
float_cmp_const = "warn"
fn_params_excessive_bools = "warn"
fn_to_numeric_cast_any = "warn"
format_collect = "warn"
format_push_string = "warn"
ignore_without_reason = "warn"
ignored_unit_patterns = "warn"
implicit_clone = "warn"
implicit_hasher = "warn"
inconsistent_struct_constructor = "warn"
indexing_slicing = "warn"
integer_division = "warn"
into_iter_without_iter = "warn"
invalid_upcast_comparisons = "warn"
ip_constant = "warn"
items_after_statements = "warn"
iter_filter_is_ok = "warn"
iter_filter_is_some = "warn"
iter_not_returning_iterator = "warn"
iter_on_empty_collections = "warn"
iter_on_single_items = "warn"
iter_with_drain = "warn"
iter_without_into_iter = "warn"
large_futures = "warn"
large_stack_arrays = "warn"
large_stack_frames = "warn"
large_types_passed_by_value = "warn"
let_underscore_must_use = "warn"
literal_string_with_formatting_args = "warn"
lossy_float_literal = "warn"
manual_assert = "warn"
manual_instant_elapsed = "warn"
manual_is_power_of_two = "warn"
manual_is_variant_and = "warn"
manual_let_else = "warn"
manual_midpoint = "warn"
manual_ok_or = "warn"
manual_string_new = "warn"
map_err_ignore = "warn"
map_unwrap_or = "warn"
map_with_unused_argument_over_ranges = "warn"
match_bool = "warn"
match_same_arms = "warn"
mismatching_type_param_order = "warn"
missing_fields_in_debug = "warn"
mixed_read_write_in_expression = "warn"
module_name_repetitions = "warn"
modulo_arithmetic = "warn"
multiple_unsafe_ops_per_block = "warn"
must_use_candidate = "warn"
mut_mut = "warn"
mutex_atomic = "warn"
mutex_integer = "warn"
naive_bytecount = "warn"
needless_bitwise_bool = "warn"
needless_collect = "warn"
needless_for_each = "warn"
needless_pass_by_ref_mut = "warn"
needless_pass_by_value = "warn"
needless_raw_string_hashes = "warn"
needless_raw_strings = "warn"
no_effect_underscore_binding = "warn"
non_std_lazy_statics = "warn"
non_zero_suggestions = "warn"
nonstandard_macro_braces = "warn"
option_as_ref_cloned = "warn"
option_option = "warn"
or_fun_call = "warn"
partial_pub_fields = "warn"
path_buf_push_overwrite = "warn"
pathbuf_init_then_push = "warn"
precedence_bits = "warn"
ptr_cast_constness = "warn"
pub_underscore_fields = "warn"
range_minus_one = "warn"
range_plus_one = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
redundant_clone = "warn"
redundant_closure_for_method_calls = "warn"
redundant_else = "warn"
redundant_test_prefix = "warn"
ref_as_ptr = "warn"
ref_binding_to_reference = "warn"
ref_option = "warn"
ref_option_ref = "warn"
renamed_function_params = "warn"
rest_pat_in_fully_bound_structs = "warn"
return_and_then = "warn"
return_self_not_must_use = "warn"
same_functions_in_if_condition = "warn"
semicolon_if_nothing_returned = "warn"
semicolon_inside_block = "warn"
set_contains_or_insert = "warn"
single_char_pattern = "warn"
single_option_map = "warn"
str_split_at_newline = "warn"
string_lit_chars_any = "warn"
string_slice = "warn"
struct_field_names = "warn"
suspicious_operation_groupings = "warn"
too_long_first_doc_paragraph = "warn"
trailing_empty_array = "warn"
trait_duplication_in_bounds = "warn"
trivially_copy_pass_by_ref = "warn"
try_err = "warn"
tuple_array_conversions = "warn"
type_repetition_in_bounds = "warn"
unchecked_time_subtraction = "warn"
undocumented_unsafe_blocks = "warn"
uninhabited_references = "warn"
uninlined_format_args = "warn"
unnecessary_box_returns = "warn"
unnecessary_join = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unnecessary_self_imports = "warn"
unnecessary_semicolon = "warn"
unnecessary_struct_initialization = "warn"
unnecessary_wraps = "warn"
unneeded_field_pattern = "warn"
unnested_or_patterns = "warn"
unseparated_literal_suffix = "warn"
unused_async = "warn"
unused_peekable = "warn"
unused_result_ok = "warn"
unused_self = "warn"
use_self = "warn"
useless_let_if_seq = "warn"
verbose_bit_mask = "warn"
volatile_composites = "warn"
while_float = "warn"

[lints.rust]
closure_returning_async_block = "warn"
elided_lifetimes_in_paths = "warn"
let_underscore_drop = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
trivial_casts = "warn"
unit_bindings = "warn"
unnameable_types = "warn"
unreachable_pub = "warn"
unsafe_attr_outside_unsafe = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_macros = "warn"
unused_qualifications = "warn"
variant_size_differences = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(careful)",
    "cfg(coverage_nightly)",
]

[lints.rustdoc]
private_doc_tests = "warn"
unescaped_backticks = "warn"
