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

Commit

Permalink
Remove location
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Jun 19, 2023
1 parent 9fdaab3 commit 4c88e59
Show file tree
Hide file tree
Showing 15 changed files with 2 additions and 1,900 deletions.
7 changes: 1 addition & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ include = ["LICENSE", "Cargo.toml", "src/**/*.rs"]
[workspace]
resolver = "2"
members = [
"ast", "core", "format", "literal", "parser",
"ruff_text_size", "ruff_source_location",
"ast", "core", "format", "literal", "parser", "ruff_text_size",
]

[workspace.dependencies]
Expand All @@ -22,21 +21,17 @@ rustpython-literal = { path = "literal" }
rustpython-format = { path = "format" }
rustpython-parser = { path = "parser" }

ahash = "0.7.6"
anyhow = "1.0.45"
cfg-if = "1.0"
insta = "1.14.0"
itertools = "0.10.3"
is-macro = "0.2.2"
log = "0.4.16"
num-complex = "0.4.0"
num-bigint = "0.4.3"
num-traits = "0.2"
pyo3 = { version = "0.18.3" }
rand = "0.8.5"
serde = "1.0"
static_assertions = "1.1"
once_cell = "1.17.1"
unicode_names2 = { version = "0.6.0", git = "https://github.com/youknowone/unicode_names2.git", rev = "4ce16aa85cbcdd9cc830410f1a72ef9a235f2fde" }

[profile.dev.package."*"]
Expand Down
6 changes: 0 additions & 6 deletions ast/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ repository = "https://github.com/RustPython/Parser/"
license = "MIT"

[features]
default = ["location"]
location = ["rustpython-parser-core/location"]
visitor = []
all-nodes-with-ranges = []

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

is-macro = { workspace = true }
num-bigint = { workspace = true }
static_assertions = "1.1.0"

pyo3 = { workspace = true, optional = true, features = ["num-bigint", "num-complex"] }
5 changes: 0 additions & 5 deletions ast/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,5 @@ mod visitor {
include!("gen/visitor.rs");
}

#[cfg(feature = "location")]
pub mod located;
#[cfg(feature = "location")]
pub use rustpython_parser_core::source_code;

#[cfg(feature = "visitor")]
pub use visitor::Visitor;
19 changes: 0 additions & 19 deletions ast/src/located.rs

This file was deleted.

2 changes: 0 additions & 2 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ license = "MIT"
[dependencies]
# ruff dependency shouldn't be placed out of this crate
ruff_text_size = { path = "../ruff_text_size" }
ruff_source_location = { path = "../ruff_source_location", optional = true }

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

[features]
default = []
location = ["dep:ruff_source_location"]
2 changes: 0 additions & 2 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
mod error;
mod format;
pub mod mode;
#[cfg(feature = "location")]
pub mod source_code;

pub use error::BaseError;
pub use format::ConversionFlag;
Expand Down
126 changes: 0 additions & 126 deletions core/src/source_code.rs

This file was deleted.

2 changes: 0 additions & 2 deletions parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ license = "MIT"
edition = "2021"

[features]
default = ["location"]
location = ["rustpython-ast/location", "rustpython-parser-core/location"]
serde = ["dep:serde", "rustpython-parser-core/serde"]
all-nodes-with-ranges = ["rustpython-ast/all-nodes-with-ranges"]
full-lexer = []
Expand Down
2 changes: 0 additions & 2 deletions parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@
#![doc(html_root_url = "https://docs.rs/rustpython-parser/")]

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

mod function;
Expand Down
17 changes: 0 additions & 17 deletions ruff_source_location/Cargo.toml

This file was deleted.

Loading

0 comments on commit 4c88e59

Please sign in to comment.