How to find 'direct dependency's' build directory in a crate?

⚓ Rust    📅 2025-10-10    👤 surdeus    👁️ 3      

surdeus

I have crate-a which is a dependency for crate-b. crate-a's build script copies some header files(.h) to /target/build/crate-a-xxx/out/include/ which I need to use during crate-b's build(building c files). how do i refer dir /target/build/crate-a-xxx/out/include/ in crate-b/build.rs through some env variable.

3 posts - 3 participants

Read full topic

🏷️ Rust_feed