Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 984 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 984 Bytes

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

Crates

  • user: The "user" of our library crate build-ctx which calls into build-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 for build-ctx to do its work.

References