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_initand
cargo run --bin app_mainuser: The "user" of our library cratebuild-ctxwhich calls intobuild-ctx-codegenin 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-ctxto do its work.