Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dcSpark/cddl-codegen
/ functions
Functions
1,061 in github.com/dcSpark/cddl-codegen
⨍
Functions
1,061
◇
Types & classes
166
↓ 1 callers
Function
minimal_level
The `Sz` level a minimal encoding of `arg` uses: 0=inline, 1..=4 = 1/2/4/8-byte.
static/emit_tests_encoding_fidelity.rs:127
↓ 1 callers
Function
mintRow
(id: string, axis: string, example: string, prev: CatalogRow | undefined, triage: string[], p
cddl-matrix/verify.ts:928
↓ 1 callers
Function
module_floor
Per-profile floor on how many fixtures emit a generated-test module — anti-vacuity guard mirroring `feature_corpus_compiles`. Discovered empirically (
src/tests/integration_tests.rs:4385
↓ 1 callers
Method
names_with_macros
(&self, used_in_key: bool, cli: &Cli)
src/generation.rs:7381
↓ 1 callers
Method
names_without_outer
(&self)
src/generation.rs:7377
↓ 1 callers
Method
not_basic
(self)
src/intermediate.rs:1459
↓ 1 callers
Function
ops_for_rust
The declarative changeset for `rust/Cargo.toml`: change-log keys + flag/type-conditional deps (set-or-remove) + the write-only version stamp. Absorbs
src/cargo_manifest.rs:541
↓ 1 callers
Method
overload_deserializer
(mut self, overload: &'a str)
src/generation.rs:217
↓ 1 callers
Method
overload_read_len
(mut self, overload: String)
src/generation.rs:226
↓ 1 callers
Method
parents
Make a new ModuleScope using only the first [depth] components
src/intermediate.rs:30
↓ 1 callers
Function
parse_newtype
to get around type annotations
src/comment_ast.rs:142
↓ 1 callers
Function
parse_padded_version
Parse a concrete version, padding a missing minor/patch to `0` (`"0.2"` → `0.2.0`). Returns `None` for anything that isn't a bare dotted numeric versi
src/cargo_manifest.rs:254
↓ 1 callers
Function
parse_record_from_group_choice
( types: &mut IntermediateTypes, rep: Representation, parent_visitor: &ParentVisitor, name: &R
src/parsing.rs:1946
↓ 1 callers
Function
parse_type
( types: &mut IntermediateTypes, parent_visitor: &ParentVisitor, type_name: &RustIdent, type_c
src/parsing.rs:608
↓ 1 callers
Function
prim_range
Inclusive representable range of an integer primitive's backing Rust type.
src/emit_tests.rs:1070
↓ 1 callers
Method
print_info
(&self)
src/intermediate.rs:900
↓ 1 callers
Method
print_structs_without_deserialize
(&self)
src/generation.rs:3689
↓ 1 callers
Function
problems
()
cddl-matrix/query_q5_completeness.ts:175
↓ 1 callers
Function
productionAlternatives
(name: string)
cddl-matrix/verify.ts:343
↓ 1 callers
Function
productionAlternatives
(name: string)
cddl-matrix/query_q5_completeness.ts:115
↓ 1 callers
Function
profileNewerThanTarget
(p: string | undefined)
cddl-matrix/verify.ts:69
↓ 1 callers
Function
profileView
(filter: string | undefined)
cddl-matrix/query_q6_diff.ts:115
↓ 1 callers
Function
push_map_choice_key_deser
Reads and verifies the fixed member key of a collapsed map-rep group-choice arm. A mismatch returns `Err` (in the brute-force path this becomes try-th
src/generation.rs:7699
↓ 1 callers
Function
read_arg
Read the argument of the head at `pos`, returning `(value, head_len_in_bytes)`. Input is definite minimal CBOR, so `info` is always 0..=27.
static/emit_tests_encoding_fidelity.rs:44
↓ 1 callers
Method
read_elems
Marks {n} values as being read, and if we go past the available definite length given by the CBOR, we return an error.
tests/extern-dep-crate/src/serialization.rs:40
↓ 1 callers
Function
record_deser_reject
deser-reject for a struct: for each cheaply-mutatable bounded field, mint a valid baseline, mutate that one field out of bounds, and assert the wire p
src/emit_tests.rs:799
↓ 1 callers
Function
record_roundtrip
Record round-trip: a valid baseline, plus one case per optional field with that field present.
src/emit_tests.rs:617
↓ 1 callers
Function
recs_to_json
(recs: &[Rec])
examples/ast_roles.rs:382
↓ 1 callers
Function
rejectExpectedLabel
(evidence: string)
cddl-matrix/project_robustness.ts:52
↓ 1 callers
Function
remove_leaf
Remove the leaf at `path` if present, then garbage-collect emptied parent tables on the way back up — so tombstoning the last dep in a table we create
src/cargo_manifest.rs:183
↓ 1 callers
Method
remove_rust_struct
we need to do this for some generated intermediate structures as the parsing code doesn't allow to just generate a rust struct but instead inserts eve
src/intermediate.rs:885
↓ 1 callers
Function
renderValue
(v: unknown)
cddl-matrix/project_golden_hex.ts:39
↓ 1 callers
Function
reserved_ident_rejection
A graceful-rejection message if `source_name` (a user-chosen rule / plain-group name, as spelled in the CDDL) cannot be used as a Rust type name, else
src/intermediate.rs:1146
↓ 1 callers
Function
resolveRubyCddl
()
check.ts:80
↓ 1 callers
Function
resolveRubyCddl
()
cddl-matrix/verify.ts:188
↓ 1 callers
Function
resolveRustCddl
()
check.ts:89
↓ 1 callers
Function
resolveSource
(f: FeatureRow)
cddl-matrix/query_q5_completeness.ts:157
↓ 1 callers
Function
resolve_ruby_cddl
Locate the ruby `cddl` gem binary for the decorrelated conformance oracle (`ir_conformance_corpus`), mirroring `cddl-matrix/verify.ts`'s `resolveRubyC
src/tests/integration_tests.rs:122
↓ 1 callers
Function
roleSelfCheck
()
cddl-matrix/corpus_detect.ts:400
↓ 1 callers
Function
roleTail
(r: string)
cddl-matrix/project_corpus.ts:236
↓ 1 callers
Function
rolesInStr
(cddl: string)
cddl-matrix/corpus_detect.ts:309
↓ 1 callers
Function
roundtrip_body
The shared body for a single-value (record/wrapper) round-trip test: §1 differential, §2 wire, §3.
src/emit_tests_wasm.rs:656
↓ 1 callers
Function
roundtrip_case
The per-variant round-trip case for a choice.
src/emit_tests_wasm.rs:675
↓ 1 callers
Function
rubyGenDiag
(spec: string)
cddl-matrix/verify.ts:878
↓ 1 callers
Function
ruleNames
(code: string)
cddl-matrix/corpus_detect.ts:96
↓ 1 callers
Function
rule_ident
(cddl_rule: &cddl::ast::Rule)
src/parsing.rs:201
↓ 1 callers
Function
rule_position_name_rejection
A graceful-rejection message if `cddl_rule` carries a rule-position `@name` directive, else `None`. `@name` renames a struct field, a type-choice vari
src/parsing.rs:150
↓ 1 callers
Function
run
(cell: &Cell, tag: &str)
src/tests/dsl_position_tests.rs:450
↓ 1 callers
Function
runCodegenWasm
()
cddl-matrix/verify.ts:492
↓ 1 callers
Function
runCompile
(timeoutS = PROBE_TIMEOUT)
cddl-matrix/verify.ts:459
↓ 1 callers
Function
runMintDecodeForeign
()
cddl-matrix/verify.ts:1037
↓ 1 callers
Function
runWasmTest
(timeoutS = PROBE_TIMEOUT)
cddl-matrix/verify.ts:496
↓ 1 callers
Function
run_wasm
The WASM crate carries the identical latent shape — generated wasm code names the extern's hand-written `#[wasm_bindgen]` WRAPPER bare inside `wasm/sr
src/tests/integration_tests.rs:1979
↓ 1 callers
Function
rust_crate_struct_scope_from_wasm
( types: &IntermediateTypes, ident: &RustIdent, cli: &Cli, )
src/generation.rs:4301
↓ 1 callers
Function
rustfmt_path
Gets the rustfmt path to rustfmt the generated bindings.
src/generation.rs:9453
↓ 1 callers
Function
satisfied
Whether the cell's expectation is SATISFIED by `outcome` (a panic never satisfies).
src/tests/dsl_position_tests.rs:462
↓ 1 callers
Function
scanDslDirectives
(line: string)
cddl-matrix/corpus_detect.ts:201
↓ 1 callers
Function
selfCheck
()
cddl-matrix/corpus_detect.ts:316
↓ 1 callers
Function
serialization_prelude
()
src/tests/snapshot_tests.rs:252
↓ 1 callers
Method
serialize
( &self, serializer: &'se mut Serializer<W>, )
tests/extern-dep-crate/src/serialization.rs:236
↓ 1 callers
Function
set
(path: &[&str], v: &str)
src/cargo_manifest.rs:613
↓ 1 callers
Function
snapshotDiff
(oldPath: string, newPath: string)
cddl-matrix/query_q6_diff.ts:71
↓ 1 callers
Function
splitTopAlts
(s: string)
cddl-matrix/verify.ts:328
↓ 1 callers
Function
splitTopAlts
(s: string)
cddl-matrix/query_q5_completeness.ts:101
↓ 1 callers
Function
split_point
The midpoint split index for a string chunk, backed off DOWN to a UTF-8 char boundary for text (a boundary byte is any non-continuation byte, `b & 0xc
static/emit_tests_encoding_fidelity.rs:199
↓ 1 callers
Function
statusCell
(o: Outcome)
check.ts:315
↓ 1 callers
Function
struct_uses_custom_ser
True if any part of this type's wire format is user-supplied (`@custom_serialize` / `@custom_deserialize`) — at the type level, or on any field / choi
src/emit_tests.rs:397
↓ 1 callers
Function
table_at
Descend to (creating as needed) the table addressed by `segments`, borrowing cargo's heuristic of marking auto-created intermediate tables implicit so
src/cargo_manifest.rs:125
↓ 1 callers
Function
target_level
(arg: u64, w: Widen)
static/emit_tests_encoding_fidelity.rs:141
↓ 1 callers
Function
toHex
(b: Uint8Array, s: number, e: number)
cddl-matrix/project_golden_hex.ts:86
↓ 1 callers
Method
to_len_sz
(&self, len: u64)
tests/extern-dep-crate/src/serialization.rs:166
↓ 1 callers
Method
to_primitive_str_assign
Converts a literal to a valid rust expression capable of initializing a Primitive e.g. Text is an actual String, etc
src/intermediate.rs:1014
↓ 1 callers
Method
to_raw_hex
(&self)
static/raw_bytes_encoding.rs:8
↓ 1 callers
Method
to_variant
(self)
src/intermediate.rs:1095
↓ 1 callers
Function
topological_rule_order
(rules: &'a [&'a Rule<'a>])
src/dep_graph.rs:5
↓ 1 callers
Function
tree_via_ciborium
(bytes: &[u8])
src/tests/integration_tests.rs:183
↓ 1 callers
Function
tree_via_minicbor
(bytes: &[u8])
src/tests/integration_tests.rs:226
↓ 1 callers
Function
ty_as_record
If `ty` directly names a generated `Record` struct, return it (so we can flatten its constructor args for a group-choice variant).
src/emit_tests.rs:1491
↓ 1 callers
Function
type2_to_fixed_value
(type2: &Type2)
src/parsing.rs:323
↓ 1 callers
Function
type_to_field_name
(t: &Type)
src/parsing.rs:1353
↓ 1 callers
Function
user_satisfies_tool
Does the user's concrete version pin satisfy the tool's version requirement? The tool spec parses as a cargo-default-caret [`semver::VersionReq`] (`"0
src/cargo_manifest.rs:238
↓ 1 callers
Function
vacuityProblems
()
cddl-matrix/query_q5_completeness.ts:192
↓ 1 callers
Function
vacuityProblems
(rs: Directional[])
cddl-matrix/query_q4_directional.ts:272
↓ 1 callers
Function
value_kind
(v: &Value)
examples/ast_roles.rs:84
↓ 1 callers
Function
variant_is_fixed
Does this variant carry no payload (fixed value → no `as_<variant>()` getter)?
src/emit_tests_wasm.rs:858
↓ 1 callers
Function
variants
Six whole-tree irregular re-encodings of `input` (a minted value's canonical bytes), one per mutation class. Variants byte-identical to the input (not
static/emit_tests_encoding_fidelity.rs:336
↓ 1 callers
Method
visit_memberkey
(&mut self, mk: &'b MemberKey<'a>)
examples/ast_roles.rs:318
↓ 1 callers
Function
vocabularyProblems
()
cddl-matrix/query_q4_directional.ts:248
↓ 1 callers
Function
walk
( types: &IntermediateTypes, ct: &ConceptualRustType, visited: &mut std::collections::
src/emit_tests.rs:452
↓ 1 callers
Function
walk
(i: number)
cddl-matrix/project_golden_hex.ts:97
↓ 1 callers
Function
walk
(text: &str)
examples/ast_roles.rs:348
↓ 1 callers
Function
wasmProbe
()
cddl-matrix/verify.ts:540
↓ 1 callers
Function
wasm_collection_build
Build a wrapper collection (`FooList`/`FooMap`, or a named list/map wrapper) through its wasm `new`/`add` (list) or `new`/`insert` (map) API as a bloc
src/emit_tests_wasm.rs:421
↓ 1 callers
Method
wasm_list_macro_needs_into
For `--wasm-list-macro`: whether the element's wasm-boundary reduces to the `(needs_into, is_copy)` form the list macro takes. Returns `Some(needs_int
src/intermediate.rs:2271
↓ 1 callers
Function
wasm_record_bounds
( types: &IntermediateTypes, name: &str, record: &RustRecord, scoped: &ScopeMap, cli: &Cli
src/emit_tests_wasm.rs:709
↓ 1 callers
Function
wasm_record_roundtrip
( types: &IntermediateTypes, ident: &crate::intermediate::RustIdent, name: &str, record: &Rust
src/emit_tests_wasm.rs:489
↓ 1 callers
Function
wasm_value
The wasm wrapper-API value expression for `mv` of resolved type `ty`, or `None` (skip the whole enclosing type, loudly at the caller) when the shape h
src/emit_tests_wasm.rs:240
↓ 1 callers
Function
wasm_wrapper_roundtrip
( types: &IntermediateTypes, ident: &crate::intermediate::RustIdent, name: &str, scoped: &Scop
src/emit_tests_wasm.rs:632
↓ 1 callers
Method
with_key
Builder for the collapse site: attach the fixed member key of a collapsed map-rep arm.
src/intermediate.rs:2464
↓ 1 callers
Method
with_wasm_alias_target
(mut self, target: Option<RustIdent>)
src/intermediate.rs:102
← previous
next →
501–600 of 1,061, ranked by callers