Packages

Generate Gleam types, JSON codecs, and a typed XRPC client from atproto lexicon files.

Current section

Files

Jump to
atproto_codegen src atproto_codegen@config.erl
Raw

src/atproto_codegen@config.erl

-module(atproto_codegen@config).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/atproto_codegen/config.gleam").
-export_type([config/0]).
-if(?OTP_RELEASE >= 27).
-define(MODULEDOC(Str), -moduledoc(Str)).
-define(DOC(Str), -doc(Str)).
-else.
-define(MODULEDOC(Str), -compile([])).
-define(DOC(Str), -compile([])).
-endif.
?MODULEDOC(
" Generation settings threaded through naming + emission, so the tool is\n"
" not coupled to any one project's paths or namespace.\n"
).
-type config() :: {config,
binary(),
binary(),
binary(),
list(binary()),
gleam@option:option(binary())}.