Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Commit 4c88e59

Browse files
committed
Remove location
1 parent 9fdaab3 commit 4c88e59

File tree

15 files changed

+2
-1900
lines changed

15 files changed

+2
-1900
lines changed

Cargo.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ include = ["LICENSE", "Cargo.toml", "src/**/*.rs"]
1111
[workspace]
1212
resolver = "2"
1313
members = [
14-
"ast", "core", "format", "literal", "parser",
15-
"ruff_text_size", "ruff_source_location",
14+
"ast", "core", "format", "literal", "parser", "ruff_text_size",
1615
]
1716

1817
[workspace.dependencies]
@@ -22,21 +21,17 @@ rustpython-literal = { path = "literal" }
2221
rustpython-format = { path = "format" }
2322
rustpython-parser = { path = "parser" }
2423

25-
ahash = "0.7.6"
2624
anyhow = "1.0.45"
2725
cfg-if = "1.0"
2826
insta = "1.14.0"
2927
itertools = "0.10.3"
3028
is-macro = "0.2.2"
3129
log = "0.4.16"
32-
num-complex = "0.4.0"
3330
num-bigint = "0.4.3"
3431
num-traits = "0.2"
35-
pyo3 = { version = "0.18.3" }
3632
rand = "0.8.5"
3733
serde = "1.0"
3834
static_assertions = "1.1"
39-
once_cell = "1.17.1"
4035
unicode_names2 = { version = "0.6.0", git = "https://github.com/youknowone/unicode_names2.git", rev = "4ce16aa85cbcdd9cc830410f1a72ef9a235f2fde" }
4136

4237
[profile.dev.package."*"]

ast/Cargo.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ repository = "https://github.com/RustPython/Parser/"
88
license = "MIT"
99

1010
[features]
11-
default = ["location"]
12-
location = ["rustpython-parser-core/location"]
13-
visitor = []
1411
all-nodes-with-ranges = []
1512

1613
[dependencies]
@@ -19,6 +16,3 @@ rustpython-literal = { workspace = true, optional = true }
1916

2017
is-macro = { workspace = true }
2118
num-bigint = { workspace = true }
22-
static_assertions = "1.1.0"
23-
24-
pyo3 = { workspace = true, optional = true, features = ["num-bigint", "num-complex"] }

ast/src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,5 @@ mod visitor {
2020
include!("gen/visitor.rs");
2121
}
2222

23-
#[cfg(feature = "location")]
24-
pub mod located;
25-
#[cfg(feature = "location")]
26-
pub use rustpython_parser_core::source_code;
27-
2823
#[cfg(feature = "visitor")]
2924
pub use visitor::Visitor;

ast/src/located.rs

Lines changed: 0 additions & 19 deletions
This file was deleted.

core/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ license = "MIT"
1010
[dependencies]
1111
# ruff dependency shouldn't be placed out of this crate
1212
ruff_text_size = { path = "../ruff_text_size" }
13-
ruff_source_location = { path = "../ruff_source_location", optional = true }
1413

1514
serde = { version = "1.0.133", optional = true, default-features = false, features = ["derive"] }
1615
is-macro.workspace = true
1716

1817
[features]
1918
default = []
20-
location = ["dep:ruff_source_location"]

core/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
mod error;
55
mod format;
66
pub mod mode;
7-
#[cfg(feature = "location")]
8-
pub mod source_code;
97

108
pub use error::BaseError;
119
pub use format::ConversionFlag;

core/src/source_code.rs

Lines changed: 0 additions & 126 deletions
This file was deleted.

parser/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ license = "MIT"
99
edition = "2021"
1010

1111
[features]
12-
default = ["location"]
13-
location = ["rustpython-ast/location", "rustpython-parser-core/location"]
1412
serde = ["dep:serde", "rustpython-parser-core/serde"]
1513
all-nodes-with-ranges = ["rustpython-ast/all-nodes-with-ranges"]
1614
full-lexer = []

parser/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@
113113
#![doc(html_root_url = "https://docs.rs/rustpython-parser/")]
114114

115115
pub use rustpython_ast as ast;
116-
#[cfg(feature = "location")]
117-
pub use rustpython_parser_core::source_code;
118116
pub use rustpython_parser_core::{text_size, Mode};
119117

120118
mod function;

ruff_source_location/Cargo.toml

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)