Skip to content

Commit 0a803ab

Browse files
DoddHazlittlrduqOcheretovich
authored andcommitted
fix(prover-nitro-enclave): use Linux-only deps for real main (base#1757)
The binary's async main, eyre return type, and NitroEnclave import are #[cfg(target_os = "linux")]; non-Linux builds only compile a panic stub. Put eyre, base-proof-tee-nitro-enclave, and tokio under [target.'cfg(target_os = "linux")'.dependencies] so cargo-udeps does not flag them on other hosts.
1 parent 575d758 commit 0a803ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/prover/nitro-enclave/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ path = "src/main.rs"
1515
[lints]
1616
workspace = true
1717

18-
[dependencies]
18+
[target.'cfg(target_os = "linux")'.dependencies]
1919
eyre.workspace = true
2020
base-proof-tee-nitro-enclave.workspace = true
2121
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }

0 commit comments

Comments
 (0)