graph icon indicating copy to clipboard operation
graph copied to clipboard

Fix build (and upgrade arrow)

Open thief-sty opened this issue 4 months ago • 3 comments

This closes #138 by upgrading arrow to 56.0.0 (latest).

thief-sty avatar Aug 18 '25 17:08 thief-sty

@thief-sty Thanks for the PR, I will have a look at it towards the end of the week.

s1ck avatar Aug 19 '25 08:08 s1ck

@thief-sty I did continue a bit on your changes. Fixing the current clippy warning about elided lifetimes, will bring you to the problem that the Error in the result type is too large. This is being addressed in tonic 0.14 by boxing the Status. However, arrow 56.0.0 depends on tonic 0.13, which does not include the change.

Unless you have a better proposal, I am fine with allowing the lint for the time being in server/main.rs:

#![allow(result_large_err)]

and removing that line once arrow upgraded to tonic 0.14.

The remaining error is a deprecation warning, which you can fix by:

    fn try_from(descriptor: FlightDescriptor) -> Result<Self, Self::Error> {
        match DescriptorType::try_from(descriptor.r#type) {
            Err => Err(Status::invalid_argument(format!(
                "unsupported descriptor type: {}",
                descriptor.r#type
            ))),
            Ok(DescriptorType::Cmd) => {
                serde_json::from_slice::<Self>(&descriptor.cmd).map_err(from_json_error)
            }
            Ok(descriptor_type) => Err(Status::invalid_argument(format!(
                "Expected command, got {descriptor_type:?}"
            ))),
        }
    }

After that, clippy should be happy with the PR.

s1ck avatar Aug 22 '25 11:08 s1ck

Bumping this just in case you didn't see my commits from last week

thief-sty avatar Sep 04 '25 14:09 thief-sty

Hi, can I ask what's the status on this?

V1OL3TF0X avatar Dec 10 '25 08:12 V1OL3TF0X