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.
Fixes #80 and #83.
According to git bisect, the build was broken in revision f27b4a8, which added
callback.rs
.Specifically,
callback.rs
added apub enum SteamCallback
. Any NAPI-RS file that exports an enum requires you touse napi::bindgen_prelude::ToNapiValue
, which it did, but it also now requires you to useFromNapiValue
.As far as I can tell, this has always been true, even back at revision f27b4a8. The parent revision to f27b4a8 deletedCargo.lock
, but even when I broughtCargo.lock
back, it still requiredFromNapiValue
.So, I have no idea why the build has been working at all for the last year, but addingFromNapiValue
everywhereToNapiValue
is used definitely seems to fix it.EDIT: Oops, I was accidentally restoring the wrong
Cargo.lock
file. Restoring theCargo.lock
file from 56e80a4 into revision f27b4a8 also fixes the build. I've filed PR #84 to bring back aCargo.lock
file so reproducibility issues like this don't happen in the future.Furthermore, I've downgraded
@napi-rs/cli
to fix #83.