Skip to content

Commit bedbad2

Browse files
committed
Change underscore into hyphen
1 parent 4a108c1 commit bedbad2

File tree

15 files changed

+56
-61
lines changed

15 files changed

+56
-61
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ path = "./benchmarks/bench.rs"
1616
log="0.4.1"
1717
env_logger="0.5.10"
1818
clap = "2.31.2"
19-
rustpython_compiler = {path = "compiler"}
20-
rustpython_parser = {path = "parser"}
21-
rustpython_vm = {path = "vm"}
19+
rustpython-compiler = {path = "compiler"}
20+
rustpython-parser = {path = "parser"}
21+
rustpython-vm = {path = "vm"}
2222
rustyline = "4.1.0"
2323
xdg = "2.2.0"
2424

bytecode/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "rustpython_bytecode"
2+
name = "rustpython-bytecode"
33
version = "0.1.0"
44
authors = ["Windel Bouwman <[email protected]>"]
55
edition = "2018"

compiler/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
2-
name = "rustpython_compiler"
2+
name = "rustpython-compiler"
33
version = "0.1.0"
44
authors = ["coolreader18 <[email protected]>", "Windel Bouwman <[email protected]>"]
55
edition = "2018"
66

77
[dependencies]
8-
rustpython_bytecode = { path = "../bytecode" }
9-
rustpython_parser = { path = "../parser" }
8+
rustpython-bytecode = { path = "../bytecode" }
9+
rustpython-parser = { path = "../parser" }
1010
num-complex = { version = "0.2", features = ["serde"] }
1111
log = "0.3"

derive/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "rustpython_derive"
2+
name = "rustpython-derive"
33
version = "0.1.0"
44
authors = ["Joey <[email protected]>"]
55
edition = "2018"
@@ -11,7 +11,7 @@ proc-macro = true
1111
syn = { version = "0.15.29", features = ["full"] }
1212
quote = "0.6.11"
1313
proc-macro2 = "0.4.27"
14-
rustpython_compiler = { path = "../compiler" }
15-
rustpython_bytecode = { path = "../bytecode" }
14+
rustpython-compiler = { path = "../compiler" }
15+
rustpython-bytecode = { path = "../bytecode" }
1616
bincode = "1.1"
1717
proc-macro-hack = "0.5"

parser/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "rustpython_parser"
2+
name = "rustpython-parser"
33
version = "0.0.1"
44
authors = [ "Shing Lyu", "Windel Bouwman" ]
55
build = "build.rs"

parser/src/parser.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ pub fn parse_statement(source: &str) -> Result<Vec<ast::LocatedStatement>, Parse
4444
/// # Example
4545
/// ```
4646
/// extern crate num_bigint;
47-
/// extern crate rustpython_parser;
4847
/// use num_bigint::BigInt;
4948
/// use rustpython_parser::{parser, ast};
5049
/// let expr = parser::parse_expression("1+2").unwrap();

src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ extern crate clap;
33
extern crate env_logger;
44
#[macro_use]
55
extern crate log;
6-
extern crate rustpython_parser;
7-
extern crate rustpython_vm;
86
extern crate rustyline;
97

108
use clap::{App, Arg};

vm/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
2-
name = "rustpython_vm"
2+
name = "rustpython-vm"
33
version = "0.1.0"
44
authors = ["Shing Lyu <[email protected]>"]
55
edition = "2018"
66

77
[features]
8-
default = ["rustpython_parser", "rustpython_compiler"]
8+
default = ["rustpython-parser", "rustpython-compiler"]
99

1010
[dependencies]
1111
# Crypto:
@@ -23,10 +23,10 @@ num-integer = "0.1.39"
2323
num-rational = "0.2.1"
2424
rand = "0.5"
2525
log = "0.3"
26-
rustpython_derive = {path = "../derive"}
27-
rustpython_parser = {path = "../parser", optional = true}
28-
rustpython_compiler = {path = "../compiler", optional = true}
29-
rustpython_bytecode = { path = "../bytecode" }
26+
rustpython-derive = {path = "../derive"}
27+
rustpython-parser = {path = "../parser", optional = true}
28+
rustpython-compiler = {path = "../compiler", optional = true}
29+
rustpython-bytecode = { path = "../bytecode" }
3030
serde = { version = "1.0.66", features = ["derive"] }
3131
serde_json = "1.0.26"
3232
byteorder = "1.2.6"

vm/src/builtins.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use crate::obj::objint::{self, PyIntRef};
1818
use crate::obj::objiter;
1919
use crate::obj::objstr::{self, PyString, PyStringRef};
2020
use crate::obj::objtype::{self, PyClassRef};
21-
#[cfg(feature = "rustpython_compiler")]
21+
#[cfg(feature = "rustpython-compiler")]
2222
use rustpython_compiler::compile;
2323

2424
use crate::frame::Scope;
@@ -99,7 +99,7 @@ struct CompileArgs {
9999
optimize: OptionalArg<PyIntRef>,
100100
}
101101

102-
#[cfg(feature = "rustpython_compiler")]
102+
#[cfg(feature = "rustpython-compiler")]
103103
fn builtin_compile(args: CompileArgs, vm: &VirtualMachine) -> PyResult<PyCodeRef> {
104104
// TODO: compile::compile should probably get bytes
105105
let source = match args.source {
@@ -155,7 +155,7 @@ fn builtin_divmod(vm: &VirtualMachine, args: PyFuncArgs) -> PyResult {
155155

156156
/// Implements `eval`.
157157
/// See also: https://docs.python.org/3/library/functions.html#eval
158-
#[cfg(feature = "rustpython_compiler")]
158+
#[cfg(feature = "rustpython-compiler")]
159159
fn builtin_eval(vm: &VirtualMachine, args: PyFuncArgs) -> PyResult {
160160
// TODO: support any mapping for `locals`
161161
arg_check!(
@@ -187,7 +187,7 @@ fn builtin_eval(vm: &VirtualMachine, args: PyFuncArgs) -> PyResult {
187187

188188
/// Implements `exec`
189189
/// https://docs.python.org/3/library/functions.html#exec
190-
#[cfg(feature = "rustpython_compiler")]
190+
#[cfg(feature = "rustpython-compiler")]
191191
fn builtin_exec(vm: &VirtualMachine, args: PyFuncArgs) -> PyResult {
192192
arg_check!(
193193
vm,
@@ -789,7 +789,7 @@ pub fn make_module(vm: &VirtualMachine, module: PyObjectRef) {
789789
#[cfg(not(target_arch = "wasm32"))]
790790
let open = vm.ctx.new_rustfunc(io_open);
791791

792-
#[cfg(feature = "rustpython_compiler")]
792+
#[cfg(feature = "rustpython-compiler")]
793793
{
794794
extend_module!(vm, module, {
795795
"compile" => ctx.new_rustfunc(builtin_compile),

0 commit comments

Comments
 (0)