Minerals

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

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)
Repository

Minerals

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • 3 days ago
  • June 4, 2025
License

MIT License

Links
Synced at

Fri, 20 Jun 2025 10:53:22 GMT

Languages