Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite archive.c in Rust #1

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

levkk
Copy link

@levkk levkk commented Sep 12, 2022

Rust Proof of Concept

PoC rewrite of fe_utils/archive.c and common/archive.c in Rust. I picked these because they were relatively simple single function files. Multi-function files are possible as well, but will require deleting C code and replacing it with Rust instead of just object file swaps.

Limitations

cargo and the Rust compiler don't support compiling the same project with multiple features at the same time, so just for now, use make -j1 when compiling. I think the fix for this would be to split the parts of Postgres into their own crates and share them (workspace).

Use cross-platform path

Remove C code

Fun!

alright

no warnings

keep c code as reference

Put archive back for reference

Fixes

Checks

add space bakc
@levkk levkk changed the title Rewrite fe_utils/archive.c in Rust Rewrite archive.c in Rust Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant