MobDev.MobNifTable (mob_dev v0.7.9)

Copy Markdown View Source

The -nifs difference between two mob checkouts' src/mob_nif.erl.

MobDev.MobDirCheck stops a native build whose mob_dir isn't the :mob dependency. When the two checkouts also list different NIFs, the outcome is not subtle misbehaviour but a boot crash: erlang:load_nif/2 rejects the library, mob_nif's on_load fails, and the bootstrap's first call dies with undef mob_nif:log/1 (MOB-227). This module names that difference so the mismatch error can say so.

Summary

Functions

What the difference means, for appending to the mismatch error; "" for nil.

NIFs listed by only one of mob_dir and dep_path, or nil when the tables agree or either mob_nif.erl can't be read.

Types

diff()

@type diff() :: %{only_in_mob_dir: [String.t()], only_in_dep: [String.t()]}

Functions

describe(diff)

@spec describe(diff() | nil) :: String.t()

What the difference means, for appending to the mismatch error; "" for nil.

diff(mob_dir, dep_path)

@spec diff(Path.t(), Path.t()) :: diff() | nil

NIFs listed by only one of mob_dir and dep_path, or nil when the tables agree or either mob_nif.erl can't be read.