@@ -18,7 +18,7 @@ use crate::obj::objint::{self, PyIntRef};
18
18
use crate :: obj:: objiter;
19
19
use crate :: obj:: objstr:: { self , PyString , PyStringRef } ;
20
20
use crate :: obj:: objtype:: { self , PyClassRef } ;
21
- #[ cfg( feature = "rustpython_compiler " ) ]
21
+ #[ cfg( feature = "rustpython-compiler " ) ]
22
22
use rustpython_compiler:: compile;
23
23
24
24
use crate :: frame:: Scope ;
@@ -99,7 +99,7 @@ struct CompileArgs {
99
99
optimize : OptionalArg < PyIntRef > ,
100
100
}
101
101
102
- #[ cfg( feature = "rustpython_compiler " ) ]
102
+ #[ cfg( feature = "rustpython-compiler " ) ]
103
103
fn builtin_compile ( args : CompileArgs , vm : & VirtualMachine ) -> PyResult < PyCodeRef > {
104
104
// TODO: compile::compile should probably get bytes
105
105
let source = match args. source {
@@ -155,7 +155,7 @@ fn builtin_divmod(vm: &VirtualMachine, args: PyFuncArgs) -> PyResult {
155
155
156
156
/// Implements `eval`.
157
157
/// See also: https://docs.python.org/3/library/functions.html#eval
158
- #[ cfg( feature = "rustpython_compiler " ) ]
158
+ #[ cfg( feature = "rustpython-compiler " ) ]
159
159
fn builtin_eval ( vm : & VirtualMachine , args : PyFuncArgs ) -> PyResult {
160
160
// TODO: support any mapping for `locals`
161
161
arg_check ! (
@@ -187,7 +187,7 @@ fn builtin_eval(vm: &VirtualMachine, args: PyFuncArgs) -> PyResult {
187
187
188
188
/// Implements `exec`
189
189
/// https://docs.python.org/3/library/functions.html#exec
190
- #[ cfg( feature = "rustpython_compiler " ) ]
190
+ #[ cfg( feature = "rustpython-compiler " ) ]
191
191
fn builtin_exec ( vm : & VirtualMachine , args : PyFuncArgs ) -> PyResult {
192
192
arg_check ! (
193
193
vm,
@@ -789,7 +789,7 @@ pub fn make_module(vm: &VirtualMachine, module: PyObjectRef) {
789
789
#[ cfg( not( target_arch = "wasm32" ) ) ]
790
790
let open = vm. ctx . new_rustfunc ( io_open) ;
791
791
792
- #[ cfg( feature = "rustpython_compiler " ) ]
792
+ #[ cfg( feature = "rustpython-compiler " ) ]
793
793
{
794
794
extend_module ! ( vm, module, {
795
795
"compile" => ctx. new_rustfunc( builtin_compile) ,
0 commit comments