<img src="brand/logo/macaw_scarlet.svg" alt="The Macaw logo, a scarlet macaw in flight" width="128">

# macaw_base

> **This software is a very early release, and not ready for general use.**

Public home: [github.com/dcoai/macaw_base](https://github.com/dcoai/macaw_base) · Docs: [hexdocs.pm](https://hexdocs.pm/macaw_base)

What every Macaw package shares, with no dependency of its own ([spec/00](https://github.com/dcoai/macaw_base/blob/main/spec/00-overview.md)). It is the root of the Macaw family's packages (dco-tek/macaw/macaw#478).

| Module | What it is |
|---|---|
| `Macaw.Base.Names` | names a value declares: strings, never atoms made from data ([spec/01 §1](https://github.com/dcoai/macaw_base/blob/main/spec/01-base.md#base-names)) |
| `Macaw.Base.Vocabulary` | closed vocabularies looked up by spelling ([spec/01 §2](https://github.com/dcoai/macaw_base/blob/main/spec/01-base.md#base-vocabulary)) |
| `Macaw.Base.Fault` | the fault `{path, reason}`, its order, the one formatter and the general words; each package words its own reasons ([spec/01 §3](https://github.com/dcoai/macaw_base/blob/main/spec/01-base.md#base-faults)) |
| `Macaw.Base.Version` | one version line per type, and stepwise migration ([spec/01 §4](https://github.com/dcoai/macaw_base/blob/main/spec/01-base.md#base-versions)) |
| `Macaw.Base.Encoding`, `Macaw.Base.Digest` | the canonical encoding and digest of a value, the term itself, and a struct's canonical term ([spec/01 §5](https://github.com/dcoai/macaw_base/blob/main/spec/01-base.md#base-digest)) |
| `Macaw.Base.Callback` | optional callbacks, found whether or not their module is loaded ([spec/01 §6](https://github.com/dcoai/macaw_base/blob/main/spec/01-base.md#base-callbacks)) |

## Installation

No runtime dependencies. From Hex:

```elixir
{:macaw_base, "~> 0.1.1"}
```

Part of [Macaw](https://github.com/dcoai/macaw).

## License

MIT; see the LICENSE file.
