Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
scrogson committed Oct 19, 2019
1 parent ebccb0a commit ca8d15f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Session.vim
# Generated by Cargo
**/target/*
/rustler/target/
/rustler_tests/priv/native/*
/rustler_tests/target/
/rustler_tests/_build
/rustler_tests/deps
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ members = [
"rustler",
"rustler_codegen",
"rustler_sys",
"rustler_tests/native/binary_example",
"rustler_tests/native/rustler_test",
"rustler_tests/native/deprecated_macros",
]
1 change: 1 addition & 0 deletions rustler_tests/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ defmodule RustlerTest.Mixfile do
start_permanent: Mix.env() == :prod,
compilers: [:rustler] ++ Mix.compilers(),
rustler_crates: [
binary_example: [mode: :debug],
rustler_test: [mode: :debug],
deprecated_macros: [mode: :debug]
],
Expand Down
9 changes: 9 additions & 0 deletions rustler_tests/native/binary_example/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "binary_example"
version = "0.1.0"
authors = []
edition = "2018"

[[bin]]
name = "binary_example"
path = "src/main.rs"
3 changes: 3 additions & 0 deletions rustler_tests/native/binary_example/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello from Rust!");
}

0 comments on commit ca8d15f

Please sign in to comment.