MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / default_limits

Method default_limits

atomic-repository/src/git_binding/pack.rs:64–73  ·  view source on GitHub ↗

The default transport budgets: 64 MiB packs, 256 MiB decompression ceiling, 100k changes, 32 MiB per change, 100k closure entries, 10k dependency depth.

()

Source from the content-addressed store, hash-verified

62 /// ceiling, 100k changes, 32 MiB per change, 100k closure entries, 10k
63 /// dependency depth.
64 pub const fn default_limits() -> Self {
65 BindingPackLimits {
66 max_pack_bytes: 64 * 1024 * 1024,
67 max_decompressed_bytes: 256 * 1024 * 1024,
68 max_objects: 100_000,
69 max_object_bytes: 32 * 1024 * 1024,
70 max_closure_entries: 100_000,
71 max_closure_depth: 10_000,
72 }
73 }
74
75 /// A deliberately tiny budget for adversarial tests.
76 #[cfg(test)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected