[package]
edition = "2024"
rust-version = "1.85"
name = "csharp-rs-macros"
version = "0.1.2"
authors = ["Clément Cornut <cornut.clem@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Proc macro implementation for csharp-rs"
homepage = "https://github.com/Pulsar-Anvil-Studios/csharp-rs"
readme = "README.md"
keywords = [
"csharp",
"codegen",
"derive",
"serde",
"unity",
]
categories = [
"development-tools::ffi",
"development-tools::build-utils",
]
license = "MIT"
repository = "https://github.com/Pulsar-Anvil-Studios/csharp-rs"
resolver = "2"
[lib]
name = "csharp_rs_macros"
path = "src/lib.rs"
proc-macro = true
[dependencies.proc-macro2]
version = "1.0.106"
[dependencies.quote]
version = "1.0.44"
[dependencies.syn]
version = "2.0.114"
features = [
"full",
"extra-traits",
]
[lints.clippy]
allow_attributes_without_reason = "warn"
clone_on_ref_ptr = "warn"
deref_by_slicing = "warn"
empty_enum_variants_with_brackets = "warn"
empty_structs_with_brackets = "warn"
if_then_some_else_none = "warn"
literal_string_with_formatting_args = "allow"
map_err_ignore = "warn"
multiple_crate_versions = "allow"
redundant_type_annotations = "warn"
semicolon_outside_block = "warn"
undocumented_unsafe_blocks = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unneeded_field_pattern = "warn"
unused_result_ok = "warn"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1
[lints.rust]
ambiguous_negative_literals = "warn"
missing_debug_implementations = "warn"
redundant_imports = "warn"
redundant_lifetimes = "warn"
trivial_numeric_casts = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_lifetimes = "warn"