Skip to content

zachallaun/lib_elixir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lib_elixir

EXPERIMENTAL: This library should not be used yet. It is broken in a number of ways and serves mainly as a proof-of-concept.

Setup

Here's how you can try this out:

  1. Clone this repo and add :lib_elixir to your list of dependencies as a path dependency:

    def deps do
      [
        {:lib_elixir, path: "path/to/lib_elixir", runtime: false}
      ]
    end
  2. Add :lib_elixir config and compiler to your project:

    def project do
      [
        ...,
        compilers: [:lib_elixir]    Mix.compilers(),
        lib_elixir: [
          namespace: My.Project.LibElixir,
          ref: "v1.17.2",
          include: [Macro, Macro.Env],
          exclude: []
        ]
      ]
    end
  3. Use Elixir modules available under the chosen namespace:

    alias My.Project.LibElixir.Macro, as: Macro
    
    struct(Macro.Env, Map.from_struct(__ENV__))
    #=> %My.Project.LibElixir.Macro.Env{...}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published