From b4825f408a5140af43ffcc1744e0df3c5fdf07be Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 12 Jul 2023 15:47:23 +0200 Subject: [PATCH] feat(rust): use symlink for trezor-client/protob to satisfy cargo publish --dry-run it seems there is something smart going on and the symlink is expanded to file copies during the build [no changelog] --- rust/trezor-client/build.rs | 2 +- rust/trezor-client/protob | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 120000 rust/trezor-client/protob diff --git a/rust/trezor-client/build.rs b/rust/trezor-client/build.rs index ebebe9256..2595a6c95 100644 --- a/rust/trezor-client/build.rs +++ b/rust/trezor-client/build.rs @@ -1,7 +1,7 @@ use std::{fs, path::PathBuf}; fn main() { - let proto_path = "../../common/protob"; + let proto_path = "protob"; let protos: Vec = fs::read_dir(proto_path) .unwrap() .filter_map(|entry| { diff --git a/rust/trezor-client/protob b/rust/trezor-client/protob new file mode 120000 index 000000000..ba707988a --- /dev/null +++ b/rust/trezor-client/protob @@ -0,0 +1 @@ +../../common/protob \ No newline at end of file