Poison builds that accidentally use both the Upb and Cpp kernel. This should only be possible for targets defined within the protobuf codebase.

PiperOrigin-RevId: 642622844
pull/17102/head
Derek Benson 9 months ago committed by Copybara-Service
parent 94d5f12369
commit 41315fd37f
  1. 5
      rust/shared.rs

@ -61,6 +61,11 @@ mod proxied;
mod repeated;
mod string;
// If the Upb and C++ kernels are both linked into the same binary, this symbol
// will be defined twice and cause a link error.
#[no_mangle]
extern "C" fn __Disallow_Upb_And_Cpp_In_Same_Binary() {}
/// An error that happened during parsing.
#[derive(Debug, Clone)]
pub struct ParseError;

Loading…
Cancel
Save