-
Notifications
You must be signed in to change notification settings - Fork 175
Cosmetic filter fb #514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Cosmetic filter fb #514
Changes from 13 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
3419a9d
Cosmetic filters in a flatbuffer
atuchin-m c2bf91e
use last byte to encode permissions
atuchin-m c9d417c
unstage flat_map
atuchin-m 50edf82
return flat map builder
atuchin-m 16013a4
decompose network filters
atuchin-m d4dd188
decompose cosmetic filters
atuchin-m 28f6c9b
cargo fmt
atuchin-m d87eeb3
Fix cargo clippy
atuchin-m db99da0
Fix cargo fmt & some review issues
atuchin-m 1b51596
move make_flatbuffer to engine.rs
atuchin-m 72e699f
update comments
atuchin-m 35f30ff
add more tests
atuchin-m 4ce4fb0
cargo fmt
atuchin-m 02efd49
Fix doc format in .fbs
atuchin-m 07888d9
add filter_data_context.rs
atuchin-m c08f3f1
Add hash to serialized data
atuchin-m 7fd35dd
update hashes in tests
atuchin-m c60139b
move mod for generated code
atuchin-m 93bb457
return ADBLOCK_RUST_DAT_MAGIC
atuchin-m 26af341
Move version to .dat header
atuchin-m abd58d9
set ADBLOCK_FLATBUFFER_VERSION=2
atuchin-m File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a bit odd to have
Blocker::new()build a FilterSet, then manually move network filters into the set, then build anEngine, and finally make the blocker from the engine. Understood this is test only, but perhaps we should consider a different constructor method for the tests.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that test ideally these test contractors should be removed in favor of building the engine directly (or another high level test method).
Although, preserving them allow to reduce the diff in the PR (we don't need to rewrite a lot of tests). So I suggest to change it in another PR.
P.S. We can avoid using Engine completely because it's a flatbuffer root table. And we need to get serialized flatbuffer data.