Skip to content

Commit 99a9daf

Browse files
authored
Merge pull request RustPython#2033 from RustPython/coolreader18/no-freeze-workspace
Don't put the freeze example as a workspace member
2 parents 1aa17c8 + 2f77be1 commit 99a9daf

4 files changed

Lines changed: 4 additions & 25 deletions

File tree

Cargo.lock

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repository = "https://github.com/RustPython/RustPython"
88
license = "MIT"
99

1010
[workspace]
11-
members = [".", "derive", "vm", "wasm/lib", "parser", "compiler", "bytecode", "examples/freeze", "vm/pylib-crate", "common"]
11+
members = [".", "derive", "vm", "wasm/lib", "parser", "compiler", "bytecode", "vm/pylib-crate", "common"]
1212

1313
[[bench]]
1414
name = "bench"

examples/freeze/Cargo.toml

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ fn main() -> vm::pyobject::PyResult<()> {
77

88
let scope = vm.new_scope_with_builtins();
99

10+
// the file parameter is relevant to the directory where the crate's Cargo.toml is located, see $CARGO_MANIFEST_DIR:
11+
// https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-crates
1012
let modules: HashMap<String, vm::bytecode::FrozenModule> =
11-
vm::py_compile_bytecode!(file = "freeze.py");
13+
vm::py_compile_bytecode!(file = "examples/freeze/freeze.py");
1214

1315
let res = vm.run_code_obj(
1416
vm.ctx

0 commit comments

Comments
 (0)