8 ms·
I am fully aware what Cargo.lock is. What I am surprised at is how many dependencies there are.
by diziet 2mo ago
I am fully aware what Cargo.lock is. What I am surprised at is how many dependencies there are.
- kaoD 2mo agoSorry, the wording confused me. The project itself seems to be structued around 1.4k micro-crates[0] which I admit is a bit weird. Rust's compilation unit is the crate unlike C's per-file compilation unit, so if this was a 1:1 AI-assisted translation from the original Postgres source this might be an artifact of the translation. [0] https://github.com/malisper/pgrust/blob/main/Cargo.toml https://github.com/malisper/pgrust/blob/main/Cargo.toml
- malisper 2mo agoThis is correct. We first used c2rust to translate the C into unsafe Rust. The generated Rust code had one crate per C compilation unit. We then took the unsafe unidiomatic Rust and one crate at a time converted it to safe Rust.
- r_lee 2mo agoit's like node_modules but cooler