# 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.95"
name = "fhir-model"
version = "0.13.0"
authors = ["Flix <flix@flixco.de>"]
build = false
exclude = ["/tests/*-examples-json"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "FHIR Software Development Kit. Library for interfacing with FHIR."
homepage = "https://github.com/FlixCoder/fhir-sdk"
documentation = "https://docs.rs/fhir-sdk"
readme = "README.md"
keywords = [
    "FHIR",
    "JSON",
    "types",
]
categories = [
    "data-structures",
    "parser-implementations",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/FlixCoder/fhir-sdk"

[package.metadata.docs.rs]
features = [
    "r5",
    "builders",
]
no-default-features = true

[features]
builders = ["dep:derive_builder"]
default = [
    "r5",
    "builders",
]
full = [
    "stu3",
    "r4b",
    "r5",
    "builders",
]
r4b = []
r5 = []
stu3 = []

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

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

[dependencies.base64]
version = "0.22.1"

[dependencies.derive_builder]
version = "0.20.2"
optional = true

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.time]
version = "0.3.47"
features = [
    "formatting",
    "parsing",
    "macros",
    "serde",
    "serde-well-known",
]

[dev-dependencies.assert-json-diff]
version = "2.0.2"

[dev-dependencies.serde_json]
version = "1.0.149"

[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"
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_time_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"
