RustQ.Meta.Options (rustq v0.9.0)

Copy Markdown View Source

Validates and normalizes use RustQ.Meta options.

Validation happens at the public macro boundary. Errors from NimbleOptions are converted into RustQ diagnostics so callers get the same structured failure shape as lowering and metadata resolution errors.

Summary

Types

t()

@type t() :: %{
  rust_sources: [Path.t()],
  rust_packages: [RustQ.Binding.Source.rust_package()],
  callable_modules: [module()],
  static_types: keyword(Macro.t())
}

Functions

validate!(opts, caller)

@spec validate!(
  keyword(),
  Macro.Env.t()
) :: t()

Validates and normalizes options passed to use RustQ.Meta.

validate_callable_modules(value, caller)

validate_rust_packages(value)

validate_rust_sources(value)

validate_static_types(value)