-
Notifications
You must be signed in to change notification settings - Fork 893
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
move rust crates to chromium_crate_io #21759
Conversation
As usual, it would help future archaeologists if you included an overview of the change and its motivation in the commit message and/or PR desecription. From a brief look at the code it seems like:
The indent change on line 161 of script/brave_license_helper.py seems spurious (.vscode comment). I noticed the adblock version numbers don't all match, but that's true of the main branch as well. Looks like things have been moved into Splitting the source changes and file moves into separate commits might help the github review interface not fall over. :( |
2866cb0
to
9e497d3
Compare
clang format applies to the whole file |
This is definitely a fresh download from crates.io, although 3 days ago that may not have been the case |
I intend to squash the commits |
fce9a28
to
cde3a6e
Compare
A Storybook has been deployed to preview UI for the latest push |
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
# These have auto-generated license files and | ||
# GetThirdPartyDepsFromGNDepsOutput causes strange license errors | ||
# unless the this entire directory is excluded. | ||
os.path.join('brave', 'third_party', 'rust'), |
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 think this can just exclude //brave/third_party/rust/chromium_crates_io/vendor
.
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.
please see the comment explaining why the entire directory is excluded
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 read the comment, but I couldn't reproduce the errors. I suppose it doesn't matter much, but the narrower scope seemed a safer hack.
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 can try it again, but it failed with a very strange error before
A Storybook has been deployed to preview UI for the latest push |
a8e5906
to
95d2ece
Compare
NB you can address the audit failure by applying this patch to |
A Storybook has been deployed to preview UI for the latest push |
95d2ece
to
b3a7fc6
Compare
A Storybook has been deployed to preview UI for the latest push |
b3a7fc6
to
fdcdcdf
Compare
fdcdcdf
to
83a570d
Compare
c240962
to
9a0ea5a
Compare
A Storybook has been deployed to preview UI for the latest push |
9a0ea5a
to
a3d081a
Compare
A Storybook has been deployed to preview UI for the latest push |
] | ||
features = [ | ||
"alloc", | ||
"serde", |
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.
double-checked this removal and it appears to be correct. This appears to only be enabled on v4
build_native_rust_unit_tests = false | ||
edition = "2021" | ||
cargo_pkg_version = "0.8.8" | ||
cargo_pkg_authors = | ||
"Andrius Aucinas <aaucinas@brave.com>, Anton Lazarev <alazarev@brave.com>" | ||
cargo_pkg_authors = "Anton Lazarev <alazarev@brave.com>, Andrius Aucinas" |
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.
Is removing Andrius' email here a bug?
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.
seems like maybe a gnrt bug? This was auto-generated
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.
Works for me. We have some nits, and should figure out how to manage the cargo vet
config four our own purposes, but I'd prefer to see that in a followup, since this will unblock other contributions involving rust code.
@fmarier are you ok with the license helper exemption until we can figure out how to tell it where the actual license files are?
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.
Licensing exception is okay, but it needs a follow-up issue to be filed so that we don't forget to figure out how to do this properly once the dust has settled.
linux arm64 failure is unrelated to this PR. See #21443 |
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.
wallet++
@@ -0,0 +1,12 @@ | |||
diff --git a/tools/crates/gnrt/gen.rs b/tools/crates/gnrt/gen.rs |
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.
at least some of these patches can go to upstream, we'll figure out the details in a follow-up
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.
patches
and DEPS
++
There are no substantive changes here for p3a so I'm going to go ahead and merge |
Resolves brave/brave-browser#36271
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: