Skip to content

Commit

Permalink
chore: fixed build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Sayan751 committed Sep 6, 2020
1 parent d3f40c4 commit b0cd50d
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions rust-lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ repository = "https://github.com/Sayan751/email-address-parser"
homepage = "https://github.com/Sayan751/email-address-parser"
readme = "README.md"
keywords = ["email-address", "parser", "rfc-5322", "rfc-6532"]
exclude = ["build.rs", ".test_data", "benches", "tests", "Development.md"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down Expand Up @@ -36,5 +37,6 @@ wasm-opt = ["-Oz", "--enable-mutable-globals"]
lto = true

[[bench]]
path = "benches"
name = "benchmarks"
harness = false
5 changes: 1 addition & 4 deletions rust-lib/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ fn main() {
let out_dir = env::var_os("OUT_DIR").unwrap();
let test_file_path = path::Path::new(&out_dir).join("generated_tests.rs");
let mut test_file = fs::File::create(&test_file_path).unwrap();
let test_data_root = path::Path::new(&root)
.join("..")
.join("resources")
.join(".test_data");
let test_data_root = path::Path::new(&root).join(".test_data");

let read_test_data = |file_name: &str| {
fs::read_to_string(test_data_root.join(file_name))
Expand Down

0 comments on commit b0cd50d

Please sign in to comment.