rust-ar
rust-ar copied to clipboard
Write symbol table
This means that it is no longer necessary to run ranlib afterwards. This PR also contains various cleanups. This is a breaking change.
TODO
- [x] Implement symbol table writing for BSD style archives.
Ping @mdsteele
Just to check, since the code has moved around: are all the previously existing tests still there?
Yes
The symbol table writing for BSD is incorrect. @GregBowyer said they will investigate, but hasn't had time yet. I have changed new_with_symbol_table to private for now.
I need this functionality in a project, any progress on this? Any plan to move forward? Thanks!
This PR doesn't work on macOS. I'm planning to instead rewrite LLVM's archive writer in rust and publish it as separate project. That is the easiest way to be certain it works on all platforms supported by LLVM.
I ported LLVM's archive writer to rust in https://github.com/rust-lang/ar_archive_writer instead.