# 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 = "2021" rust-version = "1.81.0" name = "try-specialize" version = "0.1.1" authors = ["Andrey Zheleznov "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Zero-cost specialization in generic context on stable Rust" documentation = "https://docs.rs/try-specialize" readme = "README.md" keywords = [ "specialization", "specialize", "cast", "no-std", "stable", ] categories = [ "rust-patterns", "no-std", "no-std::no-alloc", ] license = "MIT OR Apache-2.0" repository = "https://github.com/zheland/try-specialize" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "try_specialize" path = "src/lib.rs" [[example]] name = "encode" path = "examples/encode.rs" [[test]] name = "platform" path = "tests/platform.rs" [[test]] name = "ranged_values_codegen" path = "tests/ranged_values_codegen.rs" [[test]] name = "version" path = "tests/version.rs" [[test]] name = "zero_cost_optimized_fn_ptrs" path = "tests/zero_cost_optimized_fn_ptrs.rs" [[test]] name = "zero_cost_optimized_results" path = "tests/zero_cost_optimized_results.rs" [[test]] name = "zero_cost_unreliable" path = "tests/zero_cost_unreliable.rs" [dependencies] [dev-dependencies.castaway] version = "0.2.3" [dev-dependencies.coe-rs] version = "0.1.2" [dev-dependencies.downcast-rs] version = "1.2.1" [dev-dependencies.hashbrown] version = "0.15.0" [dev-dependencies.paste] version = "1.0.15" [dev-dependencies.rustversion] version = "1.0.17" [dev-dependencies.specialize] version = "0.0.3" [dev-dependencies.specialized-dispatch] version = "0.2.1" [dev-dependencies.syllogism] version = "0.1.3" [dev-dependencies.syllogism-macro] version = "0.1.1" [dev-dependencies.version-sync] version = "0.9.5" [features] __test_extern_fn_dce = [] __test_extern_fn_merging = [] __test_nightly = [] alloc = [] default = [ "alloc", "std", ] std = ["alloc"] unreliable = [] [lints.clippy] alloc_instead_of_core = "warn" allow_attributes = "warn" allow_attributes_without_reason = "warn" arithmetic_side_effects = "warn" as_conversions = "warn" branches_sharing_code = "warn" clone_on_ref_ptr = "warn" dbg_macro = "warn" debug_assert_with_mut_call = "warn" decimal_literal_representation = "warn" default_trait_access = "warn" empty_line_after_outer_attr = "warn" empty_structs_with_brackets = "warn" error_impl_error = "warn" exit = "warn" fallible_impl_from = "warn" filetype_is_file = "warn" float_cmp_const = "warn" future_not_send = "warn" get_unwrap = "warn" if_then_some_else_none = "warn" missing_const_for_fn = "warn" missing_inline_in_public_items = "warn" module_name_repetitions = "allow" modulo_arithmetic = "warn" multiple_inherent_impl = "warn" mut_mut = "warn" nonstandard_macro_braces = "warn" option_if_let_else = "warn" panic = "warn" print_stderr = "warn" rc_buffer = "warn" redundant_pub_crate = "warn" std_instead_of_core = "warn" string_lit_as_bytes = "warn" suboptimal_flops = "warn" suspicious_operation_groupings = "warn" todo = "warn" trivial_regex = "warn" try_err = "warn" undocumented_unsafe_blocks = "warn" unimplemented = "warn" unwrap_used = "warn" use_self = "warn" useless_let_if_seq = "warn" verbose_file_reads = "warn" wildcard_enum_match_arm = "warn" [lints.clippy.all] level = "warn" priority = -1 [lints.clippy.pedantic] level = "warn" priority = -1 [lints.rust] future_incompatible = "warn" keyword_idents = "warn" let_underscore = "warn" meta_variable_misuse = "warn" missing_abi = "warn" missing_copy_implementations = "warn" missing_debug_implementations = "warn" missing_docs = "warn" non_ascii_idents = "warn" refining_impl_trait = "warn" single_use_lifetimes = "warn" trivial_casts = "warn" trivial_numeric_casts = "warn" unused_crate_dependencies = "warn" unused_extern_crates = "warn" unused_import_braces = "warn" unused_lifetimes = "warn" unused_qualifications = "warn" unused_results = "warn" variant_size_differences = "warn" [lints.rust.rust_2018_idioms] level = "warn" priority = -1