#cargo-toml #cargo #dependencies #script

build my_dependencies

Enumerate dependencies of the current crate from a build script

1 unstable release

Uses old Rust 2015

0.1.0 Dec 3, 2019

#128 in #dependencies

MIT/Apache

10KB
217 lines

"my dependencies" - Allows a build script to enumerate all of the Cargo.toml dependencies for the current crate.

Useful for including compile-time modules without needing to list the modules twice.


lib.rs:

Provides the enumerate function, that lists all of the dependencies to the current crate.

This is designed to be run as part of a build script, so don't expect much luck without it.

Dependencies

~0.6–1.2MB
~27K SLoC