Re: [PATCH 13/14] rust: add a small wrapper around the hashfile code
- From
brian m. carlson <sandals@crustytoothpaste.net>
- Date
- Oct 29, 2025, 01:39 UTC
- Message-ID
- <aQFwT_9I13yiUXyc@fruit.crustytoothpaste.net>
- In-Reply-To
- <CAH=ZcbBUw0Rm-O=Xc8835dWKYbmK0L1eksONAzRUa0fgdppb5A@mail.gmail.com>
On 2025-10-28 at 18:19:27, Ezekiel Newren wrote:
Show 9 quoted lines
> On Sun, Oct 26, 2025 at 6:44 PM brian m. carlson
> <sandals@crustytoothpaste.net> wrote:
>
> > +use crate::hash::{HashAlgorithm, GIT_MAX_RAWSZ};
> > +use std::ffi::CStr;
> > +use std::io::{self, Write};
> > +use std::os::raw::c_void;
>
> std::os::raw has been deprecated, only std::ffi should be used.std::ffi with the C types is not available until Rust 1.64 and we're not planning on targeting that for some time. This was intentional, but I'll mention it in the commit message for v2.
-- brian m. carlson (they/them) Toronto, Ontario, CA