├── .github ├── FUNDING.yml └── workflows │ ├── ci.yml │ └── compiletests.yml ├── .gitignore ├── CHANGELOG.md ├── Cargo.toml ├── LICENSE ├── README.md ├── clippy.toml ├── compiletests.sh ├── core ├── Cargo.toml ├── LICENSE └── src │ ├── ast │ ├── data │ │ ├── mod.rs │ │ └── nested_meta.rs │ ├── generics.rs │ └── mod.rs │ ├── codegen │ ├── attr_extractor.rs │ ├── attrs_field.rs │ ├── default_expr.rs │ ├── error.rs │ ├── field.rs │ ├── from_attributes_impl.rs │ ├── from_derive_impl.rs │ ├── from_field.rs │ ├── from_meta_impl.rs │ ├── from_type_param.rs │ ├── from_variant_impl.rs │ ├── mod.rs │ ├── outer_from_impl.rs │ ├── postfix_transform.rs │ ├── trait_impl.rs │ ├── variant.rs │ └── variant_data.rs │ ├── derive.rs │ ├── error │ ├── child.rs │ ├── kind.rs │ ├── mod.rs │ └── util.rs │ ├── from_attributes.rs │ ├── from_derive_input.rs │ ├── from_field.rs │ ├── from_generic_param.rs │ ├── from_generics.rs │ ├── from_meta.rs │ ├── from_type_param.rs │ ├── from_variant.rs │ ├── lib.rs │ ├── macros_private.rs │ ├── macros_public.rs │ ├── options │ ├── core.rs │ ├── forward_attrs.rs │ ├── forwarded_field.rs │ ├── from_attributes.rs │ ├── from_derive.rs │ ├── from_field.rs │ ├── from_meta.rs │ ├── from_type_param.rs │ ├── from_variant.rs │ ├── input_field.rs │ ├── input_variant.rs │ ├── mod.rs │ ├── outer_from.rs │ └── shape.rs │ ├── usage │ ├── generics_ext.rs │ ├── ident_set.rs │ ├── lifetimes.rs │ ├── mod.rs │ ├── options.rs │ └── type_params.rs │ └── util │ ├── callable.rs │ ├── flag.rs │ ├── ident_string │ ├── mod.rs │ └── serde.rs │ ├── ignored.rs │ ├── mod.rs │ ├── over_ride.rs │ ├── parse_attribute.rs │ ├── parse_expr.rs │ ├── path_list.rs │ ├── path_to_string.rs │ ├── preserved_str_expr.rs │ ├── shape.rs │ ├── spanned_value.rs │ └── with_original.rs ├── examples ├── automatic_bounds.rs ├── consume_fields.rs ├── enum_of_struct_variants.rs ├── expr_with.rs ├── fallible_read.rs ├── from_word_and_expr.rs ├── heterogeneous_enum_and_word.rs ├── shorthand_or_long_field.rs └── supports_struct.rs ├── macro ├── Cargo.toml ├── LICENSE └── src │ └── lib.rs ├── publish.sh ├── rustfmt.toml ├── src ├── lib.rs └── macros_public.rs └── tests ├── accrue_errors.rs ├── attrs_with.rs ├── compile-fail ├── attr_forwarded_and_parsed.rs ├── attr_forwarded_and_parsed.stderr ├── attrs_with_bad_fn.rs ├── attrs_with_bad_fn.stderr ├── attrs_without_forward_attrs.rs ├── attrs_without_forward_attrs.stderr ├── default_expr_bad_arg.rs ├── default_expr_bad_arg.stderr ├── duplicate_word_across_variants.rs ├── duplicate_word_across_variants.stderr ├── duplicate_word_on_variant.rs ├── duplicate_word_on_variant.stderr ├── flatten_meta_conflicts.rs ├── flatten_meta_conflicts.stderr ├── flatten_multiple_fields.rs ├── flatten_multiple_fields.stderr ├── from_expr.rs ├── from_expr.stderr ├── from_word.rs ├── from_word.stderr ├── not_impl_from_meta.rs ├── not_impl_from_meta.stderr ├── skip_field_not_impl_default.rs ├── skip_field_not_impl_default.stderr ├── with_closure_capture.rs ├── with_closure_capture.stderr ├── word_on_wrong_variant_type.rs └── word_on_wrong_variant_type.stderr ├── compiletests.rs ├── computed_bound.rs ├── custom_bound.rs ├── data_with.rs ├── defaults.rs ├── enums_default.rs ├── enums_newtype.rs ├── enums_struct.rs ├── enums_unit.rs ├── error.rs ├── flatten.rs ├── flatten_error_accumulation.rs ├── flatten_from_field.rs ├── forward_attrs_to_from_attributes.rs ├── from_generics.rs ├── from_meta.rs ├── from_type_param.rs ├── from_type_param_default.rs ├── from_variant.rs ├── generics.rs ├── generics_with.rs ├── happy_path.rs ├── hash_map.rs ├── meta_with.rs ├── multiple.rs ├── newtype.rs ├── override_callable.rs ├── skip.rs ├── spanned_value.rs ├── split_declaration.rs ├── suggestions.rs ├── supports.rs └── unsupported_attributes.rs /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: TedDriggs 2 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/compiletests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/.github/workflows/compiletests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/README.md -------------------------------------------------------------------------------- /clippy.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/clippy.toml -------------------------------------------------------------------------------- /compiletests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/compiletests.sh -------------------------------------------------------------------------------- /core/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/Cargo.toml -------------------------------------------------------------------------------- /core/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/LICENSE -------------------------------------------------------------------------------- /core/src/ast/data/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/ast/data/mod.rs -------------------------------------------------------------------------------- /core/src/ast/data/nested_meta.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/ast/data/nested_meta.rs -------------------------------------------------------------------------------- /core/src/ast/generics.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/ast/generics.rs -------------------------------------------------------------------------------- /core/src/ast/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/ast/mod.rs -------------------------------------------------------------------------------- /core/src/codegen/attr_extractor.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/codegen/attr_extractor.rs -------------------------------------------------------------------------------- /core/src/codegen/attrs_field.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/codegen/attrs_field.rs -------------------------------------------------------------------------------- /core/src/codegen/default_expr.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/codegen/default_expr.rs -------------------------------------------------------------------------------- /core/src/codegen/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/codegen/error.rs -------------------------------------------------------------------------------- /core/src/codegen/field.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/codegen/field.rs -------------------------------------------------------------------------------- /core/src/codegen/from_attributes_impl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/codegen/from_attributes_impl.rs -------------------------------------------------------------------------------- /core/src/codegen/from_derive_impl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/codegen/from_derive_impl.rs -------------------------------------------------------------------------------- /core/src/codegen/from_field.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/codegen/from_field.rs -------------------------------------------------------------------------------- /core/src/codegen/from_meta_impl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/codegen/from_meta_impl.rs -------------------------------------------------------------------------------- /core/src/codegen/from_type_param.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/codegen/from_type_param.rs -------------------------------------------------------------------------------- /core/src/codegen/from_variant_impl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/codegen/from_variant_impl.rs -------------------------------------------------------------------------------- /core/src/codegen/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/codegen/mod.rs -------------------------------------------------------------------------------- /core/src/codegen/outer_from_impl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/codegen/outer_from_impl.rs -------------------------------------------------------------------------------- /core/src/codegen/postfix_transform.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/codegen/postfix_transform.rs -------------------------------------------------------------------------------- /core/src/codegen/trait_impl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/codegen/trait_impl.rs -------------------------------------------------------------------------------- /core/src/codegen/variant.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/codegen/variant.rs -------------------------------------------------------------------------------- /core/src/codegen/variant_data.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/codegen/variant_data.rs -------------------------------------------------------------------------------- /core/src/derive.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/derive.rs -------------------------------------------------------------------------------- /core/src/error/child.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/error/child.rs -------------------------------------------------------------------------------- /core/src/error/kind.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/error/kind.rs -------------------------------------------------------------------------------- /core/src/error/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/error/mod.rs -------------------------------------------------------------------------------- /core/src/error/util.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/error/util.rs -------------------------------------------------------------------------------- /core/src/from_attributes.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/from_attributes.rs -------------------------------------------------------------------------------- /core/src/from_derive_input.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/from_derive_input.rs -------------------------------------------------------------------------------- /core/src/from_field.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/from_field.rs -------------------------------------------------------------------------------- /core/src/from_generic_param.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/from_generic_param.rs -------------------------------------------------------------------------------- /core/src/from_generics.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/from_generics.rs -------------------------------------------------------------------------------- /core/src/from_meta.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/from_meta.rs -------------------------------------------------------------------------------- /core/src/from_type_param.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/from_type_param.rs -------------------------------------------------------------------------------- /core/src/from_variant.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/from_variant.rs -------------------------------------------------------------------------------- /core/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/lib.rs -------------------------------------------------------------------------------- /core/src/macros_private.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/macros_private.rs -------------------------------------------------------------------------------- /core/src/macros_public.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/macros_public.rs -------------------------------------------------------------------------------- /core/src/options/core.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/options/core.rs -------------------------------------------------------------------------------- /core/src/options/forward_attrs.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/options/forward_attrs.rs -------------------------------------------------------------------------------- /core/src/options/forwarded_field.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/options/forwarded_field.rs -------------------------------------------------------------------------------- /core/src/options/from_attributes.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/options/from_attributes.rs -------------------------------------------------------------------------------- /core/src/options/from_derive.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/options/from_derive.rs -------------------------------------------------------------------------------- /core/src/options/from_field.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/options/from_field.rs -------------------------------------------------------------------------------- /core/src/options/from_meta.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/options/from_meta.rs -------------------------------------------------------------------------------- /core/src/options/from_type_param.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/options/from_type_param.rs -------------------------------------------------------------------------------- /core/src/options/from_variant.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/options/from_variant.rs -------------------------------------------------------------------------------- /core/src/options/input_field.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/options/input_field.rs -------------------------------------------------------------------------------- /core/src/options/input_variant.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/options/input_variant.rs -------------------------------------------------------------------------------- /core/src/options/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/options/mod.rs -------------------------------------------------------------------------------- /core/src/options/outer_from.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/options/outer_from.rs -------------------------------------------------------------------------------- /core/src/options/shape.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/options/shape.rs -------------------------------------------------------------------------------- /core/src/usage/generics_ext.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/usage/generics_ext.rs -------------------------------------------------------------------------------- /core/src/usage/ident_set.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/usage/ident_set.rs -------------------------------------------------------------------------------- /core/src/usage/lifetimes.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/usage/lifetimes.rs -------------------------------------------------------------------------------- /core/src/usage/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/usage/mod.rs -------------------------------------------------------------------------------- /core/src/usage/options.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/usage/options.rs -------------------------------------------------------------------------------- /core/src/usage/type_params.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/usage/type_params.rs -------------------------------------------------------------------------------- /core/src/util/callable.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/util/callable.rs -------------------------------------------------------------------------------- /core/src/util/flag.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/util/flag.rs -------------------------------------------------------------------------------- /core/src/util/ident_string/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/util/ident_string/mod.rs -------------------------------------------------------------------------------- /core/src/util/ident_string/serde.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/util/ident_string/serde.rs -------------------------------------------------------------------------------- /core/src/util/ignored.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/util/ignored.rs -------------------------------------------------------------------------------- /core/src/util/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/util/mod.rs -------------------------------------------------------------------------------- /core/src/util/over_ride.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/util/over_ride.rs -------------------------------------------------------------------------------- /core/src/util/parse_attribute.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/util/parse_attribute.rs -------------------------------------------------------------------------------- /core/src/util/parse_expr.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/util/parse_expr.rs -------------------------------------------------------------------------------- /core/src/util/path_list.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/util/path_list.rs -------------------------------------------------------------------------------- /core/src/util/path_to_string.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/util/path_to_string.rs -------------------------------------------------------------------------------- /core/src/util/preserved_str_expr.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/util/preserved_str_expr.rs -------------------------------------------------------------------------------- /core/src/util/shape.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/util/shape.rs -------------------------------------------------------------------------------- /core/src/util/spanned_value.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/util/spanned_value.rs -------------------------------------------------------------------------------- /core/src/util/with_original.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/core/src/util/with_original.rs -------------------------------------------------------------------------------- /examples/automatic_bounds.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/examples/automatic_bounds.rs -------------------------------------------------------------------------------- /examples/consume_fields.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/examples/consume_fields.rs -------------------------------------------------------------------------------- /examples/enum_of_struct_variants.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/examples/enum_of_struct_variants.rs -------------------------------------------------------------------------------- /examples/expr_with.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/examples/expr_with.rs -------------------------------------------------------------------------------- /examples/fallible_read.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/examples/fallible_read.rs -------------------------------------------------------------------------------- /examples/from_word_and_expr.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/examples/from_word_and_expr.rs -------------------------------------------------------------------------------- /examples/heterogeneous_enum_and_word.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/examples/heterogeneous_enum_and_word.rs -------------------------------------------------------------------------------- /examples/shorthand_or_long_field.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/examples/shorthand_or_long_field.rs -------------------------------------------------------------------------------- /examples/supports_struct.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/examples/supports_struct.rs -------------------------------------------------------------------------------- /macro/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/macro/Cargo.toml -------------------------------------------------------------------------------- /macro/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/macro/LICENSE -------------------------------------------------------------------------------- /macro/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/macro/src/lib.rs -------------------------------------------------------------------------------- /publish.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/publish.sh -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/rustfmt.toml -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/macros_public.rs: -------------------------------------------------------------------------------- 1 | ../core/src/macros_public.rs -------------------------------------------------------------------------------- /tests/accrue_errors.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/accrue_errors.rs -------------------------------------------------------------------------------- /tests/attrs_with.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/attrs_with.rs -------------------------------------------------------------------------------- /tests/compile-fail/attr_forwarded_and_parsed.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/attr_forwarded_and_parsed.rs -------------------------------------------------------------------------------- /tests/compile-fail/attr_forwarded_and_parsed.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/attr_forwarded_and_parsed.stderr -------------------------------------------------------------------------------- /tests/compile-fail/attrs_with_bad_fn.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/attrs_with_bad_fn.rs -------------------------------------------------------------------------------- /tests/compile-fail/attrs_with_bad_fn.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/attrs_with_bad_fn.stderr -------------------------------------------------------------------------------- /tests/compile-fail/attrs_without_forward_attrs.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/attrs_without_forward_attrs.rs -------------------------------------------------------------------------------- /tests/compile-fail/attrs_without_forward_attrs.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/attrs_without_forward_attrs.stderr -------------------------------------------------------------------------------- /tests/compile-fail/default_expr_bad_arg.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/default_expr_bad_arg.rs -------------------------------------------------------------------------------- /tests/compile-fail/default_expr_bad_arg.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/default_expr_bad_arg.stderr -------------------------------------------------------------------------------- /tests/compile-fail/duplicate_word_across_variants.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/duplicate_word_across_variants.rs -------------------------------------------------------------------------------- /tests/compile-fail/duplicate_word_across_variants.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/duplicate_word_across_variants.stderr -------------------------------------------------------------------------------- /tests/compile-fail/duplicate_word_on_variant.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/duplicate_word_on_variant.rs -------------------------------------------------------------------------------- /tests/compile-fail/duplicate_word_on_variant.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/duplicate_word_on_variant.stderr -------------------------------------------------------------------------------- /tests/compile-fail/flatten_meta_conflicts.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/flatten_meta_conflicts.rs -------------------------------------------------------------------------------- /tests/compile-fail/flatten_meta_conflicts.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/flatten_meta_conflicts.stderr -------------------------------------------------------------------------------- /tests/compile-fail/flatten_multiple_fields.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/flatten_multiple_fields.rs -------------------------------------------------------------------------------- /tests/compile-fail/flatten_multiple_fields.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/flatten_multiple_fields.stderr -------------------------------------------------------------------------------- /tests/compile-fail/from_expr.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/from_expr.rs -------------------------------------------------------------------------------- /tests/compile-fail/from_expr.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/from_expr.stderr -------------------------------------------------------------------------------- /tests/compile-fail/from_word.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/from_word.rs -------------------------------------------------------------------------------- /tests/compile-fail/from_word.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/from_word.stderr -------------------------------------------------------------------------------- /tests/compile-fail/not_impl_from_meta.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/not_impl_from_meta.rs -------------------------------------------------------------------------------- /tests/compile-fail/not_impl_from_meta.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/not_impl_from_meta.stderr -------------------------------------------------------------------------------- /tests/compile-fail/skip_field_not_impl_default.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/skip_field_not_impl_default.rs -------------------------------------------------------------------------------- /tests/compile-fail/skip_field_not_impl_default.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/skip_field_not_impl_default.stderr -------------------------------------------------------------------------------- /tests/compile-fail/with_closure_capture.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/with_closure_capture.rs -------------------------------------------------------------------------------- /tests/compile-fail/with_closure_capture.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/with_closure_capture.stderr -------------------------------------------------------------------------------- /tests/compile-fail/word_on_wrong_variant_type.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/word_on_wrong_variant_type.rs -------------------------------------------------------------------------------- /tests/compile-fail/word_on_wrong_variant_type.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compile-fail/word_on_wrong_variant_type.stderr -------------------------------------------------------------------------------- /tests/compiletests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/compiletests.rs -------------------------------------------------------------------------------- /tests/computed_bound.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/computed_bound.rs -------------------------------------------------------------------------------- /tests/custom_bound.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/custom_bound.rs -------------------------------------------------------------------------------- /tests/data_with.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/data_with.rs -------------------------------------------------------------------------------- /tests/defaults.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/defaults.rs -------------------------------------------------------------------------------- /tests/enums_default.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/enums_default.rs -------------------------------------------------------------------------------- /tests/enums_newtype.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/enums_newtype.rs -------------------------------------------------------------------------------- /tests/enums_struct.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/enums_struct.rs -------------------------------------------------------------------------------- /tests/enums_unit.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/enums_unit.rs -------------------------------------------------------------------------------- /tests/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/error.rs -------------------------------------------------------------------------------- /tests/flatten.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/flatten.rs -------------------------------------------------------------------------------- /tests/flatten_error_accumulation.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/flatten_error_accumulation.rs -------------------------------------------------------------------------------- /tests/flatten_from_field.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/flatten_from_field.rs -------------------------------------------------------------------------------- /tests/forward_attrs_to_from_attributes.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/forward_attrs_to_from_attributes.rs -------------------------------------------------------------------------------- /tests/from_generics.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/from_generics.rs -------------------------------------------------------------------------------- /tests/from_meta.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/from_meta.rs -------------------------------------------------------------------------------- /tests/from_type_param.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/from_type_param.rs -------------------------------------------------------------------------------- /tests/from_type_param_default.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/from_type_param_default.rs -------------------------------------------------------------------------------- /tests/from_variant.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/from_variant.rs -------------------------------------------------------------------------------- /tests/generics.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/generics.rs -------------------------------------------------------------------------------- /tests/generics_with.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/generics_with.rs -------------------------------------------------------------------------------- /tests/happy_path.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/happy_path.rs -------------------------------------------------------------------------------- /tests/hash_map.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/hash_map.rs -------------------------------------------------------------------------------- /tests/meta_with.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/meta_with.rs -------------------------------------------------------------------------------- /tests/multiple.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/multiple.rs -------------------------------------------------------------------------------- /tests/newtype.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/newtype.rs -------------------------------------------------------------------------------- /tests/override_callable.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/override_callable.rs -------------------------------------------------------------------------------- /tests/skip.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/skip.rs -------------------------------------------------------------------------------- /tests/spanned_value.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/spanned_value.rs -------------------------------------------------------------------------------- /tests/split_declaration.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/split_declaration.rs -------------------------------------------------------------------------------- /tests/suggestions.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/suggestions.rs -------------------------------------------------------------------------------- /tests/supports.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/supports.rs -------------------------------------------------------------------------------- /tests/unsupported_attributes.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TedDriggs/darling/HEAD/tests/unsupported_attributes.rs --------------------------------------------------------------------------------