bitflags-lite 0.1.0

Lightweight generics-based bitflags
Documentation
# 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.97.0"
name = "bitflags-lite"
version = "0.1.0"
authors = ["Andrey Zheleznov <zheland.net@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lightweight generics-based bitflags"
documentation = "https://docs.rs/bitflags-lite"
readme = "README.md"
keywords = [
    "bit",
    "bitmask",
    "bitflags",
    "flags",
]
categories = [
    "no-std",
    "no-std::no-alloc",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/zheland/bitflags-lite"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
alloc = []
arbitrary = ["dep:arbitrary"]
bytemuck = ["dep:bytemuck"]
default = [
    "alloc",
    "std",
]
serde = ["dep:serde"]
std = ["alloc"]

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

[[test]]
name = "flag"
path = "tests/flag.rs"

[[test]]
name = "flag_ext"
path = "tests/flag_ext.rs"

[[test]]
name = "flags"
path = "tests/flags.rs"

[[test]]
name = "flags_ext"
path = "tests/flags_ext.rs"

[[test]]
name = "iter"
path = "tests/iter.rs"

[[test]]
name = "version"
path = "tests/version.rs"

[dependencies.arbitrary]
version = "1.5.0"
optional = true
default-features = false
package = "arbitrary"

[dependencies.bytemuck]
version = "1.25.2"
optional = true
default-features = false
package = "bytemuck"

[dependencies.serde]
version = "1.0.229"
optional = true
default-features = false
package = "serde"

[dev-dependencies.serde_test]
version = "1.0.158"

[dev-dependencies.version-sync]
version = "0.9.5"

[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 = "warn"
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"
self_named_module_files = "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