diff --git a/Cargo.lock b/Cargo.lock index 3904a3e..d513e73 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -860,6 +860,14 @@ version = "0.12.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" +[[package]] +name = "tests" +version = "0.0.0" +dependencies = [ + "icicle-python", + "pyo3", +] + [[package]] name = "thiserror" version = "1.0.40" diff --git a/Cargo.toml b/Cargo.toml index 1fe44cc..2edf29e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,6 @@ -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[workspace] +members = ["tests"] +exclude = ["icicle-emu"] [package] name = "icicle-python" @@ -9,13 +11,16 @@ edition = "2021" name = "icicle" crate-type = ["cdylib", "lib"] +[workspace.dependencies] +pyo3 = { version = "0.23.3", features = ["indexmap", "abi3-py37"] } + [dependencies] +pyo3 = { workspace = true } icicle-cpu = { path = "icicle-emu/icicle-cpu" } icicle-vm = { path = "icicle-emu/icicle-vm" } pcode = { path = "icicle-emu/sleigh/pcode" } sleigh-runtime = { path = "icicle-emu/sleigh/sleigh-runtime" } indexmap = "2.2.6" -pyo3 = { version = "0.23.3", features = ["indexmap", "abi3-py37"] } target-lexicon = "0.12.7" tracing = "*" tracing-subscriber = "0.3.17" diff --git a/tests/Cargo.toml b/tests/Cargo.toml index a522350..2e0f437 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -8,4 +8,4 @@ path = "tests.rs" [dependencies] icicle-python = { path = "..", default-features = false } -pyo3 = { version = "*" } +pyo3 = { workspace = true }