[package]
name = "{{ crate_name }}-dart"
version = "{{ version }}"
edition = "2024"
license = "{{ license }}"

[package.metadata.cargo-machete]
# Umbrella + sibling crates are pulled in so flutter_rust_bridge can resolve
# every referenced type, but the generated Rust wrapper only `use`s a subset.
ignored = [{{ machete_ignored_list }}]

[lib]
crate-type = ["cdylib", "staticlib"]

[dependencies]
{{ extra_deps }}{{ target_override_blocks }}
[lints.rust]
# flutter_rust_bridge uses #[cfg(frb_expand)] internally during macro expansion.
# Variant arms gated on upstream features (e.g. #[cfg(feature = "office")]) use
# cfg conditions that are not declared in this binding crate. Declare all of them
# as known cfgs so rustc does not emit unexpected_cfgs warnings.
{% if referenced_feature_values %}
unexpected_cfgs = { level = "warn", check-cfg = [
    'cfg(frb_expand)',
    'cfg(feature, values({{ referenced_feature_values }}))',
] }
{% else %}
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(frb_expand)'] }
{% endif %}
