github.com/nuclearsalmon/minerals

A collection of utilities and patches that extend the functionality of crystal

1 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  minerals:
    github: nuclearsalmon/minerals
    version: ~> 2.4.0

Then run:

shards install

shard.yml

Crystal
>= 1.17.0
License
MIT

Dependencies

This version declares no dependencies.

README

Minerals

A collection of utilities and patches that extend the functionality of crystal.

Highly volatile, depend on a specific version!

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      minerals:
        github: nuclearsalmon/minerals
  2. Run shards install

Usage

Require the relevant packages. The base minerals package is required, and it automatically patches a minimal selection of utilities into the top level scope, but it does not touch any types.

require "minerals"
require "minerals/lowlevel/static_array"

Then, either use as modules:

Minerals::StaticArray.from_s("hello", 5)

...or patch it into crystal:

patch Minerals::StaticArray
StaticArray.from_s("hello", 5)