[dependencies.heapless]
features = ["serde"]
optional = true
version = "0.9.1"
[dependencies.serde]
default-features = false
version = "1.0.210"
[dependencies.tracing]
default-features = false
features = ["attributes"]
optional = true
version = "0.1.40"
[dev-dependencies.serde]
features = ["derive"]
version = "1.0.228"
[dev-dependencies.serde_bytes]
version = "0.11.19"
[dev-dependencies.serde_json]
version = "1.0.145"
[dev-dependencies.tracing-subscriber]
features = ["env-filter"]
version = "0.3.20"
[[example]]
name = "bytes"
path = "examples/bytes.rs"
test = true
[[example]]
name = "simple"
path = "examples/simple.rs"
test = true
[features]
alloc = ["serde/alloc"]
default = []
heapless = ["dep:heapless"]
std = ["alloc", "serde/std", "tracing?/std"]
tracing = ["dep:tracing"]
[lib]
name = "serde_brief"
path = "src/lib.rs"
[lints.clippy]
allow_attributes_without_reason = "warn"
assigning_clones = "warn"
borrow_as_ptr = "warn"
branches_sharing_code = "warn"
cast_lossless = "warn"
cast_possible_truncation = "warn"
cast_possible_wrap = "warn"
cast_precision_loss = "warn"
cast_ptr_alignment = "warn"
cast_sign_loss = "warn"
checked_conversions = "warn"
clear_with_drain = "warn"
cloned_instead_of_copied = "warn"
collection_is_never_read = "warn"
copy_iterator = "warn"
create_dir = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
decimal_literal_representation = "warn"
default_trait_access = "warn"
expect_used = "warn"
expl_impl_clone_on_copy = "warn"
fallible_impl_from = "warn"
filetype_is_file = "warn"
filter_map_next = "warn"
flat_map_option = "warn"
float_cmp = "warn"
fn_params_excessive_bools = "warn"
fn_to_numeric_cast_any = "warn"
format_collect = "warn"
format_push_string = "warn"
future_not_send = "warn"
if_then_some_else_none = "warn"
ignored_unit_patterns = "warn"
impl_trait_in_params = "warn"
implicit_clone = "warn"
implicit_hasher = "warn"
imprecise_flops = "warn"
indexing_slicing = "warn"
inefficient_to_string = "warn"
items_after_statements = "warn"
iter_filter_is_some = "warn"
iter_not_returning_iterator = "warn"
iter_on_empty_collections = "warn"
iter_on_single_items = "warn"
large_digit_groups = "warn"
large_futures = "warn"
large_stack_arrays = "warn"
large_stack_frames = "warn"
large_types_passed_by_value = "warn"
literal_string_with_formatting_args = "warn"
lossy_float_literal = "warn"
macro_use_imports = "warn"
manual_assert = "warn"
manual_instant_elapsed = "warn"
manual_is_power_of_two = "warn"
manual_is_variant_and = "warn"
manual_let_else = "warn"
manual_ok_or = "warn"
many_single_char_names = "warn"
map_unwrap_or = "warn"
map_with_unused_argument_over_ranges = "warn"
mismatching_type_param_order = "warn"
missing_const_for_fn = "warn"
missing_docs_in_private_items = "warn"
missing_fields_in_debug = "warn"
must_use_candidate = "warn"
mut_mut = "warn"
mutex_atomic = "warn"
mutex_integer = "warn"
needless_bitwise_bool = "warn"
needless_collect = "warn"
needless_pass_by_ref_mut = "warn"
non_send_fields_in_send_ty = "warn"
non_std_lazy_statics = "warn"
option_option = "warn"
or_fun_call = "warn"
path_buf_push_overwrite = "warn"
print_stderr = "warn"
print_stdout = "warn"
ptr_as_ptr = "warn"
ptr_cast_constness = "warn"
range_minus_one = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
read_zero_byte_vec = "warn"
ref_binding_to_reference = "warn"
ref_option_ref = "warn"
return_self_not_must_use = "warn"
same_functions_in_if_condition = "warn"
same_name_method = "warn"
set_contains_or_insert = "warn"
stable_sort_primitive = "warn"
str_to_string = "warn"
string_lit_chars_any = "warn"
string_to_string = "warn"
suboptimal_flops = "warn"
suspicious_operation_groupings = "warn"
suspicious_xor_used_as_pow = "warn"
tabs_in_doc_comments = "allow"
tests_outside_test_module = "warn"
too_many_lines = "warn"
trait_duplication_in_bounds = "warn"
trivially_copy_pass_by_ref = "warn"
try_err = "warn"
type_repetition_in_bounds = "warn"
unchecked_duration_subtraction = "warn"
undocumented_unsafe_blocks = "warn"
unnecessary_box_returns = "warn"
unnecessary_lazy_evaluations = "allow"
unnecessary_literal_bound = "warn"
unnested_or_patterns = "warn"
unreadable_literal = "warn"
unsafe_derive_deserialize = "warn"
unseparated_literal_suffix = "warn"
unused_async = "warn"
unused_self = "warn"
unwrap_used = "warn"
used_underscore_binding = "warn"
used_underscore_items = "warn"
useless_let_if_seq = "warn"
verbose_file_reads = "warn"
[lints.rust]
closure_returning_async_block = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unused_extern_crates = "warn"
[package]
authors = ["Flix <felix.dommes@rwth-aachen.de>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["encoding", "parser-implementations", "no-std", "no-std::no-alloc", "embedded"]
description = "A brief, self-descriptive, serde-compatible binary format."
documentation = "https://docs.rs/serde-brief"
edition = "2024"
exclude = ["/tests/data", "/.github"]
homepage = "https://github.com/FlixCoder/serde-brief"
keywords = ["serde", "encoding", "binary", "data", "no-std"]
license = "MIT"
name = "serde-brief"
readme = "README.md"
repository = "https://github.com/FlixCoder/serde-brief"
rust-version = "1.85"
version = "0.2.0"
[package.metadata.docs.rs]
all-features = true
[[test]]
name = "all"
path = "tests/all/main.rs"