From 56326374e5ea6628c6669c88cb175bd16203f2d5 Mon Sep 17 00:00:00 2001 From: teor Date: Mon, 24 Apr 2023 10:26:13 +1000 Subject: [PATCH] Change module comment in bridge.rs to doc comment This allows zcash_script to include!() the file as part of its build process. --- src/rust/src/bridge.rs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/rust/src/bridge.rs b/src/rust/src/bridge.rs index 926c40642..403465988 100644 --- a/src/rust/src/bridge.rs +++ b/src/rust/src/bridge.rs @@ -1,11 +1,12 @@ -//! FFI bridges between `zcashd`'s Rust and C++ code. -//! -//! These are all collected into a single file because we can't use the same Rust type -//! across multiple bridges until https://github.com/dtolnay/cxx/issues/496 is closed. -//! -//! The bridges that we leave separate are either standalone Rust code, or exporting C++ -//! types to Rust (because we _can_ use the same C++ type across multiple bridges). - +/// FFI bridges between `zcashd`'s Rust and C++ code. +/// +/// These are all collected into a single file because we can't use the same Rust type +/// across multiple bridges until https://github.com/dtolnay/cxx/issues/496 is closed. +/// +/// The bridges that we leave separate are either standalone Rust code, or exporting C++ +/// types to Rust (because we _can_ use the same C++ type across multiple bridges). +// +// This file can't use a module comment (`//! comment`) because it causes compilation issues in zcash_script. use crate::{ bundlecache::init as bundlecache_init, merkle_frontier::{new_orchard, orchard_empty_root, parse_orchard, Orchard, OrchardWallet},