Skip to content

Commit

Permalink
chore: Use edi fork
Browse files Browse the repository at this point in the history
  • Loading branch information
timgremore committed May 7, 2024
1 parent 0b707ee commit fafea41
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 335 deletions.
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Edix.MixProject do
use Mix.Project

@version "0.1.2"
@version "0.1.3"

def project do
[
Expand Down
4 changes: 2 additions & 2 deletions native/edix_parser/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion native/edix_parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ crate-type = ["cdylib"]

[dependencies]
rustler = "0.32.1"
edi = { git = "https://github.com/headwayio/edi.git" }
edi = { version = "0.2.1", git = "https://github.com/headwayio/edi.git" }
323 changes: 0 additions & 323 deletions native/edix_parser/resources/schemas.csv

This file was deleted.

9 changes: 1 addition & 8 deletions native/edix_parser/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
// Purpose of this is to force precompilation to include schemas.csv
// schemas.csv is required by transaction.rs
#[rustler::nif]
fn main() {
include_bytes!("../resources/schemas.csv");
}

use edi::parse;
use rustler::NifStruct;
use std::fs::read_to_string;
Expand All @@ -31,4 +24,4 @@ fn parse_edi_file(input: String) -> Result<EdixDocument, EdixParseError> {
return Ok(edix_document);
}

rustler::init!("Elixir.Edix.Parser", [main, parse_edi_file]);
rustler::init!("Elixir.Edix.Parser", [parse_edi_file]);
Binary file modified priv/native/libedix_parser.so
Binary file not shown.

0 comments on commit fafea41

Please sign in to comment.