atproto_codegen/config

Generation settings threaded through naming + emission, so the tool is not coupled to any one project’s paths or namespace.

Types

pub type Config {
  Config(
    lexicons_dir: String,
    out_dir: String,
    out_module: String,
    nsid_prefixes: List(String),
  )
}

Constructors

  • Config(
      lexicons_dir: String,
      out_dir: String,
      out_module: String,
      nsid_prefixes: List(String),
    )

    Arguments

    lexicons_dir

    Where the lexicon JSON files live.

    out_dir

    Directory the generated modules are written into.

    out_module

    Module prefix the generated code imports itself under (matches out_dir).

    nsid_prefixes

    NSID prefixes stripped from module paths (own namespace + vendored).

Search Document