bit2swaz commented on issue #10253:
URL: https://github.com/apache/arrow-rs/issues/10253#issuecomment-5070335544

   yeah makes sense. if the goal is a broader fix, the real lever is making the 
fields private across all three structs (`FFI_ArrowSchema`, `FFI_ArrowArray`, 
`FFI_ArrowArrayStream`). each one has the same pattern: public fields, a 
`release` fn pointer called from `Drop`, and no way to mark `drop` unsafe. 
private fields kill the whole problem at the root since you cant construct a 
garbage instance in safe Rust at all
   
   ill be closing the current draft PR as it only covers `try_new` on one 
struct which is now the wrong scope. will open a proper issue + PR covering all 
three if thats alright


-- 
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]

Reply via email to