mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-26 13:24:42 +00:00
Make parser location optional
This commit is contained in:
parent
aabc96dde9
commit
cbe4e8c5f3
9 changed files with 18 additions and 14 deletions
|
@ -20,5 +20,5 @@ serde = { version = "1.0.133", optional = true, default-features = false, featur
|
|||
lz4_flex = "0.9.2"
|
||||
|
||||
[features]
|
||||
default = ["source-code"]
|
||||
source-code = ["ruff_source_location"]
|
||||
default = []
|
||||
location = ["ruff_source_location"]
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
mod error;
|
||||
mod format;
|
||||
pub mod mode;
|
||||
#[cfg(feature = "source-code")]
|
||||
#[cfg(feature = "location")]
|
||||
pub mod source_code;
|
||||
|
||||
pub use error::BaseError;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue