alamb commented on issue #1002: URL: https://github.com/apache/arrow-rs/issues/1002#issuecomment-4919328525
Is there precident for macros in crates that generate calls to crates they don't also depend on ? How would we ensure that parquet_derive is calling into supported APIs for the parquet crate? On Wed, Jul 8, 2026 at 1:50 PM Michael Ekstrand ***@***.***> wrote: > *mdekstrand* left a comment (apache/arrow-rs#1002) > <https://github.com/apache/arrow-rs/issues/1002#issuecomment-4917632066> > > Doesn't parquet_derive macros add calls to things in the parquet crate? I > don't understand how it would work to not depend on parquet (though maybe a > PR would make it clearer) > > Yes, but the macro doesn't need to depend on the crate in order to do > that. Macros just emit Rust syntax tokens, which the compiler then > interprets in the contexts of the crates being linked into the program that > uses the macro. Any program *using* parquet_derive needs to depend on > parquet (and it already needs to, because transitive dependencies aren't > available to use directly in a crate), but macros don't need to depend on > things they generate code for. > > — > Reply to this email directly, view it on GitHub > <https://github.com/apache/arrow-rs/issues/1002?email_source=notifications&email_token=AADXZMPH6AGAD2K5IREUKN35D2CVTA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIOJRG43DGMRQGY3KM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-4917632066>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AADXZMMHEYWLQDAXL7L5XNT5D2CVTAVCNFSNUABFKJSXA33TNF2G64TZHMZTKOBZGE3TENJQHNEXG43VMU5TCMBXGEYDMNBQGA42C5QC> > . > You are receiving this because you were mentioned.Message ID: > ***@***.***> > -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
