Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.1 KiB
29 lines
1.1 KiB
// Protocol Buffers - Google's data interchange format |
|
// Copyright 2023 Google LLC. All rights reserved. |
|
// |
|
// Use of this source code is governed by a BSD-style |
|
// license that can be found in the LICENSE file or at |
|
// https://developers.google.com/open-source/licenses/bsd |
|
|
|
//! Kernel-agnostic logic for the Rust Protobuf runtime that should not be |
|
//! exposed to through the `protobuf` path but must be public for use by |
|
//! generated code. |
|
|
|
// Used by the proto! macro |
|
pub use paste::paste; |
|
|
|
pub use crate::r#enum::Enum; |
|
pub use crate::vtable::{ |
|
new_vtable_field_entry, BytesMutVTable, BytesOptionalMutVTable, PrimitiveOptionalMutVTable, |
|
PrimitiveVTable, PrimitiveWithRawVTable, ProxiedWithRawOptionalVTable, ProxiedWithRawVTable, |
|
RawVTableMutator, RawVTableOptionalMutatorData, |
|
}; |
|
pub use crate::ProtoStr; |
|
|
|
// TODO: Temporarily re-export these symbols which are now under |
|
// __runtime under __internal since some external callers using it through |
|
// __internal. |
|
pub use crate::__runtime::{PtrAndLen, RawMap, RawMessage, RawRepeatedField}; |
|
|
|
/// Used to protect internal-only items from being used accidentally. |
|
pub struct Private;
|
|
|