Skip to content

Commit

Permalink
rust: add simple compilation (integration) test
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Oct 7, 2020
1 parent 34f412b commit 86c6968
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ values =

[bumpversion:file:bindings/rust/Cargo.toml]
search = version = \"{current_version}\"

[bumpversion:file:bindings/rust/integration-test/Cargo.toml]
search = version = \"{current_version}\"
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[workspace]
members = [
"bindings/rust"
"bindings/rust",
"bindings/rust/integration-test"
]
13 changes: 13 additions & 0 deletions bindings/rust/integration-test/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Fizzy: A fast WebAssembly interpreter
# Copyright 2019-2020 The Fizzy Authors.
# SPDX-License-Identifier: Apache-2.0

[package]
name = "fizzy-integration-test"
version = "0.6.0-dev"
authors = ["Alex Beregszaszi <[email protected]>"]
edition = "2018"
publish = false

[dependencies]
fizzy = { path = "../", version = "0.6.0-dev" }
10 changes: 10 additions & 0 deletions bindings/rust/integration-test/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Fizzy: A fast WebAssembly interpreter
// Copyright 2019-2020 The Fizzy Authors.
// SPDX-License-Identifier: Apache-2.0

extern crate fizzy;

fn main() {
assert_eq!(fizzy::validate(&[]), false);
println!("Fizzy works!");
}

0 comments on commit 86c6968

Please sign in to comment.