Skip to content

Commit 05877aa

Browse files
committed
feat: remove use of bitflags, flatten var modifiers
This removes a dependency, and makes the code cleaner. There is no longer a possibility of having a xor range or base64 alphabet without the corresponding flag, and the code is globally simpler.
1 parent ec2e0aa commit 05877aa

File tree

7 files changed

+299
-234
lines changed

7 files changed

+299
-234
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

boreal-parser/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,5 @@ rust-version = "1.62"
1515
# Parsing library
1616
nom = "7.1"
1717

18-
# packing multiple flags together
19-
bitflags = "1.3"
20-
2118
# Proper error reporting on parsing
2219
codespan-reporting = "0.11"

boreal-parser/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ pub mod regex;
5858
pub use regex::Regex;
5959
mod rule;
6060
pub use rule::{
61-
Metadata, Rule, VariableDeclaration, VariableDeclarationValue, VariableFlags, VariableModifiers,
61+
Metadata, Rule, VariableDeclaration, VariableDeclarationValue, VariableModifierBase64,
62+
VariableModifiers,
6263
};
6364
mod string;
6465
mod types;

0 commit comments

Comments
 (0)