• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2023 Google LLC.  All rights reserved.
3 //
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file or at
6 // https://developers.google.com/open-source/licenses/bsd
7 
8 //! Rust Protobuf Runtime
9 //!
10 //! This file forwards to `shared.rs`, which exports a kernel-specific
11 //! `__runtime`. Rust Protobuf gencode actually depends directly on kernel
12 //! specific crates. This crate exists for two reasons:
13 //! - To be able to use `protobuf` as a crate name for both cpp and upb kernels
14 //!   from user code.
15 //! - To make it more difficult to access internal-only items by default.
16 
17 #[cfg(cpp_kernel)]
18 use protobuf_cpp as kernel;
19 
20 #[cfg(upb_kernel)]
21 use protobuf_upb as kernel;
22 
23 pub use kernel::__public::*;
24 
25 pub use kernel::prelude;
26