https://github.com/kloeckner-i/mail_parser
NIF binding of mail_parser using Rustler
https://github.com/kloeckner-i/mail_parser
elixir mailparser rustler rustler-precompiled
Last synced: 6 months ago
JSON representation
NIF binding of mail_parser using Rustler
- Host: GitHub
- URL: https://github.com/kloeckner-i/mail_parser
- Owner: kloeckner-i
- License: other
- Created: 2022-05-18T08:30:04.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-01T09:51:09.000Z (over 1 year ago)
- Last Synced: 2024-09-16T18:07:52.597Z (8 months ago)
- Topics: elixir, mailparser, rustler, rustler-precompiled
- Language: Elixir
- Homepage: https://hex.pm/packages/mail_parser
- Size: 206 KB
- Stars: 8
- Watchers: 4
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# MailParser
[](https://github.com/kloeckner-i/mail_parser/actions/workflows/ci.yml)
[](https://github.com/kloeckner-i/mail_parser/actions/workflows/release.yml)
[](https://hexdocs.pm/mail_parser)
[](http://hex.pm/packages/mail_parser)NIF binding of [mail_parser](https://docs.rs/mail-parser/latest/mail_parser/) using [Rustler](https://github.com/rusterlium/rustler).
## Installation
The package can be installed by adding `mail_parser` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:mail_parser, "~> 0.7"}
]
end
```## Forcing compilation
By default **you don't need Rust installed** because the library will try to download a precompiled NIF file. In case you want to force compilation set the `FORCE_BUILD` environment variable to `true`.
You also need to add Rustler to your dependencies when you want to force the compilation:
```elixir
def deps do
[
{:mail_parser, "~> 0.5"}
{:rustler, ">= 0.0.0", optional: true}
]
end
```## License
Licensed under either of
- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)at your option.