avantgardnerio commented on code in PR #3580: URL: https://github.com/apache/arrow-datafusion/pull/3580#discussion_r976945860
########## datafusion/proto/build.rs: ########## @@ -58,22 +59,25 @@ fn build() -> Result<(), String> { // .serde.rs is not a valid package name, so append to datafusion.rs so we can treat it normally let proto = std::fs::read_to_string(out.join("datafusion.rs")).unwrap(); + + #[cfg(feature = "json")] let json = std::fs::read_to_string(out.join("datafusion.serde.rs")).unwrap(); + + #[cfg(feature = "docsrs")] + let path = out.join("datafusion.rs"); + #[cfg(not(feature = "docsrs"))] + let path = "src/generated/datafusion.rs"; Review Comment: Change generated path to src or out_dir as appropriate. -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org