Base: codex-main originale (prima del fork aKode)

This commit is contained in:
Andrea
2026-11-09 10:37:42 +01:00
commit 7874033c81
10166 changed files with 2728937 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
//! Shared wire-format configuration for both ends of the plugin pipes.
use tokio_util::codec::LengthDelimitedCodec;
pub const MAX_FRAME: usize = 1024 * 1024;
pub fn codec() -> LengthDelimitedCodec {
LengthDelimitedCodec::builder()
.little_endian()
.length_field_length(/*val*/ 4)
.max_frame_length(MAX_FRAME)
.new_codec()
}