[package]
edition = "2024"
rust-version = "1.92"
name = "substrate-data-derive"
version = "0.4.0"
authors = ["F000NK"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "#[derive(Schema)] for substrate-data."
documentation = "https://docs.rs/substrate-data-derive"
readme = "README.md"
keywords = [
"serialization",
"schema",
"derive",
]
categories = ["encoding"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/F000NKKK/Substrate-Data"
[lib]
name = "substrate_data_derive"
path = "src/lib.rs"
proc-macro = true
[[test]]
name = "expansion"
path = "tests/expansion.rs"
[[test]]
name = "tagged_enums"
path = "tests/tagged_enums.rs"
[dependencies.proc-macro-crate]
version = "3"
[dependencies.proc-macro2]
version = "1"
[dependencies.quote]
version = "1"
[dependencies.syn]
version = "3"
features = [
"full",
"extra-traits",
]
[dev-dependencies]
[lints.clippy]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
cognitive_complexity = "deny"
dbg_macro = "deny"
excessive_nesting = "deny"
fn_params_excessive_bools = "deny"
large_types_passed_by_value = "warn"
let_underscore_must_use = "deny"
let_underscore_untyped = "warn"
missing_errors_doc = "deny"
missing_panics_doc = "deny"
mod_module_files = "allow"
module_name_repetitions = "warn"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
self_named_module_files = "deny"
shadow_unrelated = "warn"
struct_excessive_bools = "deny"
todo = "deny"
too_many_arguments = "deny"
too_many_lines = "deny"
undocumented_unsafe_blocks = "deny"
unimplemented = "deny"
unreachable = "deny"
unwrap_used = "deny"
wildcard_imports = "deny"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
elided_lifetimes_in_paths = "warn"
missing_debug_implementations = "deny"
missing_docs = "deny"
unreachable_pub = "warn"
unsafe_code = "deny"
unused_qualifications = "warn"