Demonstrates how a library crate can access build time information about an end-user crate via a build script.
You can run the user binaries with
cargo run --bin app_init
and
cargo run --bin app_main
user
: The "user" of our library cratebuild-ctx
which calls intobuild-ctx-codegen
in its build script.build-ctx
: The actual library crate that will provide most of the functionality to the dependent crate.build-ctx-codegen
: The crate that the build script will call to do the code generation required forbuild-ctx
to do its work.