Skip to content

Commit

Permalink
add local flag for local-only parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
digizeph committed Nov 24, 2024
1 parent 8763860 commit c1cf1bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ clap = { version = "4.5", features = ["derive"], optional = true }

[features]
default = ["parser", "rustls"]

# parsing local files only, removing dependencies for handling remote files
local = ["parser", "oneio"]

parser = [
"bytes",
"chrono",
Expand Down
2 changes: 1 addition & 1 deletion examples/local_only/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ version = "0.1.0"
edition = "2021"

[dependencies]
bgpkit-parser = { path = "../..", default-features = false, features = ["parser"] }
bgpkit-parser = { path = "../..", default-features = false, features = ["local"] }

0 comments on commit c1cf1bf

Please sign in to comment.