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
↓ 2 callers
Function
wasm_named
Build a named generated type through its wasm wrapper API from `mv`.
src/emit_tests_wasm.rs:279
↓ 2 callers
Function
wrapper_measure
The in-range inner measure for a bounded wrapper's `new(inner)`. A bounded `nint` wrapper stores the inner as a `u64` MAGNITUDE and its `new` checks t
src/emit_tests.rs:1049
↓ 1 callers
Function
altCoverage
(prod: string)
cddl-matrix/query_q5_completeness.ts:143
↓ 1 callers
Method
apply_type_aliases
see new_type() for why this is mut returns: (base type, if the alias should be substituted)
src/intermediate.rs:497
↓ 1 callers
Method
as_alias
(mut self, alias_ident: AliasIdent)
src/intermediate.rs:1372
↓ 1 callers
Function
assert_cddl_conforms
(spec: &str, root_rule: &str, bytes: &[u8])
tests/deser_test_conformance.rs:47
↓ 1 callers
Function
assert_cddl_rejects
(spec: &str, root_rule: &str, bytes: &[u8])
tests/deser_test_conformance.rs:58
↓ 1 callers
Function
bounds_check_expr
(p: Primitive, e: &str)
src/generation.rs:3981
↓ 1 callers
Function
carriesConstraint
(id: string)
cddl-matrix/query_q4_directional.ts:180
↓ 1 callers
Function
cbor_event_len_indef
(cli: &Cli)
src/generation.rs:7236
↓ 1 callers
Function
cddl_oracle_load_spec
(rel_from_manifest: &str)
tests/deser_test_conformance.rs:32
↓ 1 callers
Function
cddl_prelude
(name: &str)
src/utils.rs:82
↓ 1 callers
Function
checkProblems
()
cddl-matrix/query_q6_diff.ts:147
↓ 1 callers
Function
choice_variant_first_arg
The first arg of a `Choice` mint value (for a single-payload variant read-back).
src/emit_tests_wasm.rs:865
↓ 1 callers
Function
ciborium_value_to_tree
(v: ciborium::value::Value)
src/tests/integration_tests.rs:198
↓ 1 callers
Function
cleanOutWasm
()
cddl-matrix/verify.ts:491
↓ 1 callers
Method
clone_if_not_copy
(&self, types: &IntermediateTypes, expr: &str)
src/intermediate.rs:2283
↓ 1 callers
Function
codeOf
(t: string)
cddl-matrix/corpus_detect.ts:92
↓ 1 callers
Function
codegen_group_choices
( gen_scope: &mut GenerationScope, types: &IntermediateTypes, name: &RustIdent, variants: &[En
src/generation.rs:6958
↓ 1 callers
Function
codegen_struct
( gen_scope: &mut GenerationScope, types: &IntermediateTypes, name: &RustIdent, tag: Option<us
src/generation.rs:5796
↓ 1 callers
Function
commentsOf
(t: string)
cddl-matrix/corpus_detect.ts:93
↓ 1 callers
Function
composeCatalog
(rows: CatalogRow[])
cddl-matrix/verify.ts:769
↓ 1 callers
Function
concat_files
(paths: &Vec<P>)
src/generation.rs:248
↓ 1 callers
Function
conformance_rule_name
The source CDDL rule name naming `ident`'s minted bytes for the conformance oracles, or `None` if this type can't be soundly rooted. Only a top-level
src/emit_tests.rs:367
↓ 1 callers
Function
content
(ex: string)
cddl-matrix/project_robustness.ts:145
↓ 1 callers
Function
convert_to_alphanumeric
(input: &str)
src/intermediate.rs:974
↓ 1 callers
Function
coveringTests
(hexn: string)
cddl-matrix/project_golden_hex.ts:169
↓ 1 callers
Method
create_and_register_array_type
creates a RustType for the array type - and if needed, registers a type to generate TODO: After the split we should be able to only register it direct
src/intermediate.rs:634
↓ 1 callers
Function
decoded
(v: Vector)
cddl-matrix/project_golden_hex.ts:239
↓ 1 callers
Method
defined_rust_idents
Every camel-cased Rust type ident this crate will DEFINE (structs, user aliases, plain groups, generic defs/instances). Deterministic (`BTreeSet`, no
src/intermediate.rs:249
↓ 1 callers
Function
derive
(featureId: string, profile: string, rubyExit: number, rustExit: number, cg: CodegenProbe)
cddl-matrix/verify.ts:679
↓ 1 callers
Function
deriveAccept
(status: string, ev: string)
cddl-matrix/query_q4_directional.ts:136
↓ 1 callers
Function
deriveEncode
(roundTrip: string)
cddl-matrix/query_q4_directional.ts:157
↓ 1 callers
Function
deriveEnforce
(id: string, status: string)
cddl-matrix/query_q4_directional.ts:185
↓ 1 callers
Function
deriveNote
(evidence: string)
cddl-matrix/query_q1_gaps.ts:93
↓ 1 callers
Function
deser_test
(orig: &T)
tests/raw-bytes/tests.rs:8
↓ 1 callers
Method
deserializer_name
(&self)
src/generation.rs:222
↓ 1 callers
Function
detail
(v: Vector)
cddl-matrix/project_golden_hex.ts:233
↓ 1 callers
Function
detect
(fix: string)
cddl-matrix/project_corpus.ts:83
↓ 1 callers
Function
dfs_visit
( topo_order: &mut Vec<&'a Rule<'a>>, unvisited: &mut BTreeSet<&'a str>, processing: &mut BTreeSet
src/dep_graph.rs:26
↓ 1 callers
Function
diagToHex
(diag: string)
cddl-matrix/verify.ts:883
↓ 1 callers
Function
emit_generated_tests
Emit the `#[cfg(test)]` generated-test module (reject + round-trip halves), or `None` if nothing at all could be minted.
src/emit_tests.rs:217
↓ 1 callers
Function
emit_generated_wasm_tests
Emit the `#[cfg(test)]` generated wasm-test module, or `None` if nothing could be minted / the configuration replaces the method surface this renderer
src/emit_tests_wasm.rs:68
↓ 1 callers
Method
emit_prelude
(&mut self, cddl_name: String, cli: &Cli)
src/intermediate.rs:937
↓ 1 callers
Function
empty_collection
An empty value expression for a collection `ty` (valid for a 0-lower-bound `*`-occurrence). `Default::default()` covers every collection representatio
src/emit_tests.rs:1331
↓ 1 callers
Method
end
( &self, serializer: &'a mut Serializer<W>, )
tests/extern-dep-crate/src/serialization.rs:180
↓ 1 callers
Function
enum_variants_have_same_encoding_var
(variants: &[EnumVariant])
src/intermediate.rs:3379
↓ 1 callers
Function
escape_rust_str
Escape a CDDL fixed text value for safe interpolation into an emitted Rust string literal. CDDL text literals may legally contain `"` or `\`; without
src/intermediate.rs:1038
↓ 1 callers
Function
extractEmissionProfiles
()
cddl-matrix/verify.ts:97
↓ 1 callers
Function
featureVerdict
(id: string, track: boolean)
cddl-matrix/project_corpus.ts:241
↓ 1 callers
Function
find_references
(cddl_rule: &'a Rule<'a>)
src/dep_graph.rs:51
↓ 1 callers
Method
finish
(&self)
tests/extern-dep-crate/src/serialization.rs:54
↓ 1 callers
Function
fixed_value_cbor_type
The CBOR major type a fixed value serializes to — used to dispatch enum variants on their fixed map key. Mirrors `RustType::cbor_types` for `Conceptua
src/intermediate.rs:2604
↓ 1 callers
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
static/error.rs:12
↓ 1 callers
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/intermediate.rs:58
↓ 1 callers
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/extern-dep-crate/src/error.rs:12
↓ 1 callers
Method
fmt_indent
(&self, f: &mut std::fmt::Formatter<'_>, indent: u32)
static/error.rs:84
↓ 1 callers
Method
fmt_indent
(&self, f: &mut std::fmt::Formatter<'_>, indent: u32)
tests/extern-dep-crate/src/error.rs:73
↓ 1 callers
Function
folded_int
(neg: bool, b: &[u8])
src/tests/integration_tests.rs:362
↓ 1 callers
Method
for_wasm_param_impl
(&self, types: &IntermediateTypes, force_not_ref: bool)
src/intermediate.rs:1858
↓ 1 callers
Function
formatElapsed
(ms: number)
cddl-matrix/verify.ts:44
↓ 1 callers
Method
from_wasm_boundary_clone_optional
( &self, types: &IntermediateTypes, expr: &str, can_fail: bool, )
src/intermediate.rs:2077
↓ 1 callers
Function
gen_src
(preserve: bool)
src/tests/robustness_tests.rs:799
↓ 1 callers
Function
generate
Generate a standalone crate's source map for `spec` (writes to a unique temp `.cddl`). `--wasm=false` EXPLICITLY (the CLI default is true) — this is t
src/tests/dsl_position_tests.rs:416
↓ 1 callers
Function
generate_c_style_enum
Generates an enum where all variants are fixed values (i.e. C-style enum) and return true, or return false and do nothing (i.e. enum too complex)
src/generation.rs:7470
↓ 1 callers
Function
generate_int
(gen_scope: &mut GenerationScope, types: &IntermediateTypes, cli: &Cli)
src/generation.rs:9176
↓ 1 callers
Function
generate_tag_check
(deser_func: &mut dyn CodeBlock, ident: &RustIdent, tag: Option<usize>)
src/generation.rs:8563
↓ 1 callers
Method
generate_type_choices_from_variants
TODO: repurpose this for type choices (not group choices) TODO: make this its own function - there's no reason for this to be a method
src/generation.rs:3700
↓ 1 callers
Method
generic_instance_bases
The base idents (`generic_ident`) of every registered generic instance, e.g. `Foo` for the instance `Foo<Bar>`. For a generic EXTERN base this is the
src/intermediate.rs:271
↓ 1 callers
Function
group_entry_optional
(entry: &GroupEntry)
src/parsing.rs:1839
↓ 1 callers
Function
group_entry_rule_metadata
(entry: &GroupEntry, optional_comma: &OptionalComma)
src/parsing.rs:1560
↓ 1 callers
Function
group_entry_to_field_name
Attempts to use the style-converted type name as a field name, and if we have already generated one, then we simply add numerals starting at 2, 3, 4..
src/parsing.rs:1424
↓ 1 callers
Function
group_entry_to_raw_field_name
Only returns Some(String) if there was an explicit field name provided, otherwise None. If you need to try and make one using the type/etc, then try g
src/parsing.rs:1534
↓ 1 callers
Method
has_ident
(&self, ident: &RustIdent)
src/intermediate.rs:209
↓ 1 callers
Method
has_wasm_wrapper
Whether `ident` is exposed to wasm AS a `#[wasm_bindgen]` wrapper struct (vs. directly, like a `Copy` c-style enum, or as a transparent `pub type`). A
src/intermediate.rs:556
↓ 1 callers
Function
headClass
(b: number)
cddl-matrix/project_golden_hex.ts:48
↓ 1 callers
Function
hex_to_byte_literals
Turn `"820080"` into the `0x82, 0x00, 0x80` a Rust byte-array literal wants (mirrors verify.ts's `replayInDir`, so the two harnesses feed the decoder
src/tests/integration_tests.rs:4531
↓ 1 callers
Function
ignoredTestsFromCargo
()
check.ts:95
↓ 1 callers
Function
inline_group_occurrence_flattens
Whether a single-choice inline group carrying this occurrence marker may be spliced into the parent entry list (pure grouping) rather than kept unflat
src/parsing.rs:1134
↓ 1 callers
Function
invariantProblems
(rs: Directional[])
cddl-matrix/query_q4_directional.ts:217
↓ 1 callers
Function
ir_structs_debug
(cli: &Cli)
src/api.rs:262
↓ 1 callers
Function
isFastInvocation
(s: string)
check.ts:141
↓ 1 callers
Method
is_basic
Checks whether FROM THIS CONTEXT the type is a basic group. Only relevant to rust structs.
src/intermediate.rs:1473
↓ 1 callers
Function
is_dependency_entry
Is `path` exactly `["dependencies", <name>]` — the one path class whose `Set` merges field-level rather than hard-replacing? Deeper paths (e.g. `depen
src/cargo_manifest.rs:204
↓ 1 callers
Function
is_per_feature_noise
Near-constant generated files skipped by the per-feature corpus (they don't vary by construct).
src/tests/snapshot_tests.rs:52
↓ 1 callers
Method
is_toplevel_rule
Whether `ident` names a top-level CDDL rule (as opposed to a struct synthesized during IR build — an embedded record, inline group, etc.). `scopes` is
src/intermediate.rs:879
↓ 1 callers
Function
is_value_literal
(t2: &Type2)
examples/ast_roles.rs:62
↓ 1 callers
Function
key_derives
the derivative crate doesn't accept Eq="ignore" but omitting it seems to behave correctly
src/generation.rs:9119
↓ 1 callers
Function
loadControlOps
()
cddl-matrix/lib.ts:65
↓ 1 callers
Function
loadToml
(rel: string)
cddl-matrix/lib.ts:32
↓ 1 callers
Function
main
()
check.ts:325
↓ 1 callers
Function
map_key_expr
(key: &MapKey)
src/emit_tests_wasm.rs:229
↓ 1 callers
Function
mark
(v: Vector)
cddl-matrix/project_golden_hex.ts:230
↓ 1 callers
Method
mark_new_can_fail
(&mut self, name: RustIdent)
src/intermediate.rs:837
↓ 1 callers
Method
mark_scope
(&mut self, ident: RustIdent, scope: ModuleScope)
src/intermediate.rs:845
↓ 1 callers
Method
mark_source_rule_name
Record the original CDDL source name for a top-level rule's `RustIdent`. Called once per parsed rule (`api::with_types`), before camel-casing has eras
src/intermediate.rs:862
↓ 1 callers
Function
match
(s: string)
cddl-matrix/query_q6_diff.ts:118
↓ 1 callers
Method
merge
Returns Some(NewOp) if self + next can be merged into a single step, otherwise None
src/intermediate.rs:2350
↓ 1 callers
Function
merge_dep_spec
Merge the tool's dep spec (`tool`) field-level onto the user's existing entry (`existing`, the BASE — its shape, field order and decor survive). Both
src/cargo_manifest.rs:282
↓ 1 callers
Function
minicbor_item_from
( tok: minicbor::data::Token<'_>, it: &mut minicbor::decode::Tokenizer<'_, '_>, )
src/tests/integration_tests.rs:253
← previous
next →
401–500 of 1,061, ranked by callers