#cargo #cargo-toml #script #dependencies #build-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

#113 in #build-script

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.7–1.3MB
~29K SLoC