Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zachallaun/lib_elixir
https://github.com/zachallaun/lib_elixir
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/zachallaun/lib_elixir
- Owner: zachallaun
- Created: 2024-08-02T19:26:45.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-20T15:37:36.000Z (3 months ago)
- Last Synced: 2024-10-11T19:20:03.681Z (27 days ago)
- Language: Elixir
- Size: 4.01 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `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:
```elixir
def deps do
[
{:lib_elixir, path: "path/to/lib_elixir", runtime: false}
]
end
```2. Add `:lib_elixir` config and compiler to your project:
```elixir
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:
```elixir
alias My.Project.LibElixir.Macro, as: Macrostruct(Macro.Env, Map.from_struct(__ENV__))
#=> %My.Project.LibElixir.Macro.Env{...}
```