Make parser location optional

This commit is contained in:
Jeong YunWon 2023-05-11 04:17:56 +09:00
parent aabc96dde9
commit cbe4e8c5f3
9 changed files with 18 additions and 14 deletions

View file

@ -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"]

View file

@ -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;