Skip to content

Commit

Permalink
move test folder and machete
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang committed Jan 10, 2025
1 parent 7685342 commit 53475d1
Show file tree
Hide file tree
Showing 16 changed files with 95 additions and 219 deletions.
56 changes: 3 additions & 53 deletions 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ members = [
"extensions/native/recursion",
"extensions/native/transpiler",
"extensions/native/guest-macro",
"extensions/native/guest-macro/test",
"extensions/native/tests",
"extensions/algebra/circuit",
"extensions/algebra/transpiler",
"extensions/algebra/guest",
Expand Down
7 changes: 6 additions & 1 deletion crates/toolchain/build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ pub fn get_package(manifest_dir: impl AsRef<Path>) -> Package {
.manifest_path(&manifest_path)
.no_deps()
.exec()
.expect("cargo metadata command failed");
.unwrap_or_else(|e| {
panic!(
"cargo metadata command failed for manifest path: {}: {e:?}",
manifest_path.display()
)
});
let mut matching: Vec<Package> = manifest_meta
.packages
.into_iter()
Expand Down
1 change: 0 additions & 1 deletion extensions/native/circuit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ eyre.workspace = true
serde.workspace = true
serde-big-array.workspace = true
serde_with.workspace = true
rayon.workspace = true

[dev-dependencies]
openvm-stark-sdk = { workspace = true }
Expand Down
6 changes: 0 additions & 6 deletions extensions/native/compiler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,19 @@ openvm-stark-backend = { workspace = true }
openvm-native-compiler-derive = { workspace = true }
openvm-instructions = { workspace = true }
openvm-instructions-derive = { workspace = true }
openvm-circuit-primitives = { workspace = true }
openvm-stark-sdk = { workspace = true }
openvm-circuit = { workspace = true }
openvm-rv32im-transpiler = { workspace = true }
# disable jemalloc to be compatible with stark-backend
snark-verifier-sdk = { workspace = true, optional = true }

tracing.workspace = true
itertools.workspace = true
serde.workspace = true
serde_json.workspace = true
backtrace = { workspace = true, features = ["serde"] }
strum_macros = "0.26.4"
num-bigint-dig.workspace = true
num-bigint.workspace = true
num-integer.workspace = true
num-traits.workspace = true
metrics = { workspace = true, optional = true }
cfg-if = { workspace = true }
strum = { workspace = true }

[dev-dependencies]
Expand Down
2 changes: 0 additions & 2 deletions extensions/native/guest-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ repository.workspace = true
proc-macro = true

[dependencies]
syn = { version = "2.0", features = ["parsing"] }
quote = "1.0"
proc-macro2 = "1.0"
openvm-instructions = { workspace = true }
openvm-native-compiler = { workspace = true }
openvm-native-transpiler = { workspace = true }
p3-field = { workspace = true }
p3-baby-bear = { workspace = true }
openvm-stark-backend = { workspace = true }

[dev-dependencies]
strum.workspace = true
Expand Down
69 changes: 0 additions & 69 deletions extensions/native/guest-macro/test/Cargo.toml

This file was deleted.

20 changes: 0 additions & 20 deletions extensions/native/guest-macro/test/program/Cargo.toml

This file was deleted.

49 changes: 0 additions & 49 deletions extensions/native/guest-macro/test/src/main.rs

This file was deleted.

25 changes: 25 additions & 0 deletions extensions/native/tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[package]
name = "openvm-native-integration-tests"
version.workspace = true
authors.workspace = true
edition.workspace = true
homepage.workspace = true
repository.workspace = true
license.workspace = true

[dependencies]
openvm-circuit.workspace = true
openvm-sdk.workspace = true
openvm-build.workspace = true
openvm-transpiler.workspace = true
openvm-native-transpiler.workspace = true
openvm-native-circuit.workspace = true
openvm-rv32im-transpiler.workspace = true
openvm-toolchain-tests.workspace = true
p3-baby-bear.workspace = true

eyre.workspace = true

[features]
default = ["parallel"]
parallel = ["openvm-circuit/parallel"]
20 changes: 20 additions & 0 deletions extensions/native/tests/programs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[workspace]
[package]
name = "openvm-native-integration-test-program"
version = "0.0.0"
edition = "2021"

[dependencies]
openvm = { path = "../../../../crates/toolchain/openvm" }
openvm-native-guest-macro = { path = "../../guest-macro", default-features = false }

[features]
default = []
std = ["openvm/std"]

[build-dependencies]
openvm-native-compiler = { path = "../../compiler", default-features = false }
openvm-native-transpiler = { path = "../../transpiler", default-features = false }
openvm-instructions = { path = "../../../../crates/toolchain/instructions", default-features = false }
openvm-stark-sdk = { git = "https://github.com/openvm-org/stark-backend.git", rev = "c785515", default-features = false } # FIXME
openvm-stark-backend = { git = "https://github.com/openvm-org/stark-backend.git", rev = "c785515", default-features = false }
File renamed without changes.
Loading

0 comments on commit 53475d1

Please sign in to comment.