-
Notifications
You must be signed in to change notification settings - Fork 1
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
Use --locked
for cargo
commands && change Cargo.toml
to use crates.io
#344
Conversation
…or cargo everywhere.
Cargo.toml
Outdated
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 was unable to use version for Scrypto crates since radix-engine-toolkit-common
was not on crates.io
@@ -53,7 +53,7 @@ impl Mnemonic { | |||
let language = internal.language(); | |||
|
|||
let words = internal | |||
.word_iter() | |||
.words() |
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.
word_iter
method was deprecated.
scripts/ios/build-sargon.sh
Outdated
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.
Witness:
- I've added
--locked
to all threecargo build
commands (iOS device, iOS sim, macOS Apple Silicon) - I've added
--locked
tocargo run sargon-bindgen
for iOS
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.
Witness:
- I've added
--locked
to thecargo build
command for Kotlin - I've added
--locked
tocargo run sargon-bindgen
for Kotlin (in filejvm/sargon-android/build.gradle.kts
below)
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.
Witness - I've added --locked
to:
-
cargo check
-
cargo fmt
- did not work, so not added. -
cargo clippy
-
cargo run nextest
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.
Witness - iOS workflow does not perform any cargo
command, it only calls scripts/ios/build-sargon.sh
which has been modified.
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.
Witness - Android workflow does not perform any cargo
command, it only calls gradle which has been modified. (both CargoDesktopPlugkin.kt
). Hmm @micbakos-rdx there is no corresponding "CargoAndroidPlugin.kt" right? We use CargoDesktopPlugkin.kt
for Android too right?
@@ -137,7 +137,7 @@ jobs: | |||
components: rustfmt | |||
|
|||
- name: Check formatting | |||
run: cargo fmt --check | |||
run: cargo fmt --check --all |
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.
--locked
did not work for cargo fmt
, so skipped that, but added --all
for symmetry (I think I've previously asserted that it was not needed?)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #344 +/- ##
=======================================
Coverage 92.84% 92.84%
=======================================
Files 1160 1160
Lines 25797 25797
Branches 85 85
=======================================
Hits 23952 23952
Misses 1834 1834
Partials 11 11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
fc0d5c1
to
d4d19c2
Compare
Also rename github worksflows file names which were confusing.
For more context see Slack.
I think I've updated all
cargo
commands, but please review that, especially @micbakos-rdx for the gradle files.I've also switched to using
default-features = false
everywhere