# 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"
name = "dyn-slice"
version = "4.0.0-alpha.2"
authors = ["Tom Boddaert"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "&[dyn Trait] implementation, inspired by a Reddit thread."
homepage = "https://github.com/tomBoddaert/dyn-slice/"
readme = "README.md"
keywords = [
    "dyn",
    "slice",
    "traits",
]
categories = [
    "data-structures",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/tomBoddaert/dyn-slice/"

[features]
alloc = []
default = ["std"]
std = ["alloc"]

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

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

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

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

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

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

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

[dev-dependencies.trybuild]
version = "1.0.116"
features = ["diff"]

[lints.clippy]
alloc_instead_of_core = "warn"
allow_attributes = "warn"
as_pointer_underscore = "warn"
as_underscore = "warn"
cognitive_complexity = "warn"
dbg_macro = "warn"
deref_by_slicing = "warn"
get_unwrap = "warn"
impl_trait_in_params = "warn"
let_underscore_must_use = "warn"
mixed_read_write_in_expression = "warn"
multiple_inherent_impl = "warn"
multiple_unsafe_ops_per_block = "warn"
option_if_let_else = "allow"
panic_in_result_fn = "warn"
print_stderr = "warn"
print_stdout = "warn"
pub_without_shorthand = "warn"
redundant_type_annotations = "warn"
ref_patterns = "warn"
renamed_function_params = "warn"
rest_pat_in_fully_bound_structs = "warn"
same_name_method = "warn"
self_named_module_files = "warn"
semicolon_outside_block = "warn"
shadow_unrelated = "warn"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
todo = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unnecessary_self_imports = "warn"
unneeded_field_pattern = "warn"
unused_result_ok = "warn"
unused_trait_names = "warn"
unwrap_used = "warn"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.clippy.perf]
level = "warn"
priority = -1
