Skip to content

A cargo wrapper POC for faster compilation of dependencies as dynamic libraries.

License

Notifications You must be signed in to change notification settings

TheAlgorythm/cargo-dylib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cargo-dylib

A cargo wrapper proof of concept for faster compilation of dependencies as dynamic libraries. For incremental builds the linking of dynamic libraries is much faster then building a static binary as described in this blog post. It works a bit like cargo-add-dynamic, but doesn't alter the Cargo.toml in order to have a single source of truth for both fast incremental debug builds and release builds. It does so by reading the Cargo.toml, laying out a shadow project structure and executes the command with a pointer to the shadow metadata.

As this is just a proof of concept it won't generate dylibs recursively yet.

TODOs

  • Workspace support
  • Treat shared subdependencies as dylibs (recursive)

About

A cargo wrapper POC for faster compilation of dependencies as dynamic libraries.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages