Commit ce73a92
committed
Resolve rustapi_validate/core paths dynamically
Use proc_macro_crate to detect how validation/core/async_trait crates are referenced and emit the correct paths for generated code. The macros crate now computes validate_path, core_path, and async_trait_path and threads them into generation functions (generate_rule_validation, generate_async_rule_validation and derive_validate) so the Validate/AsyncValidate/Validatable impls work whether the consumer depends on rustapi-rs or the underlying crates directly. Added rustapi_validate to rustapi-core::__private and re-exported async_trait in rustapi-rs::__private to support those resolution strategies.1 parent c1f185d commit ce73a92
3 files changed
+178
-54
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| |||
0 commit comments