-
Notifications
You must be signed in to change notification settings - Fork 99
feat: impl ReaderBuilder
#1465
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
Open
ok-nick
wants to merge
111
commits into
main
Choose a base branch
from
ok-nick/settings-builders
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat: impl ReaderBuilder
#1465
Changes from all commits
Commits
Show all changes
111 commits
Select commit
Hold shift + click to select a range
44d8faa
Spike: Retrofit io_utils call sites
scouten-adobe e509d31
Spike: Adapt verify_cose
scouten-adobe 2a39a23
Spike: Retrofit Store::handle_remote_manifest
scouten-adobe 73aead9
Spike: Retrofit sign_claim
scouten-adobe 296aa51
Spike: Push farther up the Store API chain
scouten-adobe ffd8015
Spike: Push Settings up through Ingredient API chain
scouten-adobe de83d42
Spike: Push settings up through Reader API
scouten-adobe 5e638e8
Spike: Push settings farther up Builder and Ingredient API chains
scouten-adobe b5093a4
Spike: Push settings up through thumbnail utils
scouten-adobe 023fde2
Switch check_ingredient_trust to passed settings
scouten-adobe 427c7e1
Plumb settings through core OCSP logic
scouten-adobe d3a078f
Plumb settings through Store's OCSP logic
scouten-adobe eb40a9f
One more reference in ingredient
scouten-adobe ae3aee6
Plumb settings through add_auto_actions_assertions_settings
scouten-adobe 929a396
Plumb settings through more of Builder
scouten-adobe 899b0ab
Remove last references to get_settings_value in Builder
scouten-adobe fbe8976
Remove remaining references to get_settings_value in Store
scouten-adobe c4e255c
Remove remaining references to get_settings_value in Reader
scouten-adobe 3a4d500
Remove remaining references to get_settings_value in Claim
scouten-adobe 68ba524
Remove remaining references to get_settings_value from IdentityAssertion
scouten-adobe fce4aa8
Remove remaining get_settings_value references from time_stamp code
scouten-adobe beecb93
Remove remaining references to get_settings_value outside Settings mod
scouten-adobe 81efbdc
Move Settings::get_value to private
scouten-adobe 3da6b20
Move Settings::reset to private
scouten-adobe c3de5a0
Merge branch 'main' into scouten/settings-not-thread-local
scouten-adobe 4608f62
Clippy
scouten-adobe 8941f2c
cargo fmt
scouten-adobe 4f6e63f
Fix some Wasm build errors
scouten-adobe 913172d
Merge branch 'main' into scouten/settings-not-thread-local
scouten-adobe eead715
Fix one more Wasm build error
scouten-adobe efdae9f
cargo fmt
scouten-adobe 31c9dc6
Make Settings::reset() pub(crate) for now
scouten-adobe 953e690
Retrofit Builder::to_claim()
scouten-adobe 7f9e282
Retrofit Builder::add_actions_assertion_settings
scouten-adobe c3eb1ca
Retrofit Builder::add_auto_actions_assertions_settings
scouten-adobe 7192282
Retrofit Builder::to_store
scouten-adobe 8296652
Retrofit Claim::verify_actions
scouten-adobe c480a42
Retrofit Claim::verify_internal
scouten-adobe 310ebd1
Retrofit cose_sign::signing_cert_valid
scouten-adobe e21b6ac
Retrofit cose_sign::cose_sign
scouten-adobe 24538a7
Retrofit Ingredient::from_file_impl
scouten-adobe b937db4
Merge branch 'main' into scouten/settings-not-thread-local
scouten-adobe eb2477c
Clippy
scouten-adobe bd3d3e4
Retrofit Store::new_with_label
scouten-adobe e58780a
Retrofit Store::new
scouten-adobe eb170fd
Retrofit Store::get_ocsp_status
scouten-adobe 93ece88
Retrofit Store::get_manifest_labels_for_ocsp
scouten-adobe 230e36c
Retrofit Store::sign_claim
scouten-adobe dd5c69e
Retrofit Store::from_jumbf
scouten-adobe c0e6783
Split out public API revisions to TO DO #1454
scouten-adobe f196ae1
Retrofit Builder::maybe_add_thumbnail
scouten-adobe 0122490
Retrofit Store::iingredient_checks
scouten-adobe 5724172
Retrofit Store::generate_bmff_data_hash_for_stream
scouten-adobe 29116b8
Retrofit Store::get_data_hashed_embeddable_manifest
scouten-adobe 07e826a
Retrofit Store::get_data_hashed_embeddable_manifest_async
scouten-adobe e974cea
Merge branch 'main' into scouten/settings-not-thread-local
scouten-adobe 39544ef
Retrofit Store::get_box_hashed_embeddable_manifest
scouten-adobe d8a2881
Retrofit Store::get_box_hashed_embeddable_manifest_async
scouten-adobe fd4edee
Retrofit Store::start_save_bmff_fragmented
scouten-adobe 118640d
Retrofit Store::save_to_strema(_async) and ::save_to_bmff_fragmented
scouten-adobe 2fed088
Retrofit Store::start_save_stream
scouten-adobe 434938a
Retrofit Store::verify_from_path
scouten-adobe 1c7cb74
Retrofit Store::from_manifest_data_and_stream
scouten-adobe 3607330
Retrofit Store::load_from_file_and_fragments
scouten-adobe 3ac02b0
Retrofit Store::load_ingredient_to_claim
scouten-adobe d603795
Clippy
scouten-adobe 1d4f8d6
Retrofit Store::test_async_dynamic_assertions
scouten-adobe 924af31
Retrofit BmffHash::create_merkle_map_for_mdat_box
scouten-adobe 263e13d
Retrofit verify_time_stamp
scouten-adobe 0268023
Retrofit Store::get_store_validation_info
scouten-adobe 98222b5
TO REVIEW: Can we avoid passing settings into the BmffIO implementati…
scouten-adobe 45e165f
Retrofit Ingredient::add_to_claim
scouten-adobe f3352bf
Retrofit parse_and_validate_sigtst
scouten-adobe b0bf042
TO REVIEW: I don't think default_rfc3161_request needs to have Settin…
scouten-adobe 1653c4f
Clippy
scouten-adobe 350f946
Merge branch 'main' into scouten/settings-not-thread-local
scouten-adobe 9be45f6
Fix up some Wasm build errors
scouten-adobe 42057d5
feat: impl prototype of `ReaderBuilder`
ok-nick 10b2f6a
fix: use validation state from reader constructor
ok-nick 9551bcf
refactor: simplify Reader
ok-nick b2c687f
fix: private `Ingredient::maybe_add_thumbnail` and clean up todos
ok-nick 9f2cb0c
fix: `Store::add with_settings` and `Store::from_jumbf_with_settings`…
ok-nick ff0b160
fix: stack overflow when constructing store
ok-nick 4d6fb4d
style: fix clippy lints
ok-nick 07dedf9
fix: remove ingredient new public API for now
ok-nick 779c1fe
style: remove todo to add settings to identity assertion (deferred to…
ok-nick 4e605d0
fix: remove public API changes to builder for now
ok-nick 7aeb9c3
style: remove todos in claim
ok-nick 269fa8f
Revert cosmetic changes to bmff_io.rs
scouten-adobe a253d21
Merge remote-tracking branch 'origin' into scouten/settings-not-threa…
ok-nick 9c4c34d
fix: settings parameters affected by merge and clippy lints
ok-nick 6cd520b
docs: remove review note
ok-nick ba61dd0
Merge branch 'scouten/settings-not-thread-local', remote-tracking bra…
ok-nick 18a9ccc
feat: pass settings down the store and add async cases
ok-nick 8a50921
Merge branch 'main' into scouten/settings-not-thread-local
ok-nick 756011f
Merge branch 'scouten/settings-not-thread-local' into ok-nick/setting…
ok-nick e8f1c12
Merge branch 'main' into scouten/settings-not-thread-local
ok-nick 76a7523
fix: revert Reader::validation_state change
ok-nick 70e49f4
docs: make note of potential refactors
ok-nick dbe0d34
fix: plumb settings through timestamp
ok-nick 984bb2f
feat: add Store::load_fragments_from_stream_async
ok-nick c3fb701
feat: add Store::from_manifest_data_and_stream_and_fragments/_async
ok-nick 3b7685c
fix: remove Reader::from_fragments addition
ok-nick 118e497
test: ignore test_builder_ca_jpg for now pending fix
ok-nick 80333d8
docs: clarify review note
ok-nick 65a58bd
Merge branch 'main' of github.com:contentauth/c2pa-rs into scouten/se…
ok-nick 9de74d0
fix: plumb more settings for CAWG identity through
ok-nick a04ce76
style: fix formatting
ok-nick b7bbc73
fix: pass in settings for WASM
ok-nick 11c5a06
Merge branch 'scouten/settings-not-thread-local' into ok-nick/setting…
ok-nick 4cae259
Merge remote-tracking branch 'origin' into ok-nick/settings-builders
ok-nick 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
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.
This formulation may be necessary, given the iteration you're doing at line 851, but it reads as you'll be changing the membership of
fragment_paths
rather than you need mutable access to eachfragment_stream
.I wonder if there's a way to convey that distinction in meaning.
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.
We can store a mutable reference to each stream in the slice although I suspect that would be much more inconvenient than passing a mutable reference to the collection. Let's say you had an owned vec of files, you would have to allocate a new vec that stores mutable references to them
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.
I suppose you would still have to box them anyways, but I think ideally we'd have a generic here so they don't need to be.