Open littzhch opened 1 year ago
There is no good way to do this in cargo
. The location of OUT_DIR
changes and it is an implementation detail that is private to Cargo.
@littzhch did you find a solution to this? I want to include the output of clap_mangen in my package.
@littzhch did you find a solution to this? I want to include the output of clap_mangen in my package.
@sowbug No, still unsolved. It seems that a RFC is needed to make OUT_DIR
public. The two tools mentioned in rust-lang/cargo#9858 may help.
Thanks. That issue discussion confirms my guess that what we want is contrary to a design goal. Nobody puts random hash strings in a path to improve discoverability. :)
For the short term, I did a gross hack, outputting my generated man page to target/. It'll work until it doesn't, and then cargo deb will complain about a missing asset, and then I'll hack it again.
On Thu, Jul 6, 2023, 6:44 PM littzhch @.***> wrote:
@littzhch https://github.com/littzhch did you find a solution to this? I want to include the output of clap_mangen https://crates.io/crates/clap_mangen in my package.
@sowbug https://github.com/sowbug No, still unsolved. It seems that a RFC is needed to make OUTPUT public. see this: rust-lang/cargo#9858 https://github.com/rust-lang/cargo/issues/9858
— Reply to this email directly, view it on GitHub https://github.com/kornelski/cargo-deb/issues/67#issuecomment-1624519060, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAHMVHES5TK7C35LJBQXZDXO5SWPANCNFSM6AAAAAAUBBIKDY . You are receiving this because you were mentioned.Message ID: @.***>
I try to pack files generated by build.rs into deb package, but I didn't find a comfortable way to fetch files in OUT_DIR using cargo-deb. Is it possible to add a simple way to do this?